Mercurial > hg > Members > kono > Cerium
annotate TaskManager/Test/test_render/Application.h @ 444:bd81b461d2fc
test_render is not working...
author | game@henri.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Fri, 25 Sep 2009 05:54:33 +0900 |
parents | cf2704424cc0 |
children | 579d71efbd70 |
rev | line source |
---|---|
444
bd81b461d2fc
test_render is not working...
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
435
diff
changeset
|
1 class Application; |
bd81b461d2fc
test_render is not working...
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
435
diff
changeset
|
2 typedef Application *ApplicationPtr; |
bd81b461d2fc
test_render is not working...
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
435
diff
changeset
|
3 |
427 | 4 #ifndef INCLUDED_APPLICATION |
5 #define INCLUDED_APPLICATION | |
6 | |
431 | 7 #include "SceneGraph.h" |
8 | |
427 | 9 typedef void (*move_func)(SceneGraph* node, int screen_w, int screen_h); |
431 | 10 typedef void (*coll_func)(SceneGraph* node, int screen_w, int screen_h, SceneGraphPtr tree); |
427 | 11 |
12 class Application { | |
13 public: | |
14 Application(); | |
444
bd81b461d2fc
test_render is not working...
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
435
diff
changeset
|
15 virtual ~Application(); |
427 | 16 |
435 | 17 void *propertyPtr; |
18 int property_size; | |
427 | 19 void set_move_func(move_func move); |
20 void set_coll_func(coll_func coll); | |
435 | 21 void set_move_taskid(int id); |
431 | 22 // SceneGraphPtr scenegraph_factory(PropertyPtr p); |
23 // SceneGraphPtr scenegraph_connector(PropertyPtr p,SceneGraphPtr s); | |
24 SceneGraphPtr scenegraph_factory(void *p, int size); | |
444
bd81b461d2fc
test_render is not working...
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
435
diff
changeset
|
25 SceneGraphPtr scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list); |
bd81b461d2fc
test_render is not working...
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
435
diff
changeset
|
26 virtual void init(TaskManager *manager, int w, int h); |
435 | 27 int move_taskid; |
427 | 28 move_func move; |
29 coll_func coll; | |
30 }; | |
31 | |
32 #endif |