113 TGUI_NODISCARD const
Texture& getTexture() const;
120 TGUI_NODISCARD
bool isSet() const;
143 void setOpacity(
float opacity);
150 TGUI_NODISCARD
float getOpacity() const;
189 void setRotation(
float angle);
196 TGUI_NODISCARD
float getRotation() const;
205 TGUI_NODISCARD
bool isTransparentPixel(
Vector2f pos) const;
218 TGUI_NODISCARD const std::shared_ptr<
BackendTexture>& getSvgTexture()
const
227 TGUI_NODISCARD
const std::vector<Vertex>& getVertices()
const
236 TGUI_NODISCARD
const std::vector<unsigned int>& getIndices()
const
245 void updateVertices();
252 std::shared_ptr<BackendTexture> m_svgTexture;
253 std::vector<Vertex> m_vertices;
254 std::vector<unsigned int> m_indices;
256 FloatRect m_visibleRect;
258 Color m_vertexColor = Color::White;
260 float m_rotation = 0;
263 ScalingType m_scalingType = ScalingType::Normal;
Base class for texture implementations that depend on the backend.
Definition BackendTexture.hpp:43
Texture wrapper that internally reuses resources when multiple Texture objects are loaded from the sa...
Definition Texture.hpp:57