Mercurial > hg > Members > kono > Cerium
diff Renderer/Application/gaplant.cc @ 507:735f76483bb2
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Renderer/Application/gaplant.cc Mon Oct 12 09:39:35 2009 +0900 @@ -0,0 +1,30 @@ +#include "SceneGraphRoot.h" +#include "SGList.h" +#include "gaplant_action.h" +#include "back_action.h" + +void +init_gaplant(TaskManager *manager, int w, int h) +{ + SceneGraphPtr back; + SceneGraphPtr gaplant; + sgroot->createFromXMLfile(manager, "xml_file/gap_plane_test.xml"); + sgroot->createFromXMLfile(manager, "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); +}