playAnimation

GraphicsModuleInterface::playAnimation

Plays an Animation on an Entity.

Declaration

virtual void playAnimation(Entity entity, Animation* animation, bool looping) = 0;

Parameters

Name

Type

Description

entity

Entity

The Entity to play the Animation of. It must have a Renderable Component.

animation

Animation*

The animation to play.

looping

bool

Whether the animation is looping or not.

Returns

None.

Notes

If another Animation of entity is being played, it is getting replaced by the new one.

If the Animation is already playing or is paused, it will start over.