1 #ifndef MSP_GL_ANIMATIONPLAYER_H_
2 #define MSP_GL_ANIMATIONPLAYER_H_
4 #include <msp/time/timedelta.h>
13 The bridge between Animations and AnimatedObjects. A single AnimationPlayer
14 can handle an arbitrary number of animations simultaneously.
21 AnimatedObject &object;
22 const Animation &animation;
23 Animation::Iterator iterator;
25 Slot(AnimatedObject &, const Animation &);
28 std::list<Slot> slots;
31 /** Plays an animation on an object. */
32 void play(AnimatedObject &, const Animation &);
34 /** Advances all playing animations. Should be called in a regular manner,
35 preferably just before rendering. */
36 void tick(const Time::TimeDelta &);