diff Renderer/Engine/SceneGraphRoot.cc @ 597:1bfa45a08fa7 draft

add Light Object
author yutaka@henri.cr.ie.u-ryukyu.ac.jp
date Thu, 05 Nov 2009 20:17:59 +0900
parents 7e33deb9d3f4
children 7a311860a76e
line wrap: on
line diff
--- a/Renderer/Engine/SceneGraphRoot.cc	Wed Nov 04 22:52:06 2009 +0900
+++ b/Renderer/Engine/SceneGraphRoot.cc	Thu Nov 05 20:17:59 2009 +0900
@@ -25,6 +25,7 @@
     sg_src = (SceneGraphPtr*) malloc(sizeof(SceneGraphPtr)*SGLIST_LENGTH);
 
     camera = new Camera(w, h);
+    light = new Light(w, h);
     iterator = new SceneGraphIterator;
     controller = create_controller();
 
@@ -63,6 +64,7 @@
 
     free(sg_src);
     delete camera;
+    delete light;
     delete iterator;
     delete controller;
 }
@@ -527,3 +529,11 @@
 {
     return camera;
 }
+
+LightPtr
+SceneGraphRoot::getLight()
+{
+
+  return light;
+
+}