A Sprite that allows switching between other sprites based on the time at rendering.
Definition at line 455 of file ge211_sprites.hxx.
Public Member Functions | |
void | reset () |
Resets the age of the sprite to 0. | |
Public Member Functions inherited from Sprite | |
virtual Dims< int > | dimensions () const =0 |
Returns the current dimensions of this Sprite. More... | |
Protected Member Functions | |
virtual const Sprite & | select_ (Duration age) const =0 |
Override this to specify what sprite to render, based on the age of this sprite. More... | |
Override this to specify what sprite to render, based on the age of this sprite.
This can be used to implement animation.