1 #ifndef MSP_DEMOSCENE_STAGE_H_
2 #define MSP_DEMOSCENE_STAGE_H_
4 #include <msp/gl/camera.h>
5 #include <msp/gl/pipeline.h>
10 class UseInView: public Action
13 class Loader: public Msp::DataFile::DerivedObjectLoader<UseInView, Action::Loader>
16 Loader(UseInView &, Demo &);
19 void stage(const std::string &);
20 void view(const std::string &);
29 UseInView(Msp::GL::View &, Stage &);
31 virtual void validate() const;
33 virtual void start(float, float);
36 class SetCamera: public Action
39 class Loader: public Msp::DataFile::DerivedObjectLoader<SetCamera, Action::Loader>
42 Loader(SetCamera &, Demo &);
45 void camera(const std::string &);
46 void stage(const std::string &);
51 const Msp::GL::Camera *camera;
55 SetCamera(Stage &, const Msp::GL::Camera &);
57 virtual void validate() const;
59 virtual void start(float, float);
62 Msp::GL::Pipeline *pipeline;
63 Msp::GL::Camera camera;
68 void set_camera(const Msp::GL::Camera &);