diff Renderer/Test/SgRootChange.cc @ 691:9d1bcc07734b

Test/SgRootChange not work
author hiroki@localhost.localdomain
date Tue, 08 Dec 2009 16:48:01 +0900
parents d0b8860c17f8
children fc0227b5cb5a
line wrap: on
line diff
--- a/Renderer/Test/SgRootChange.cc	Sun Dec 06 20:04:47 2009 +0900
+++ b/Renderer/Test/SgRootChange.cc	Tue Dec 08 16:48:01 2009 +0900
@@ -4,9 +4,6 @@
 #include "MainLoop.h"
 #include "SgRootChange.h"
 
-
-
-
 // prototype
 MainLoopPtr 
 SgRootChange::init(Viewer *sgroot, int screen_w, int screen_h)
@@ -18,18 +15,9 @@
 SgRootChange::init_only_sg(SgChange *sgroot, int screen_w, int screen_h)
 {
     SceneGraphPtr ball;
-    SceneGraphPtr cube;
-    SceneGraphRoot *sg_buff_A = sgroot->sgroot_A;
-    SceneGraphRoot *sg_buff_B = sgroot->sgroot_B;
-
-    sg_buff_A->createFromXMLfile(sgroot->manager, "xml_file/Ball.xml");
-    sg_buff_B->createFromXMLfile(sgroot->manager, "xml_file/cube.xml");
-
-    ball = sgroot->sgroot_A->createSceneGraph("Ball");
-    cube = sgroot->sgroot_B->createSceneGraph("Cube");
-
-    sgroot->sgroot_A->setSceneData(ball);
-    sgroot->sgroot_B->setSceneData(cube);
+    sgroot->createFromXMLfile("xml_file/Ball.xml");
+    ball = sgroot->createSceneGraph("Ball");
+    sgroot->setSceneData(ball);
 
     return sgroot;
 }