]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/stage.h
Use an OpenGL 3.2 core context unless requested otherwise
[libs/demoscene.git] / source / stage.h
index c108f6fcd66ddda1f9c5b9ca0cb2324d23227db9..1d20bdae6760f4e79b08f44e7fd47bd0a9ad2030 100644 (file)
@@ -6,6 +6,9 @@
 #include "action.h"
 #include "demo.h"
 
+namespace Msp {
+namespace DemoScene {
+
 class Stage
 {
 public:
@@ -64,15 +67,22 @@ 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 &);
+
        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