Mercurial > hg > Game > Cerium
diff Renderer/Test/property_test.cc @ 781:836ca3419f9d draft
working on Mac OS X
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 05 Mar 2010 13:24:38 +0900 |
parents | 4d83a6a958fd |
children |
line wrap: on
line diff
--- a/Renderer/Test/property_test.cc Fri Mar 05 13:13:05 2010 +0900 +++ b/Renderer/Test/property_test.cc Fri Mar 05 13:24:38 2010 +0900 @@ -6,19 +6,18 @@ #include "property_test.h" #include "Func.h" -ChainPropertyPtr properties[2]; -ChainProperty cv[CHAIN_LEN]; +static ChainPropertyPtr properties[2]; +static ChainProperty cv[CHAIN_LEN]; -void createSceneGraphFromProperty(SceneGraphPtr root, ChainPropertyPtr cv, SgChange *sgroot); -void +static void init_chainold_vars(ChainPropertyPtr cv) { cv->x = 0, cv->y = 0, cv->next_x = 0, cv->next_y = 0; cv->vx = 0, cv->vy = 0, cv->next_vx = 0, cv->next_vy = 0; cv->can_move = TRUE; } -void +static void set_old_vector(ChainPropertyPtr cv, SceneGraphPtr sg) { sg->xyz[0] = (float)cv->next_x; sg->xyz[1] = (float)cv->next_y; @@ -50,7 +49,7 @@ } } -void +static void chain_old_move(SceneGraphPtr sg, void *sgroot_, int w, int h) { int id = sg->id; @@ -106,40 +105,18 @@ = 90 + atan((cv[p].next_y - cv[n].next_y) / (cv[p].next_x - cv[n].next_x)) * 180 / M_PI; } -/* -void -chain_old_collision(SceneGraphPtr sg, int w, int h, SceneGraphPtr osg) -{ - -} -*/ - -void -spe_move_collision(ChainProperty cv, void *sgroot_,spe_move_func new_move, spe_move_func new_collision) -{ - - cv.move = new_move; - cv.collision = new_collision; - -} -void +static void chain_old_collision(SceneGraphPtr node, void *sgroot_, int w, int h, SceneGraphPtr ocv) { //createSceneGraphFromProperty(cv, cv); } -void -property_swich() -{ -} - - -void -createSceneGraphFromProperty(SceneGraphPtr root, ChainPropertyPtr cv, SgChange *sgroot) +static void +createSceneGraphFromProperty(SceneGraphPtr root, ChainPropertyPtr cv, Viewer *sgroot) { SceneGraphPtr node; @@ -161,7 +138,7 @@ } -void +static void set_properties(ChainPropertyPtr cv) { properties[0] = cv; @@ -219,7 +196,7 @@ return new Chain(); } -const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n"; +extern const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n"; extern int init(TaskManager *manager, int argc, char *argv[]); extern void task_initialize();