]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/stage.h
Turn Stage into a class
[libs/demoscene.git] / source / stage.h
index daf4f4b982c72ab52fa07008c79a10d2d2b1ba69..49371776b2df432f5ae311d3471677c984d0e107 100644 (file)
@@ -5,8 +5,9 @@
 #include <msp/gl/pipeline.h>
 #include "action.h"
 
-struct Stage
+class Stage
 {
+public:
        class UseInView: public Action
        {
        public:
@@ -59,13 +60,17 @@ struct Stage
                virtual void start(float, float);
        };
 
+protected:
        Msp::GL::Pipeline *pipeline;
        Msp::GL::Camera camera;
 
+public:
        Stage();
        ~Stage();
 
+       void add_postprocessor(Msp::GL::PostProcessor &);
        void set_camera(const Msp::GL::Camera &);
+       Msp::GL::Camera &get_camera() { return camera; }
 };
 
 #endif