comparison Renderer/Test/Chain.h @ 0:04e28d8d3c6f

first commit
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 08 Nov 2010 01:23:25 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:04e28d8d3c6f
1 #include "Application.h"
2
3 typedef struct {
4 double x, y, next_x, next_y;
5 double vx, vy, next_vx, next_vy;
6 double angle[3];
7 int can_move;
8 SceneGraphPtr parent;
9 int id;
10 int parent_id;
11 } *ChainPropertyPtr, ChainProperty;
12
13
14 class Chain : public Application {
15 public:
16 Chain(){}
17
18 SceneGraphPtr scenegraph_factory(void *p, int size);
19 SceneGraphPtr scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list);
20 void init(TaskManager *manager, int w, int h);
21 void init_chain_vars(ChainPropertyPtr cv);
22 void chain_move(TaskManager *manager, SceneGraphPtr sg, int w, int h);
23 void chain_collision(SceneGraphPtr sg, int w, int h, SceneGraphPtr osg);
24
25 MainLoopPtr init(Viewer *viewer, int screen_w, int screen_h);
26
27
28 };