Mercurial > hg > Game > Cerium
comparison TaskManager/Test/test_render/vacuum.cpp @ 238:443c7ae1c7a7 draft
warning clean
author | admin@mcbk.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 29 May 2009 13:43:52 +0900 |
parents | ef7034891800 |
children | 4430f0bff5cb |
comparison
equal
deleted
inserted
replaced
237:7bd052a53996 | 238:443c7ae1c7a7 |
---|---|
8 static void cube_collision(SceneGraphPtr node, int screen_w, int screen_h, | 8 static void cube_collision(SceneGraphPtr node, int screen_w, int screen_h, |
9 SceneGraphPtr tree); | 9 SceneGraphPtr tree); |
10 static void cube_split(SceneGraphPtr root); | 10 static void cube_split(SceneGraphPtr root); |
11 | 11 |
12 static void vacuum_move(SceneGraphPtr node, int w, int h); | 12 static void vacuum_move(SceneGraphPtr node, int w, int h); |
13 static void vacuum_coll(SceneGraphPtr node, int w, int h); | 13 //static void vacuum_coll(SceneGraphPtr node, int w, int h); |
14 | 14 |
15 static float vacuum_speed = 3.0f; | 15 static float vacuum_speed = 3.0f; |
16 | 16 |
17 static void | 17 static void |
18 cube_move_left(SceneGraphPtr node, int screen_w, int screen_h) | 18 cube_move_left(SceneGraphPtr node, int screen_w, int screen_h) |
118 static void | 118 static void |
119 vacuum_coll(SceneGraphPtr node, int screen_w, int screen_h, | 119 vacuum_coll(SceneGraphPtr node, int screen_w, int screen_h, |
120 SceneGraphPtr tree) | 120 SceneGraphPtr tree) |
121 { | 121 { |
122 SceneGraphIteratorPtr it = sgroot->getIterator(); | 122 SceneGraphIteratorPtr it = sgroot->getIterator(); |
123 SceneGraphPtr bigm; | 123 //xSceneGraphPtr bigm; |
124 Pad *pad = sgroot->getController(); | 124 Pad *pad = sgroot->getController(); |
125 float dx, dy, r; | 125 float dx, dy, r; |
126 float q = 0; | 126 float q = 0; |
127 | 127 |
128 if (pad->cross.isRelease()) { | 128 if (pad->cross.isRelease()) { |