25 #ifndef SFML_SPRITE_HPP
26 #define SFML_SPRITE_HPP
31 #include <SFML/Graphics/Export.hpp>
32 #include <SFML/Graphics/Drawable.hpp>
33 #include <SFML/Graphics/Transformable.hpp>
34 #include <SFML/Graphics/Vertex.hpp>
35 #include <SFML/Graphics/Rect.hpp>
207 void updatePositions();
213 void updateTexCoords();
226 #endif // SFML_SPRITE_HPP
Utility class for manipulating RGBA colors.
void setColor(const Color &color)
Set the global color of the sprite.
Sprite()
Default constructor.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
Abstract base class for objects that can be drawn to a render target.
Image living on the graphics card that can be used for drawing.
const IntRect & getTextureRect() const
Get the sub-rectangle of the texture displayed by the sprite.
const Texture * getTexture() const
Get the source texture of the sprite.
Define the states used for drawing to a RenderTarget.
Sprite(const Texture &texture, const IntRect &rectangle)
Construct the sprite from a sub-rectangle of a source texture.
FloatRect getGlobalBounds() const
Get the global bounding rectangle of the entity.
Drawable representation of a texture, with its own transformations, color, etc.
Sprite(const Texture &texture)
Construct the sprite from a source texture.
Base class for all render targets (window, texture, ...)
const Color & getColor() const
Get the global color of the sprite.
void setTextureRect(const IntRect &rectangle)
Set the sub-rectangle of the texture that the sprite will display.
Define a point with color and texture coordinates.
void setTexture(const Texture &texture, bool resetRect=false)
Change the source texture of the sprite.