1 #ifndef MSP_DEMOSCENE_STAGE_H_
2 #define MSP_DEMOSCENE_STAGE_H_
4 #include <msp/gl/camera.h>
5 #include <msp/gl/pipeline.h>
12 class UseInView: public Action
15 class Loader: public Msp::DataFile::DerivedObjectLoader<UseInView, Action::Loader>
18 Loader(UseInView &, Demo &);
21 void stage(const std::string &);
22 void view(const std::string &);
31 UseInView(Msp::GL::View &, Stage &);
33 virtual void validate() const;
35 virtual void start(float, float);
38 class SetCamera: public Action
41 class Loader: public Msp::DataFile::DerivedObjectLoader<SetCamera, Action::Loader>
44 Loader(SetCamera &, Demo &);
47 void camera(const std::string &);
48 void stage(const std::string &);
53 const Msp::GL::Camera *camera;
57 SetCamera(Stage &, const Msp::GL::Camera &);
59 virtual void validate() const;
61 virtual void start(float, float);
65 Msp::GL::Pipeline *pipeline;
66 Msp::GL::Camera camera;
72 virtual void add_things(Demo::ThingMap &, const std::string &);
73 void add_postprocessor(Msp::GL::PostProcessor &);
74 void set_camera(const Msp::GL::Camera &);
75 Msp::GL::Camera &get_camera() { return camera; }