1 #ifndef MSP_DEMOSCENE_ANIMATE_H_
2 #define MSP_DEMOSCENE_ANIMATE_H_
4 #include <msp/gl/animatedobject.h>
5 #include <msp/gl/animation.h>
6 #include <msp/gl/animationplayer.h>
12 class Animate: public Action
15 class Loader: public Msp::DataFile::DerivedObjectLoader<Animate, Action::Loader>
18 Loader(Animate &, Demo &);
21 void animation(const std::string &);
22 void target(const std::string &);
26 Msp::GL::Placeable *target;
27 Msp::GL::AnimatedObject *target_obj;
28 const Msp::GL::Animation *anim;
30 Msp::GL::AnimationPlayer *player;
34 Animate(Msp::GL::Placeable &, const Msp::GL::Animation &, Msp::GL::AnimationPlayer &, bool = false);
36 virtual void validate() const;
38 virtual void start(float, float);
39 virtual void end(float);
42 } // namespace DemoScene