507
|
1 #ifndef INCLUDED_APPLICATION
|
|
2 #define INCLUDED_APPLICATION
|
|
3
|
|
4 #include "SceneGraph.h"
|
511
|
5 #include "MainLoop.h"
|
|
6 #include "viewer.h"
|
510
|
7
|
|
8 typedef void (*Move_func)(SceneGraph* node, int screen_w, int screen_h);
|
|
9 typedef void (*Coll_func)(SceneGraph* node, int screen_w, int screen_h, SceneGraphPtr tree);
|
507
|
10
|
511
|
11 class Viewer;
|
|
12
|
507
|
13 class Application {
|
|
14 public:
|
|
15 Application();
|
|
16 virtual ~Application();
|
|
17
|
511
|
18 virtual MainLoopPtr init(Viewer *viewer, int w, int h) = 0;
|
507
|
19
|
|
20 };
|
|
21
|
|
22 #endif
|