Resolution independent 2D graphics engine
qr::animator

Class Description

Animator base. Animators are objects which can be attached to scene nodes to animate there location, rotation, size, frame and layer. Additionally they can be used to monitor some element of the scene and react by raising events. This class is pure virtual and defines an interface allowing animators to be implemented.

Public Methods

void on_attach (scene_node *node)=0
void on_animate (scene_node *node, float time_delta)=0
void on_detach (scene_node *node)=0

Details

virtual void qr::animator::on_attach ( scene_node * node
) [pure virtual]

Description

Method that gets called when animator is attached to a scene node.

Paramiters

node Pointer to the scene node that is registering the animator.
virtual void qr::animator::on_animate ( scene_node * node,
float time_delta
) [pure virtual]

Description

Method that gets called when scene node animates.

Paramiters

node Pointer to the scene node that is calling the animator.
time_delta Time delta between current and previous frames.
virtual void qr::animator::on_detach ( scene_node * node
) [pure virtual]

Description

Method that gets called when animator is detached from a scene node.

Paramiters

node Pointer to the scene node that is calling the animator.