comparison Renderer/Test/ball_bound.cc @ 512:01b64f21405e

ball_bound worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 21:39:57 +0900
parents 997490a061ee
children 0f180d46db89
comparison
equal deleted inserted replaced
511:997490a061ee 512:01b64f21405e
1 #include <math.h> 1 #include <math.h>
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 "ball_xml.h" 5 #include "xml_file/Ball.xml.h"
6 #include "ball_bound.h" 6 #include "ball_bound.h"
7 7
8 // prototype 8 // prototype
9 static void ball_move(SceneGraphPtr node, int screen_w, int screen_h); 9 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); 10 static void ball_collision(SceneGraphPtr node, int screen_w, int screen_h, SceneGraphPtr tree);
102 node->set_move_collision(ball_move_idle, ball_collision_idle); 102 node->set_move_collision(ball_move_idle, ball_collision_idle);
103 } 103 }
104 } 104 }
105 } 105 }
106 106
107 extern Application *
108 application() {
109 return new ball_bound();
110 }
111
107 MainLoopPtr 112 MainLoopPtr
108 ball_bound::init(Viewer *viewer, int screen_w, int screen_h) 113 ball_bound::init(Viewer *viewer, int screen_w, int screen_h)
109 { 114 {
110 SceneGraphPtr ball; 115 SceneGraphPtr ball;
111 116