X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstage.h;h=9026d03681b7dc0fb05078216e1c92a00227de48;hb=HEAD;hp=c108f6fcd66ddda1f9c5b9ca0cb2324d23227db9;hpb=e2032cbdb8d2ae52e42d400c5cc90ddad844f665;p=libs%2Fdemoscene.git diff --git a/source/stage.h b/source/stage.h index c108f6f..9026d03 100644 --- a/source/stage.h +++ b/source/stage.h @@ -6,6 +6,9 @@ #include "action.h" #include "demo.h" +namespace Msp { +namespace DemoScene { + class Stage { public: @@ -64,15 +67,23 @@ public: protected: Msp::GL::Pipeline *pipeline; Msp::GL::Camera camera; + Msp::GL::View *last_view; public: Stage(); ~Stage(); virtual void add_things(Demo::ThingMap &, const std::string &); - void add_postprocessor(Msp::GL::PostProcessor &); + virtual void define_actions(Sequencer &, const std::string &) { } + void set_camera(const Msp::GL::Camera &); Msp::GL::Camera &get_camera() { return camera; } + +protected: + virtual void create_pipeline(Msp::GL::View &) = 0; }; +} // namespace DemoScene +} // namespace Msp + #endif