# HG changeset patch # User yutaka@localhost.localdomain # Date 1274725083 -32400 # Node ID df39c170ae1d4f34cb4003d200d077d5546a6478 # Parent a6a6cd8d84996dceb2b9bb5f71499d14b0c7c8c9 viewer lightsysswitch fix diff -r a6a6cd8d8499 -r df39c170ae1d Renderer/Test/viewer.cc --- a/Renderer/Test/viewer.cc Tue May 25 03:06:02 2010 +0900 +++ b/Renderer/Test/viewer.cc Tue May 25 03:18:03 2010 +0900 @@ -8,17 +8,15 @@ // prototype static void object_move_rotation(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); static void object_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, SceneGraphPtr tree); -static void object_collision_idle(SceneGraphPtr, void *sgroot_, int w, int h, SceneGraphPtr tree); static void object_move_translation(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h); - -char *light_sysswitch = on; +int light_sysswitch = 1; int light_num = 4; void LightSysSwitch(Viewer *sgroot) { - if (strcmp(light_sysswitch,"on") == 0) { + if (light_sysswitch == 1) { sgroot->OnLightSysSwitch(); - } else if (strcmp(light_sysswitch,"off") == 0) { + } else if (light_sysswitch == 0) { sgroot->OffLightSysSwitch(); } } @@ -74,11 +72,6 @@ static void -object_collision_idle(SceneGraphPtr, void *sgroot_, int w, int h, SceneGraphPtr tree) -{ -} - -static void object_collision(SceneGraphPtr node, void *sgroot_, int screen_w, int screen_h, SceneGraphPtr tree) { @@ -153,15 +146,20 @@ task_initialize(); manager->set_TMend(TMend); + for(int i=0;i