diff Renderer/Test/title.cc @ 563:b21a013051a2

all exmple on Mac OS X
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 22 Oct 2009 23:05:16 +0900
parents f6daf964f483
children d0b8860c17f8
line wrap: on
line diff
--- a/Renderer/Test/title.cc	Thu Oct 22 22:22:31 2009 +0900
+++ b/Renderer/Test/title.cc	Thu Oct 22 23:05:16 2009 +0900
@@ -1,6 +1,7 @@
 #include "SceneGraphRoot.h"
 #include "vacuum.h"
-#include "SGList.h"
+
+extern int redcube;
 
 void
 title_collision(SceneGraphPtr node, int w, int h,SceneGraphPtr tree)
@@ -13,14 +14,14 @@
     SceneGraphPtr vacuum;
     SceneGraphPtr back = sgroot->createSceneGraph(); 
 
-    vacuum = sgroot->createSceneGraph(BIGCUBE);
+    vacuum = sgroot->createSceneGraph("BIGCUBE");
     vacuum->xyz[0] = w/2;
     vacuum->xyz[1] = h*0.8;
     vacuum->set_move_collision(vacuum_move, vacuum_coll);
     
     back->addChild(vacuum);
     
-    add_cubecollision_object(REDCUBE,vacuum,w,h);
+    add_cubecollision_object(redcube,vacuum,w,h);
     
     sgroot->setSceneData(back);