A Sprite that allows switching between other sprites based on the time at rendering.
Definition at line 331 of file ge211_sprites.h.
Public Member Functions | |
void | reset () |
Resets the age of the sprite to 0. | |
![]() | |
virtual Dimensions | 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.