Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/back_action.cc @ 566:006c4e9e6acb
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 23:49:34 +0900 |
parents | a5fda4e51498 |
children | a068627a0bc6 |
rev | line source |
---|---|
507 | 1 #include <iostream> |
2 #include "SceneGraphRoot.h" | |
561
71b3363c16bf
gplant (not yet worked...)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
560
diff
changeset
|
3 #include "ball_action.h" |
560
1a2f015c42b2
gaplant... how to solve scenegraph id conflict?
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
508
diff
changeset
|
4 #include "xml_file/gap_plane_test.xml.h" |
507 | 5 using namespace std; |
6 | |
7 void | |
8 back_move(SceneGraphPtr node, int w, int h) | |
9 { | |
10 Pad *pad = sgroot->getController(); | |
11 | |
12 if (pad->triangle.isPush()) { | |
562 | 13 SceneGraphPtr ball = sgroot->createSceneGraph("Ball"); |
507 | 14 ball->xyz[0] = -100; |
15 ball->set_move_collision(ball_move, ball_coll); | |
16 node->addChild(ball); | |
17 } | |
18 } | |
19 | |
20 void | |
21 back_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) | |
22 { | |
23 | |
24 } |