Mercurial > hg > Members > e085722 > Cerium
comparison Renderer/Test_/title.cc @ 4:b5b462ac9b3b
Cerium Blender ball_bound
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 29 Nov 2010 16:42:42 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:3f6fe22ac669 | 4:b5b462ac9b3b |
---|---|
1 #include "SceneGraphRoot.h" | |
2 #include "vacuum.h" | |
3 | |
4 extern int redcube; | |
5 | |
6 void | |
7 title_collision(SceneGraphPtr node, void *sgroot_, int w, int h,SceneGraphPtr tree) | |
8 { | |
9 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; | |
10 Pad *pad = sgroot->getController(); | |
11 | |
12 if(pad->start.isPush()) { | |
13 | |
14 SceneGraphPtr vacuum; | |
15 SceneGraphPtr back = sgroot->createSceneGraph(); | |
16 | |
17 vacuum = sgroot->createSceneGraph("BIGCUBE"); | |
18 vacuum->xyz[0] = w/2; | |
19 vacuum->xyz[1] = h*0.8; | |
20 vacuum->set_move_collision(vacuum_move, vacuum_coll); | |
21 | |
22 back->addChild(vacuum); | |
23 | |
24 add_cubecollision_object(redcube,vacuum,w,h, sgroot); | |
25 | |
26 sgroot->setSceneData(back); | |
27 | |
28 } | |
29 } |