Mercurial > hg > Game > Cerium
diff TaskManager/Test/test_render/Application/Chain.cc @ 520:8d86242337ba draft
SGList isn't used
author | tkaito@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 21 Oct 2009 19:56:00 +0900 |
parents | 9f23e9d4973f |
children | 413667c70a1d |
line wrap: on
line diff
--- a/TaskManager/Test/test_render/Application/Chain.cc Wed Oct 21 16:56:13 2009 +0900 +++ b/TaskManager/Test/test_render/Application/Chain.cc Wed Oct 21 19:56:00 2009 +0900 @@ -2,7 +2,6 @@ #include <math.h> #include "SceneGraphRoot.h" #include "SceneGraph.h" -#include "SGList.h" #include "TaskManager.h" #include "Func.h" #include "Chain.h" @@ -97,7 +96,7 @@ createSceneGraphFromProperty(void* p) { ChainPropertyPtr chain_p = (ChainPropertyPtr)p; - SceneGraphPtr chain_copy = sgroot->createSceneGraph(CHAIN); + SceneGraphPtr chain_copy = sgroot->createSceneGraph("CHAIN"); chain_copy->propertyptr = (void*)chain_p; chain_copy->property_size = sizeof(ChainProperty); set_vector(chain_p, chain_copy); @@ -209,17 +208,17 @@ Chain::init(TaskManager *manager_, int w, int h) { SceneGraphPtr root_chain, chain; - ChainProperty r; + //ChainProperty r; manager = manager_; - sgroot->createFromXMLfile(manager, "xml_file/chain.xml"); + sgroot->createFromXMLmemory(manager, "xml_file/chain.xml"); /* SPE に送る property の配列の領域確保 */ properties[0] = (ChainPropertyPtr)manager->allocate(sizeof(ChainProperty)*CHAIN_LEN); properties[1] = (ChainPropertyPtr)manager->allocate(sizeof(ChainProperty)*CHAIN_LEN); property = properties[0]; - root_chain = sgroot->createSceneGraph(CHAIN); + root_chain = sgroot->createSceneGraph("CHAIN"); init_chain_vars(&property[0]); property[0].next_x = w / 2; property[0].next_y = 0.0; @@ -230,7 +229,7 @@ set_vector(&property[0], root_chain); for(int i = 1; i < CHAIN_LEN; i++) { - chain = sgroot->createSceneGraph(CHAIN); + chain = sgroot->createSceneGraph("CHAIN"); property[i].id = i; init_chain_vars(&property[i]); property[i].x = 0;