]> git.tdb.fi Git - libs/demoscene.git/blob - source/stage.cpp
Initial files lifted from the Skrolliparty 2 demo
[libs/demoscene.git] / source / stage.cpp
1 #include <msp/gl/view.h>
2 #include "stage.h"
3
4 using namespace Msp;
5
6 Stage::Stage():
7         pipeline(0)
8 { }
9
10 Stage::~Stage()
11 {
12         delete pipeline;
13 }
14
15
16 Stage::UseInView::UseInView(GL::View &v, Stage &s):
17         view(v),
18         stage(s)
19 { }
20
21 void Stage::UseInView::start(float, float)
22 {
23         view.set_camera(&stage.camera_control.get_camera());
24         view.set_content(stage.pipeline);
25 }