Mercurial > hg > Members > kono > Cerium
view TaskManager/Test/test_render/gaplant.cpp @ 362:a64a6c34868f
vacuum -sg 15
author | e065746@localhost.localdomain |
---|---|
date | Fri, 17 Jul 2009 23:02:07 +0900 |
parents | 1f251e8cb2ec |
children | a4f690f44842 |
line wrap: on
line source
#include "SceneGraphRoot.h" #include "SGList.h" #include "gaplant_action.h" #include "back_action.h" void init_gaplant(int w, int h) { SceneGraphPtr back; SceneGraphPtr gaplant; sgroot->createFromXMLfile("xml_file/gap_plane_test.xml"); sgroot->createFromXMLfile("xml_file/Ball.xml"); back = sgroot->createSceneGraph(); back->set_move_collision(back_move, back_coll); gaplant = sgroot->createSceneGraph(); gaplant->xyz[0] = 200; gaplant->angle[0] = -60; gaplant->angle[1] = 0; gaplant->angle[2] = 0; gaplant->set_move_collision(gaplant_move, gaplant_coll); for (int i = arm_L_D; i <= foot_L_A; i++) { SceneGraphPtr p = sgroot->createSceneGraph(i); gaplant->addChild(p); } back->addChild(gaplant); sgroot->setSceneData(back); }