Mercurial > hg > Members > kono > Cerium
diff Renderer/Test/ball_bound.cc @ 524:0f180d46db89
Cerium no error.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 22 Oct 2009 14:05:24 +0900 |
parents | 01b64f21405e |
children | ec72b601b71f |
line wrap: on
line diff
--- a/Renderer/Test/ball_bound.cc Tue Oct 20 22:29:27 2009 +0900 +++ b/Renderer/Test/ball_bound.cc Thu Oct 22 14:05:24 2009 +0900 @@ -5,6 +5,7 @@ #include "xml_file/Ball.xml.h" #include "ball_bound.h" + // prototype static void ball_move(SceneGraphPtr node, int screen_w, int screen_h); static void ball_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree); @@ -109,6 +110,8 @@ return new ball_bound(); } +const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n"; + MainLoopPtr ball_bound::init(Viewer *viewer, int screen_w, int screen_h) { @@ -136,4 +139,23 @@ return viewer; } +extern int init(TaskManager *manager, int argc, char *argv[]); +extern void task_initialize(); +static void TMend(TaskManager *manager); + +int +TMmain(TaskManager *manager, int argc, char *argv[]) +{ + task_initialize(); + manager->set_TMend(TMend); + return init(manager, argc, argv); + +} + +void +TMend(TaskManager *manager) +{ + printf("test_nogl end\n"); +} + /* end */