This class contains the state of an animation clip.
More...
#include <MultiWidgets/AnimationState.hpp>
This class contains the state of an animation clip.
| MultiWidgets::AnimationState::AnimationState |
( |
AnimationClip * |
clip | ) |
|
|
inlineexplicit |
Construct a new animation state for the given animation clip.
- Parameters
-
| clip | animation clip to control |
Get the animation clip this state is for.
- Returns
- animation clip
| float MultiWidgets::AnimationState::remappedTime |
( |
| ) |
const |
|
inline |
Get the remapped time based on the animation clip wrap mode.
This function remaps the time value in the animation state according to the wrap mode of the animation clip so it can be evaluated.
- Returns
- Time mapped to the animation clip's time range.
| void MultiWidgets::AnimationState::update |
( |
float |
dt | ) |
|
|
inline |
Update the animation state.
- Parameters
-
| dt | time in seconds to advance |