Mercurial > hg > Members > kono > Cerium
comparison TaskManager/Test/test_render/ball_action.cpp @ 323:1f251e8cb2ec
add gaplant
author | aaa |
---|---|
date | Wed, 10 Jun 2009 17:18:15 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
322:4be5ae77e02c | 323:1f251e8cb2ec |
---|---|
1 #include <iostream> | |
2 #include "SceneGraphRoot.h" | |
3 #include "SGList.h" | |
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 } |