Mercurial > hg > Members > kono > Cerium
comparison Renderer/Application/back_action.cc @ 507:735f76483bb2
Reorganization..
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:39:35 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
506:1d4a8a86f26b | 507:735f76483bb2 |
---|---|
1 #include <iostream> | |
2 #include "SceneGraphRoot.h" | |
3 #include "SGList.h" | |
4 #include "ball_action.h" | |
5 using namespace std; | |
6 | |
7 void | |
8 back_move(SceneGraphPtr node, int w, int h) | |
9 { | |
10 Pad *pad = sgroot->getController(); | |
11 | |
12 if (pad->triangle.isPush()) { | |
13 SceneGraphPtr ball = sgroot->createSceneGraph(Ball); | |
14 ball->xyz[0] = -100; | |
15 ball->set_move_collision(ball_move, ball_coll); | |
16 node->addChild(ball); | |
17 } | |
18 } | |
19 | |
20 void | |
21 back_coll(SceneGraphPtr node, int w, int h, SceneGraphPtr tree) | |
22 { | |
23 | |
24 } |