]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/stage.h
Make it possible for Stages to add things to the Demo
[libs/demoscene.git] / source / stage.h
index daf4f4b982c72ab52fa07008c79a10d2d2b1ba69..c108f6fcd66ddda1f9c5b9ca0cb2324d23227db9 100644 (file)
@@ -4,9 +4,11 @@
 #include <msp/gl/camera.h>
 #include <msp/gl/pipeline.h>
 #include "action.h"
+#include "demo.h"
 
-struct Stage
+class Stage
 {
+public:
        class UseInView: public Action
        {
        public:
@@ -59,13 +61,18 @@ struct Stage
                virtual void start(float, float);
        };
 
+protected:
        Msp::GL::Pipeline *pipeline;
        Msp::GL::Camera camera;
 
+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; }
 };
 
 #endif