29 start_callback(nullptr),
30 end_callback(nullptr),
31 loop_callback(nullptr)
void seek(float t)
Sets the animation position to t.
void pause()
Pauses the animation.
void set_loop_callback(std::function< void(int)> callback)
Sets the callback that's executed when the animation loops.
std::function< void()> start_callback
void set_end_callback(std::function< void()> callback)
Sets the callback that's executed when a non-looped animation has finished.
void loop(bool enabled)
Enables or disables looping of the animation.
void set_speed(float speed)
Sets the speed of the animation.
void rewind()
Sets the animation position to 0.0.
void play()
Plays the animation.
void set_start_callback(std::function< void()> callback)
Sets the callback that's executed when the animation is started from a stopped state.
std::function< void(int)> loop_callback
void stop()
Stops the animation, rewinds it, and resets the loop count.
std::function< void()> end_callback
@ position
Vertex position (vec3)