comparison Renderer/Test_/back_action.cc @ 4:b5b462ac9b3b

Cerium Blender ball_bound
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 29 Nov 2010 16:42:42 +0900
parents
children
comparison
equal deleted inserted replaced
3:3f6fe22ac669 4:b5b462ac9b3b
1 #include <iostream>
2 #include "SceneGraphRoot.h"
3 #include "ball_action.h"
4 using namespace std;
5
6 void
7 back_move(SceneGraphPtr node, void *sgroot_, int w, int h)
8 {
9 SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_;
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, void *sgroot_, int w, int h, SceneGraphPtr tree)
22 {
23
24 }