Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/ball_action.cc @ 656:d0b8860c17f8
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 | 71b3363c16bf |
children |
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 | |
656
d0b8860c17f8
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) |
507 | 8 { |
9 node->xyz[0] += 4; | |
10 } | |
11 | |
12 void | |
656
d0b8860c17f8
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) |
507 | 14 { |
15 if (node->xyz[0] > 600) node->remove(); | |
16 } |