Mercurial > hg > Game > Cerium
comparison Renderer/Test/back_action.cc @ 540:4c5264373c51 draft
reorganization
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 12 Oct 2009 09:43:07 +0900 |
parents | Renderer/Application/back_action.cc@3bc98f6d31ff |
children | f28217567cbe |
comparison
equal
deleted
inserted
replaced
539:3bc98f6d31ff | 540:4c5264373c51 |
---|---|
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 } |