diff Renderer/Test/chain_old.cc @ 671:f42b303044f7

fix several Renderer/Test with (void*)sgroot.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 05 Dec 2009 17:26:58 +0900
parents 987380738a50
children 4dc02d3e98bb
line wrap: on
line diff
--- a/Renderer/Test/chain_old.cc	Thu Dec 03 09:02:40 2009 +0900
+++ b/Renderer/Test/chain_old.cc	Sat Dec 05 17:26:58 2009 +0900
@@ -42,8 +42,9 @@
 
 
 static void
-chain_old_move_ope(SceneGraphPtr node, int screen_w, int screen_h)
+chain_old_move_ope(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h)
 {
+    SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
     Pad *pad = sgroot->getController();
 
     if (pad->start.isHold()) {
@@ -65,8 +66,9 @@
 }
 
 void
-chain_old_move(SceneGraphPtr sg, int w, int h)
+chain_old_move(SceneGraphPtr sg, void *sgroot_, int w, int h)
 {
+
     int id = sg->id;
     if(id == 0) {
         for(int cnt = 0; cnt < 600; cnt++) {
@@ -121,7 +123,7 @@
 }
 
 void
-chain_old_collision(SceneGraphPtr sg, int w, int h, SceneGraphPtr osg)
+chain_old_collision(SceneGraphPtr sg, void *sgroot_, int w, int h, SceneGraphPtr osg)
 {
 
 }
@@ -159,6 +161,13 @@
     return sgroot;
 }
 
+MainLoopPtr 
+Chain::init_only_sg(SgChange *sgchange, int w, int h)
+{
+    return sgchange;
+}
+
+
 extern Application *
 application() {
     return new Chain();