217 void updateVertices();
222 std::array<Vertex, 4> m_vertices;
#define SFML_GRAPHICS_API
Utility class for manipulating RGBA colors.
Abstract base class for objects that can be drawn to a render target.
friend class RenderTarget
Sprite(const Texture &texture, const IntRect &rectangle)
Construct the sprite from a sub-rectangle of a source texture.
const Texture & getTexture() const
Get the source texture of the sprite.
Sprite(const Texture &texture)
Construct the sprite from a source texture.
void setColor(Color color)
Set the global color of the sprite.
void setTexture(const Texture &texture, bool resetRect=false)
Change the source texture of the sprite.
void setTextureRect(const IntRect &rectangle)
Set the sub-rectangle of the texture that the sprite will display.
Sprite(const Texture &&texture)=delete
Disallow construction from a temporary texture.
void setTexture(const Texture &&texture, bool resetRect=false)=delete
Disallow setting from a temporary texture.
Color getColor() const
Get the global color of the sprite.
FloatRect getGlobalBounds() const
Get the global bounding rectangle of the entity.
Sprite(const Texture &&texture, const IntRect &rectangle)=delete
Disallow construction from a temporary texture.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
const IntRect & getTextureRect() const
Get the sub-rectangle of the texture displayed by the sprite.
Image living on the graphics card that can be used for drawing.
Define the states used for drawing to a RenderTarget