Mercurial > hg > Members > kono > Cerium
annotate Renderer/Test/back_action.cc @ 772:e53ae444ac6f
Test/property_chain is work
author | hiroki@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Mon, 15 Feb 2010 13:33:29 +0900 |
parents | d0b8860c17f8 |
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:
560
diff
changeset
|
3 #include "ball_action.h" |
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:
578
diff
changeset
|
7 back_move(SceneGraphPtr node, void *sgroot_, int w, int h) |
507 | 8 { |
656
d0b8860c17f8
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_; |
507 | 10 Pad *pad = sgroot->getController(); |
11 | |
12 if (pad->triangle.isPush()) { | |
562 | 13 SceneGraphPtr ball = sgroot->createSceneGraph("Ball"); |
507 | 14 ball->xyz[0] = -100; |
15 ball->set_move_collision(ball_move, ball_coll); | |
16 node->addChild(ball); | |
17 } | |
18 } | |
19 | |
20 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:
578
diff
changeset
|
21 back_coll(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr tree) |
507 | 22 { |
23 | |
24 } |