]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/stage.cpp
Make it possible for Stages to add things to the Demo
[libs/demoscene.git] / source / stage.cpp
index 267afe3a7dbe31148c590fa8fbf907fa9cb75813..e1ce3522753683e38d3941db0c2d2df05ab803f7 100644 (file)
@@ -14,6 +14,11 @@ Stage::~Stage()
        delete pipeline;
 }
 
+void Stage::add_things(Demo::ThingMap &things, const string &prefix)
+{
+       things[prefix+"camera"] = static_cast<GL::Placeable *>(&camera);
+}
+
 void Stage::add_postprocessor(GL::PostProcessor &pp)
 {
        pipeline->add_postprocessor(pp);