diff Renderer/Test/chain_old.cc @ 585:987380738a50

chain_old
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 26 Oct 2009 09:03:14 +0900
parents ec72b601b71f
children f42b303044f7
line wrap: on
line diff
--- a/Renderer/Test/chain_old.cc	Sun Oct 25 20:24:53 2009 +0900
+++ b/Renderer/Test/chain_old.cc	Mon Oct 26 09:03:14 2009 +0900
@@ -1,9 +1,9 @@
 #include <iostream>
 #include <math.h>
 #include "SceneGraphRoot.h"
-#include "SGList.h"
 #include "SceneGraph.h"
 #include "TaskManager.h"
+#include "Chain.h"
 #include "Func.h"
 
 
@@ -127,14 +127,14 @@
 }
 
 MainLoopPtr
-chain_old::init(Viewer *sgroot, int w, int h)
+Chain::init(Viewer *sgroot, int w, int h)
 {
     SceneGraphPtr root_old_chain, chain;
     CHAIN_VARS rcv;
 
-    sgroot->createFromXMLfile(manager,"xml_file/chain.xml");
+    sgroot->createFromXMLfile("xml_file/chain.xml");
 
-    root_old_chain = sgroot->createSceneGraph(CHAIN);
+    root_old_chain = sgroot->createSceneGraph("CHAIN");
     root_old_chain->set_move_collision(chain_old_move_ope, chain_old_collision);
     init_chainold_vars(&rcv);
     rcv.next_x = w / 2;
@@ -142,7 +142,7 @@
     set_old_vector(&rcv, root_old_chain);
 
     for(int i = 0; i < CHAIN_LEN; i++) {
-        chain = sgroot->createSceneGraph(CHAIN);
+        chain = sgroot->createSceneGraph("CHAIN");
         chain->id = i;
         init_chainold_vars(&cv[i]);
         cv[i].x = 0;
@@ -161,7 +161,7 @@
 
 extern Application *
 application() {
-    return new ball_bound();
+    return new Chain();
 }
 
 const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n";