1 #ifndef MSP_DEMOSCENE_STAGE_H_
2 #define MSP_DEMOSCENE_STAGE_H_
4 #include <msp/gl/camera.h>
5 #include <msp/gl/pipeline.h>
11 class UseInView: public Action
14 class Loader: public Msp::DataFile::DerivedObjectLoader<UseInView, Action::Loader>
17 Loader(UseInView &, Demo &);
20 void stage(const std::string &);
21 void view(const std::string &);
30 UseInView(Msp::GL::View &, Stage &);
32 virtual void validate() const;
34 virtual void start(float, float);
37 class SetCamera: public Action
40 class Loader: public Msp::DataFile::DerivedObjectLoader<SetCamera, Action::Loader>
43 Loader(SetCamera &, Demo &);
46 void camera(const std::string &);
47 void stage(const std::string &);
52 const Msp::GL::Camera *camera;
56 SetCamera(Stage &, const Msp::GL::Camera &);
58 virtual void validate() const;
60 virtual void start(float, float);
64 Msp::GL::Pipeline *pipeline;
65 Msp::GL::Camera camera;
71 void add_postprocessor(Msp::GL::PostProcessor &);
72 void set_camera(const Msp::GL::Camera &);
73 Msp::GL::Camera &get_camera() { return camera; }