Mercurial > hg > Game > Cerium
comparison TaskManager/Test/test_render/Application/chain.cc @ 435:7705fa2025da draft
ChainCal task fix
author | game@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Thu, 24 Sep 2009 22:35:46 +0900 |
parents | b40a9b901d71 |
children | efe8584a7b5a |
comparison
equal
deleted
inserted
replaced
432:d24fa608702e | 435:7705fa2025da |
---|---|
113 set_vector(chain_p, chain_copy); | 113 set_vector(chain_p, chain_copy); |
114 chain_p->parent->addChild(chain_copy); | 114 chain_p->parent->addChild(chain_copy); |
115 } | 115 } |
116 | 116 |
117 void | 117 void |
118 Chain::chain_init(TaskManager *manager, int w, int h) | 118 Chain::init(TaskManager *manager, int w, int h) |
119 { | 119 { |
120 SceneGraphPtr root_chain, chain; | 120 SceneGraphPtr root_chain, chain; |
121 CHAIN_VARS rcv; | 121 CHAIN_VARS rcv; |
122 | 122 |
123 HTaskPtr chain_init; | 123 HTaskPtr chain_init; |
124 | 124 |
125 | 125 set_move_taskid(CHAIN_CAL); |
126 sgroot->createFromXMLfile(manager, "xml_file/chain.xml"); | 126 sgroot->createFromXMLfile(manager, "xml_file/chain.xml"); |
127 | 127 |
128 /* SPE に送る property の配列の領域確保 */ | 128 /* SPE に送る property の配列の領域確保 */ |
129 properties[0] = (PropertyPtr)manager->allocate(sizeof(CHAIN_VARS)*CHAIN_LEN); | 129 properties[0] = (PropertyPtr)manager->allocate(sizeof(CHAIN_VARS)*CHAIN_LEN); |
130 properties[1] = (PropertyPtr)manager->allocate(sizeof(CHAIN_VARS)*CHAIN_LEN); | 130 properties[1] = (PropertyPtr)manager->allocate(sizeof(CHAIN_VARS)*CHAIN_LEN); |