1 #ifndef MSP_DEMOSCENE_ANIMATE_H_
2 #define MSP_DEMOSCENE_ANIMATE_H_
4 #include <msp/gl/animation.h>
5 #include <msp/gl/animationplayer.h>
11 class Animate: public Action
14 class Loader: public Msp::DataFile::DerivedObjectLoader<Animate, Action::Loader>
17 Loader(Animate &, Demo &);
20 void animation(const std::string &);
21 void target(const std::string &);
25 Msp::GL::Placeable *target;
26 const Msp::GL::Animation *anim;
27 Msp::GL::AnimationPlayer *player;
31 Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &);
33 virtual void validate() const;
35 virtual void start(float, float);
38 } // namespace DemoScene