Wizard Engine
2D cross-platform game engine built around SDL2
 
Loading...
Searching...
No Matches
animator.hpp File Reference

Animates animatable objects. More...

Go to the source code of this file.

Classes

class  wze::animator
 

Namespaces

namespace  wze
 Wizard Engine.
 

Detailed Description

Animates animatable objects.

Resets the animation.

Animates the targets and erases expired ones, then returns whether the animation is looped or not.

Sets the current frame of the animation.

Returns the current frame of the animation.

Returns the targets of the animation.

Returns the frame pool of the animation.

Constructs an animator instance.

Author
Zana Domán
Zana Domán
Parameters
framesFrame pool of the animation.
targetsTargets of the animation.
Author
Zana Domán
Returns
Frame pool of the animation.
Author
Zana Domán
Returns
Targets of the animation.
Author
Zana Domán
Returns
Current frame of the animation.
Note
Can be invalid.
Author
Zana Domán
Parameters
current_frameCurrent frame of the animation.
Note
Can be invalid.
Author
Zana Domán
Returns
Whether the animation is looped or not.
Note
You need to call this function in every frame to progress the animation.

Definition in file animator.hpp.