Mercurial > hg > Game > Cerium
comparison Renderer/Test/ball_action.cc @ 653:7a311860a76e draft
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
author | hiroki@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Wed, 25 Nov 2009 21:56:14 +0900 |
parents | 5d9728befc2d |
children |
comparison
equal
deleted
inserted
replaced
646:9f9390b45f78 | 653:7a311860a76e |
---|---|
2 #include "SceneGraphRoot.h" | 2 #include "SceneGraphRoot.h" |
3 | 3 |
4 using namespace std; | 4 using namespace std; |
5 | 5 |
6 void | 6 void |
7 ball_move(SceneGraphPtr node, int w, int h) | 7 ball_move(SceneGraphPtr node, void *sgroot_, int w, int h) |
8 { | 8 { |
9 node->xyz[0] += 4; | 9 node->xyz[0] += 4; |
10 } | 10 } |
11 | 11 |
12 void | 12 void |
13 ball_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) | 13 ball_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree) |
14 { | 14 { |
15 if (node->xyz[0] > 600) node->remove(); | 15 if (node->xyz[0] > 600) node->remove(); |
16 } | 16 } |