121 TGUI_NODISCARD const
Texture& getTexture() const;
130 TGUI_NODISCARD
bool isSet() const;
159 void setOpacity(
float opacity);
168 TGUI_NODISCARD
float getOpacity() const;
214 void setRotation(
float angle);
222 TGUI_NODISCARD
float getRotation() const;
233 TGUI_NODISCARD
bool isTransparentPixel(
Vector2f pos) const;
249 TGUI_NODISCARD const std::shared_ptr<
BackendTexture>& getSvgTexture()
const
259 TGUI_NODISCARD
const std::vector<Vertex>& getVertices()
const
269 TGUI_NODISCARD
const std::vector<unsigned int>& getIndices()
const
279 void updateVertices();
287 std::shared_ptr<BackendTexture> m_svgTexture;
288 std::vector<Vertex> m_vertices;
289 std::vector<unsigned int> m_indices;
291 FloatRect m_visibleRect;
293 Color m_vertexColor = Color::White;
295 float m_rotation = 0;
298 ScalingType m_scalingType = ScalingType::Normal;
Base class for texture implementations that depend on the backend.
Definition BackendTexture.hpp:44
Texture wrapper that internally reuses resources when multiple Texture objects are loaded from the sa...
Definition Texture.hpp:57