X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fstage.h;h=1d20bdae6760f4e79b08f44e7fd47bd0a9ad2030;hb=2128f0eff817490e4d86ef921ac346775c62348a;hp=49371776b2df432f5ae311d3471677c984d0e107;hpb=5dad2cbf4556cd4b433722c172f0b468d0161de5;p=libs%2Fdemoscene.git diff --git a/source/stage.h b/source/stage.h index 4937177..1d20bda 100644 --- a/source/stage.h +++ b/source/stage.h @@ -4,6 +4,10 @@ #include #include #include "action.h" +#include "demo.h" + +namespace Msp { +namespace DemoScene { class Stage { @@ -63,14 +67,22 @@ public: protected: Msp::GL::Pipeline *pipeline; Msp::GL::Camera camera; + Msp::GL::View *last_view; public: Stage(); ~Stage(); - void add_postprocessor(Msp::GL::PostProcessor &); + virtual void add_things(Demo::ThingMap &, 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