X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fdemo.cpp;h=c5456853c55495fc41665b2813af2abfa0bb8f22;hb=e2032cbdb8d2ae52e42d400c5cc90ddad844f665;hp=08a92b4f0d6bd925709de855a30cec20201adcf2;hpb=34051ffdca091ad3971c1382c71c5fc58b7ade0f;p=libs%2Fdemoscene.git diff --git a/source/demo.cpp b/source/demo.cpp index 08a92b4..c545685 100644 --- a/source/demo.cpp +++ b/source/demo.cpp @@ -1,5 +1,6 @@ #include #include "demo.h" +#include "stage.h" using namespace std; using namespace Msp; @@ -27,6 +28,12 @@ Demo::~Demo() delete music_source; } +void Demo::add_stage(const std::string &name, Stage &stage) +{ + things[name] = &stage; + stage.add_things(things, name+"."); +} + void Demo::set_fixed_framerate(float fps) { frame_interval = Time::sec/fps;