comparison 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
comparison
equal deleted inserted replaced
523:b273767962b8 524:0f180d46db89
2 #include <stdlib.h> 2 #include <stdlib.h>
3 #include "SceneGraphRoot.h" 3 #include "SceneGraphRoot.h"
4 #include "MainLoop.h" 4 #include "MainLoop.h"
5 #include "xml_file/Ball.xml.h" 5 #include "xml_file/Ball.xml.h"
6 #include "ball_bound.h" 6 #include "ball_bound.h"
7
7 8
8 // prototype 9 // prototype
9 static void ball_move(SceneGraphPtr node, int screen_w, int screen_h); 10 static void ball_move(SceneGraphPtr node, int screen_w, int screen_h);
10 static void ball_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree); 11 static void ball_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree);
11 static void ball_collision_idle(SceneGraphPtr, int w, int h, SceneGraphPtr tree); 12 static void ball_collision_idle(SceneGraphPtr, int w, int h, SceneGraphPtr tree);
107 extern Application * 108 extern Application *
108 application() { 109 application() {
109 return new ball_bound(); 110 return new ball_bound();
110 } 111 }
111 112
113 const char *usr_help_str = "Usage: ./test_nogl [OPTION]\n";
114
112 MainLoopPtr 115 MainLoopPtr
113 ball_bound::init(Viewer *viewer, int screen_w, int screen_h) 116 ball_bound::init(Viewer *viewer, int screen_w, int screen_h)
114 { 117 {
115 SceneGraphPtr ball; 118 SceneGraphPtr ball;
116 119
134 viewer->setSceneData(ball); 137 viewer->setSceneData(ball);
135 138
136 return viewer; 139 return viewer;
137 } 140 }
138 141
142 extern int init(TaskManager *manager, int argc, char *argv[]);
143 extern void task_initialize();
144 static void TMend(TaskManager *manager);
145
146 int
147 TMmain(TaskManager *manager, int argc, char *argv[])
148 {
149 task_initialize();
150 manager->set_TMend(TMend);
151 return init(manager, argc, argv);
152
153 }
154
155 void
156 TMend(TaskManager *manager)
157 {
158 printf("test_nogl end\n");
159 }
160
139 /* end */ 161 /* end */