Sprite using big textures. More...
Public Member Functions | |
BigSprite () | |
Default constructor. | |
BigSprite (const BigTexture &texture) | |
Construct from texture. | |
void | SetTexture (const BigTexture &texture) |
Sets the texture which is used for this sprite. | |
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.
Default constructor.
Creates an empty sprite that uses no texture.
thor::BigSprite::BigSprite | ( | const BigTexture & | 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.