]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/stage.h
Allow stages to define actions
[libs/demoscene.git] / source / stage.h
index 7d4664fb2b4a2a70122abb04a5ba5e4092378c42..9026d03681b7dc0fb05078216e1c92a00227de48 100644 (file)
@@ -6,6 +6,9 @@
 #include "action.h"
 #include "demo.h"
 
+namespace Msp {
+namespace DemoScene {
+
 class Stage
 {
 public:
@@ -71,6 +74,7 @@ public:
        ~Stage();
 
        virtual void add_things(Demo::ThingMap &, const std::string &);
+       virtual void define_actions(Sequencer &, const std::string &) { }
 
        void set_camera(const Msp::GL::Camera &);
        Msp::GL::Camera &get_camera() { return camera; }
@@ -79,4 +83,7 @@ protected:
        virtual void create_pipeline(Msp::GL::View &) = 0;
 };
 
+} // namespace DemoScene
+} // namespace Msp
+
 #endif