]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animationplayer.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / animationplayer.h
diff --git a/source/animationplayer.h b/source/animationplayer.h
deleted file mode 100644 (file)
index fe53a35..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-#ifndef MSP_GL_ANIMATIONPLAYER_H_
-#define MSP_GL_ANIMATIONPLAYER_H_
-
-#include <msp/time/timedelta.h>
-#include "animation.h"
-
-namespace Msp {
-namespace GL {
-
-class AnimatedObject;
-
-/**
-The bridge between Animations and AnimatedObjects.  A single AnimationPlayer
-can handle an arbitrary number of animations simultaneously.
-*/
-class AnimationPlayer
-{
-private:
-       struct Slot
-       {
-               AnimatedObject &object;
-               const Animation &animation;
-               Animation::Iterator iterator;
-
-               Slot(AnimatedObject &, const Animation &);
-       };
-
-       std::list<Slot> slots;
-
-public:
-       /** Plays an animation on an object. */
-       void play(AnimatedObject &, const Animation &);
-
-       /** Advances all playing animations.  Should be called in a regular manner,
-       preferably just before rendering. */
-       void tick(const Time::TimeDelta &);
-};
-
-} // namespace GL
-} // namespace Msp
-
-#endif