539
|
1 #ifndef INCLUDED_APPLICATION
|
|
2 #define INCLUDED_APPLICATION
|
|
3
|
|
4 #include "SceneGraph.h"
|
|
5
|
|
6 typedef void (*move_func)(SceneGraph* node, int screen_w, int screen_h);
|
|
7 typedef void (*coll_func)(SceneGraph* node, int screen_w, int screen_h, SceneGraphPtr tree);
|
|
8
|
|
9 class Application {
|
|
10 public:
|
|
11 Application();
|
|
12 virtual ~Application();
|
|
13
|
|
14 void *propertyPtr;
|
|
15 int property_size;
|
|
16 int move_task_id_;
|
|
17
|
|
18 int move_task_id();
|
|
19 void set_move_func(move_func move);
|
|
20 void set_coll_func(coll_func coll);
|
|
21 SceneGraphPtr scenegraph_factory(void *p, int size);
|
|
22 SceneGraphPtr scenegraph_connector(void *p, int size, SceneGraphPtr s, SceneGraphPtr sg_available_list);
|
|
23 virtual void init(TaskManager *manager, int w, int h) ;
|
|
24
|
|
25 };
|
|
26
|
|
27 #endif
|