]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/stage.h
Create Stage pipeline when added to a view
[libs/demoscene.git] / source / stage.h
index c108f6fcd66ddda1f9c5b9ca0cb2324d23227db9..7d4664fb2b4a2a70122abb04a5ba5e4092378c42 100644 (file)
@@ -64,15 +64,19 @@ 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;
 };
 
 #endif