Mercurial > hg > Game > Cerium
annotate Renderer/Test/ball_action.cc @ 881:bfddd6c29aad draft
cannot load xml of 3rd screen bug fix (include init bug yet)
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 09 Jul 2010 14:33:31 +0900 |
parents | 7a311860a76e |
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 } |