1 #ifndef MSP_DEMOSCENE_ANIMATE_H_
2 #define MSP_DEMOSCENE_ANIMATE_H_
4 #include <msp/gl/animation.h>
5 #include <msp/gl/animationplayer.h>
8 class Animate: public Action
11 class Loader: public Msp::DataFile::DerivedObjectLoader<Animate, Action::Loader>
14 Loader(Animate &, Demo &);
17 void animation(const std::string &);
18 void target(const std::string &);
22 Msp::GL::Placeable *target;
23 const Msp::GL::Animation *anim;
24 Msp::GL::AnimationPlayer *player;
28 Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &);
30 virtual void validate() const;
32 virtual void start(float, float);