rayzor
diff src/scene.cc @ 15:be616b58df99
continued the renderer slightly
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 13 Apr 2014 09:54:36 +0300 |
parents | a9a948809c6f |
children | 79609d482762 |
line diff
1.1 --- a/src/scene.cc Sun Apr 13 08:06:21 2014 +0300 1.2 +++ b/src/scene.cc Sun Apr 13 09:54:36 2014 +0300 1.3 @@ -125,6 +125,16 @@ 1.4 return cameras[idx]; 1.5 } 1.6 1.7 +void Scene::set_active_camera(Camera *cam) 1.8 +{ 1.9 + active_cam = cam; 1.10 +} 1.11 + 1.12 +Camera *Scene::get_active_camera() const 1.13 +{ 1.14 + return active_cam; 1.15 +} 1.16 + 1.17 void Scene::draw() const 1.18 { 1.19 if(active_cam) {