Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/ball_action.cc @ 561:71b3363c16bf
gplant (not yet worked...)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 19:31:09 +0900 |
parents | f6daf964f483 |
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:
508
diff
changeset
|
3 |
507 | 4 using namespace std; |
5 | |
6 void | |
7 ball_move(SceneGraphPtr node, int w, int h) | |
8 { | |
9 node->xyz[0] += 4; | |
10 } | |
11 | |
12 void | |
13 ball_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) | |
14 { | |
15 if (node->xyz[0] > 600) node->remove(); | |
16 } |