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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
4 #ifndef INCLUDED_APPLICATION
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
5 #define INCLUDED_APPLICATION
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
6
431
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 427
diff changeset
7 #include "SceneGraph.h"
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 427
diff changeset
8
427
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
9 typedef void (*move_func)(SceneGraph* node, int screen_w, int screen_h);
431
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 427
diff changeset
10 typedef void (*coll_func)(SceneGraph* node, int screen_w, int screen_h, SceneGraphPtr tree);
427
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
11
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
12 class Application {
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
13 public:
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
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
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
16
435
cf2704424cc0 ChainCal task fix
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 431
diff changeset
17 void *propertyPtr;
cf2704424cc0 ChainCal task fix
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 431
diff changeset
18 int property_size;
427
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
19 void set_move_func(move_func move);
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
20 void set_coll_func(coll_func coll);
435
cf2704424cc0 ChainCal task fix
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 431
diff changeset
21 void set_move_taskid(int id);
431
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 427
diff changeset
22 // SceneGraphPtr scenegraph_factory(PropertyPtr p);
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 427
diff changeset
23 // SceneGraphPtr scenegraph_connector(PropertyPtr p,SceneGraphPtr s);
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 427
diff changeset
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
cf2704424cc0 ChainCal task fix
game@henri.cr.ie.u-ryukyu.ac.jp
parents: 431
diff changeset
27 int move_taskid;
427
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
28 move_func move;
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
29 coll_func coll;
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
30 };
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
31
b48df6332eb8 add Application.{cc, h}
game@henri.cr.ie.u-ryukyu.ac.jp
parents:
diff changeset
32 #endif