Mercurial > hg > Game > Cerium
annotate 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 |
rev | line source |
---|---|
539 | 1 #include <iostream> |
2 #include "SceneGraphRoot.h" | |
561
5d9728befc2d
gplant (not yet worked...)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
540
diff
changeset
|
3 |
539 | 4 using namespace std; |
5 | |
6 void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
561
diff
changeset
|
7 ball_move(SceneGraphPtr node, void *sgroot_, int w, int h) |
539 | 8 { |
9 node->xyz[0] += 4; | |
10 } | |
11 | |
12 void | |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
561
diff
changeset
|
13 ball_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree) |
539 | 14 { |
15 if (node->xyz[0] > 600) node->remove(); | |
16 } |