diff Renderer/Test/panel.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 (2009-11-25)
parents b21a013051a2
children 4dc02d3e98bb
line wrap: on
line diff
--- a/Renderer/Test/panel.cc	Sat Nov 21 11:20:29 2009 +0900
+++ b/Renderer/Test/panel.cc	Wed Nov 25 21:56:14 2009 +0900
@@ -1,17 +1,17 @@
 #include "SceneGraphRoot.h"
 #include "panel.h"
 
-static void panel_move(SceneGraphPtr node, int screen_w, int screen_h);
-static void panel_collision(SceneGraphPtr node, int screen_w, int screen_h,
+static void panel_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h);
+static void panel_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
 			    SceneGraphPtr tree);
 
 static void
-panel_move(SceneGraphPtr node, int screen_w, int screen_h)
+panel_move(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h)
 {
 }
 
 static void
-panel_collision(SceneGraphPtr node, int screen_w, int screen_h,
+panel_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h,
 	       SceneGraphPtr tree)
 {
 }
@@ -40,6 +40,12 @@
     return sgroot;
 }
 
+MainLoopPtr 
+panel::init_only_sg(SgChange *sgroot, int screen_w, int screen_h)
+{
+    return sgroot;
+}
+
 extern Application *
 application() {
     return new panel();