25 #ifndef CPP3DS_SPRITE_HPP
26 #define CPP3DS_SPRITE_HPP
31 #include <cpp3ds/Graphics/Drawable.hpp>
32 #include <cpp3ds/Graphics/Transformable.hpp>
33 #include <cpp3ds/Graphics/Vertex.hpp>
34 #include <cpp3ds/Graphics/Rect.hpp>
208 void updatePositions();
214 void updateTexCoords();
FloatRect getGlobalBounds() const
Get the global bounding rectangle of the entity.
void setTexture(const Texture &texture, bool resetRect=false)
Change the source texture of the sprite.
Utility class for manpulating RGBA colors.
void setColor(const Color &color)
Set the global color of the sprite.
void setTextureRect(const IntRect &rectangle)
Set the sub-rectangle of the texture that the sprite will display.
Drawable representation of a texture, with its own transformations, color, etc.
Define a point with color and texture coordinates.
const Color & getColor() const
Get the global color of the sprite.
const Texture * getTexture() const
Get the source texture of the sprite.
Abstract base class for objects that can be drawn to a render target.
const IntRect & getTextureRect() const
Get the sub-rectangle of the texture displayed by the sprite.
Base class for all render targets (window, texture, ...)
Define the states used for drawing to a RenderTarget.
Sprite()
Default constructor.
FloatRect getLocalBounds() const
Get the local bounding rectangle of the entity.
some things could easily be broken///////