Antkeeper  0.0.1
Public Member Functions | List of all members
animator Class Reference

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...
 

Detailed Description

Progresses a set of animations.

Definition at line 31 of file animator.hpp.

Constructor & Destructor Documentation

◆ animator()

animator::animator ( )

Constructs an animator.

Definition at line 24 of file animator.cpp.

Member Function Documentation

◆ add_animation()

void animator::add_animation ( animation_base animation)

Adds an animation to the animator.

Parameters
animationAnimation to add.

Definition at line 39 of file animator.cpp.

◆ animate()

void animator::animate ( float  dt)

Progresses all active animations by dt.

Parameters
dtDelta time by which the animations will be progressed.

Definition at line 28 of file animator.cpp.

◆ remove_animation()

void animator::remove_animation ( animation_base animation)

Removes an animation from the animator.

Parameters
animationAnimation to remove.

Definition at line 47 of file animator.cpp.

◆ remove_animations()

void animator::remove_animations ( )

Removes all animations from the animator.

Definition at line 59 of file animator.cpp.


The documentation for this class was generated from the following files: