Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/back_action.cc @ 639:70c5c2d2eb24
fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 Nov 2009 18:45:24 +0900 |
parents | a068627a0bc6 |
children | d0b8860c17f8 |
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" |
507 | 4 using namespace std; |
5 | |
6 void | |
7 back_move(SceneGraphPtr node, int w, int h) | |
8 { | |
9 Pad *pad = sgroot->getController(); | |
10 | |
11 if (pad->triangle.isPush()) { | |
562 | 12 SceneGraphPtr ball = sgroot->createSceneGraph("Ball"); |
507 | 13 ball->xyz[0] = -100; |
14 ball->set_move_collision(ball_move, ball_coll); | |
15 node->addChild(ball); | |
16 } | |
17 } | |
18 | |
19 void | |
20 back_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) | |
21 { | |
22 | |
23 } |