X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimationplayer.h;h=c45027d9e82bacfb0358981dfadcc0fded8c5eb9;hp=fe53a359d800ce588c8bbbce300c9e3ae94ebfa6;hb=HEAD;hpb=4c5ba8f7d3bc755d6256cb6bf75907a1b10fc290 diff --git a/source/animationplayer.h b/source/animationplayer.h deleted file mode 100644 index fe53a359..00000000 --- a/source/animationplayer.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef MSP_GL_ANIMATIONPLAYER_H_ -#define MSP_GL_ANIMATIONPLAYER_H_ - -#include -#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 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