diff Renderer/Test/gaplant_action.cc @ 656:d0b8860c17f8

remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
author hiroki@henri.cr.ie.u-ryukyu.ac.jp
date Wed, 25 Nov 2009 21:56:14 +0900
parents 306c9a7717c3
children
line wrap: on
line diff
--- a/Renderer/Test/gaplant_action.cc	Sat Nov 21 11:20:29 2009 +0900
+++ b/Renderer/Test/gaplant_action.cc	Wed Nov 25 21:56:14 2009 +0900
@@ -49,8 +49,9 @@
 }
 
 void
-gaplant_move(SceneGraphPtr node, int w, int h)
+gaplant_move(SceneGraphPtr node, void *sgroot_, int w, int h)
 {
+    SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
     Pad *pad = sgroot->getController();
     
     if (pad->right.isHold() || pad->left.isHold() || pad->down.isHold() || pad->up.isHold()) {
@@ -75,8 +76,9 @@
 }
 
 void
-gaplant_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree)
+gaplant_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree)
 {
+    SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
     SceneGraphIteratorPtr it = sgroot->getIterator(tree);
     //static int damage = 0;