42 throw std::runtime_error(
"Attempting to add animation to animator while animating");
50 throw std::runtime_error(
"Attempting to remove animation from animator while animating");
53 if (it != animations.end())
62 throw std::runtime_error(
"Attempting to remove animations from animator while animating");
Abstract base class for keyframe animations.
virtual void advance(float dt)
Advances the animation position (t) by dt.
void remove_animation(animation_base *animation)
Removes an animation from the animator.
void add_animation(animation_base *animation)
Adds an animation to the animator.
void animate(float dt)
Progresses all active animations by dt.
void remove_animations()
Removes all animations from the animator.
animator()
Constructs an animator.