Sprite using big textures. More...
Inherits Drawable, and Transformable.
Public Member Functions | |
BigSprite () | |
Default constructor. More... | |
BigSprite (const BigTexture &texture) | |
Construct from texture. More... | |
void | setTexture (const BigTexture &texture) |
Sets the texture which is used for this sprite. More... | |
void | setColor (const sf::Color &color) |
Sets the sprite's color. | |
sf::Color | getColor () const |
Returns the sprite's color. | |
sf::FloatRect | getLocalBounds () const |
Returns the local bounding rect, starting at (0,0). | |
sf::FloatRect | getGlobalBounds () const |
Returns the global bounding rect, with the current transform applied. | |
Sprite using big textures.
This class can be used to draw textures which are too big for sf::Texture and which are stored in thor::BigTexture. The interface of thor::BigSprite is very similar to sf::Sprite.
thor::BigSprite inherits sf::Drawable and sf::Transformable, so it also contains getPosition(), getTransform(), draw() etc. which are not listed here.
thor::BigSprite::BigSprite | ( | ) |
Default constructor.
Creates an empty sprite that uses no texture.
|
explicit |
Construct from texture.
Creates a sprite that uses the specified texture. The referenced texture must remain valid during the lifetime of this sprite.
void thor::BigSprite::setTexture | ( | const BigTexture & | texture | ) |
Sets the texture which is used for this sprite.
The referenced texture must remain valid during the lifetime of this sprite.