50 #ifndef ANIMATIONHANDLE_HH
51 #define ANIMATIONHANDLE_HH
90 #endif // ANIMATIONHANDLE_HH
bool isValid() const
Returns true if the handle is valid.
void operator--()
Decreases the handle to the previous frame (not failsafe)
unsigned int animationIndex() const
Returns the animation index (zero based)
unsigned int iFrame
The frame number.
AnimationHandle()
Constructs an invalid animation handle (interpreted as handle of the reference pose) ...
unsigned int frame() const
Returns the selected frame (zero based)
unsigned int idAnimation
The one based index of the animation, set to 0 for invalid (or reference pose)
A handle used to refer to an animation or to a specific frame in an animation.
void operator++()
Increases the handle to the next frame (not failsafe)
void setFrame(unsigned int _iFrame)
Sets the current animation frame (not failsafe)
void firstFrame()
Returns to the first frame.
AnimationHandle(unsigned int idAnimation, unsigned int iFrame=0)
Constructs a valid handle for the given animation and frame.