List of all members | Public Member Functions
thor::BigSprite Class Reference

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

thor::BigSprite::BigSprite ( )

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.

Member Function Documentation

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.


The documentation for this class was generated from the following file: