X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstage.cpp;h=e1ce3522753683e38d3941db0c2d2df05ab803f7;hb=e2032cbdb8d2ae52e42d400c5cc90ddad844f665;hp=dfb668852760d3526f20c2939c2f8d2b7889e88b;hpb=34051ffdca091ad3971c1382c71c5fc58b7ade0f;p=libs%2Fdemoscene.git diff --git a/source/stage.cpp b/source/stage.cpp index dfb6688..e1ce352 100644 --- a/source/stage.cpp +++ b/source/stage.cpp @@ -14,6 +14,16 @@ Stage::~Stage() delete pipeline; } +void Stage::add_things(Demo::ThingMap &things, const string &prefix) +{ + things[prefix+"camera"] = static_cast(&camera); +} + +void Stage::add_postprocessor(GL::PostProcessor &pp) +{ + pipeline->add_postprocessor(pp); +} + void Stage::set_camera(const GL::Camera &c) { camera.set_object_matrix(c.get_object_matrix());