Antkeeper
0.0.1
|
Progresses a set of animations. More...
#include <animator.hpp>
Public Member Functions | |
animator () | |
Constructs an animator. More... | |
void | animate (float dt) |
Progresses all active animations by dt . More... | |
void | add_animation (animation_base *animation) |
Adds an animation to the animator. More... | |
void | remove_animation (animation_base *animation) |
Removes an animation from the animator. More... | |
void | remove_animations () |
Removes all animations from the animator. More... | |
Progresses a set of animations.
Definition at line 31 of file animator.hpp.
animator::animator | ( | ) |
Constructs an animator.
Definition at line 24 of file animator.cpp.
void animator::add_animation | ( | animation_base * | animation | ) |
Adds an animation to the animator.
animation | Animation to add. |
Definition at line 39 of file animator.cpp.
void animator::animate | ( | float | dt | ) |
Progresses all active animations by dt
.
dt | Delta time by which the animations will be progressed. |
Definition at line 28 of file animator.cpp.
void animator::remove_animation | ( | animation_base * | animation | ) |
Removes an animation from the animator.
animation | Animation to remove. |
Definition at line 47 of file animator.cpp.
void animator::remove_animations | ( | ) |
Removes all animations from the animator.
Definition at line 59 of file animator.cpp.