Mercurial > hg > Game > Cerium
annotate Renderer/Test/back_action.cc @ 1110:3c2c445be6ba draft
warning fix.
author | tkaito@charles |
---|---|
date | Sat, 15 Jan 2011 22:30:35 +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:
560
diff
changeset
|
3 #include "ball_action.h" |
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:
578
diff
changeset
|
7 back_move(SceneGraphPtr node, void *sgroot_, int w, int h) |
539 | 8 { |
653
7a311860a76e
remove global variable "sgroot" , add SgChange.{cc, h} SgMain.cc SgRootChange.{cc, h}
hiroki@henri.cr.ie.u-ryukyu.ac.jp
parents:
578
diff
changeset
|
9 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; |
539 | 10 Pad *pad = sgroot->getController(); |
11 | |
12 if (pad->triangle.isPush()) { | |
562 | 13 SceneGraphPtr ball = sgroot->createSceneGraph("Ball"); |
539 | 14 ball->xyz[0] = -100; |
15 ball->set_move_collision(ball_move, ball_coll); | |
16 node->addChild(ball); | |
17 } | |
18 } | |
19 | |
20 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:
578
diff
changeset
|
21 back_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree) |
539 | 22 { |
23 | |
24 } |