1 #include <msp/gl/view.h>
18 Stage::UseInView::UseInView():
23 Stage::UseInView::UseInView(GL::View &v, Stage &s):
28 void Stage::UseInView::validate() const
31 throw logic_error("null view");
33 throw logic_error("null stage");
36 void Stage::UseInView::start(float, float)
38 view->set_camera(&stage->camera_control.get_camera());
39 view->set_content(stage->pipeline);
43 Stage::UseInView::Loader::Loader(UseInView &u, Demo &d):
44 DataFile::DerivedObjectLoader<UseInView, Action::Loader>(u, d)
46 add("view", &Loader::view);
47 add("stage", &Loader::stage);
50 void Stage::UseInView::Loader::view(const string &n)
52 obj.view = &demo.get_thing<GL::View>(n);
55 void Stage::UseInView::Loader::stage(const string &n)
57 obj.stage = &demo.get_thing<Stage>(n);