Last change
on this file since 4340 was
4338,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged branches/physics back to the trunk
merged with command
svn merge -r 3866:HEAD . ../../trunk/
many conflict that i tried to resolv
@patrick: i hope i did not interfere with your stuff :/
|
File size:
1.0 KB
|
Line | |
---|
1 | #ifndef _FRAMEWORK_H |
---|
2 | #define _FRAMEWORK_H |
---|
3 | |
---|
4 | #include "vector.h" |
---|
5 | #include "glincl.h" |
---|
6 | #include "SDL_events.h" |
---|
7 | |
---|
8 | #include "gui_gtk.h" |
---|
9 | |
---|
10 | |
---|
11 | #define DATA_DIRECTORY "~/svn/data/" |
---|
12 | #define MOUSE_BUTTON_COUNT 8 |
---|
13 | |
---|
14 | class Camera; |
---|
15 | |
---|
16 | class Framework { |
---|
17 | private: |
---|
18 | Framework(); |
---|
19 | static Framework* singletonRef; |
---|
20 | |
---|
21 | Camera* camera; |
---|
22 | |
---|
23 | bool isFinished; |
---|
24 | |
---|
25 | int movement [4]; |
---|
26 | |
---|
27 | Uint32 lastFrame; |
---|
28 | Uint32 currFrame; |
---|
29 | |
---|
30 | Uint8* keys; // This variable will be used in the keyboard routine |
---|
31 | bool mouseDown[MOUSE_BUTTON_COUNT]; |
---|
32 | |
---|
33 | public: |
---|
34 | ~Framework(); |
---|
35 | |
---|
36 | static Framework* getInstance(void); |
---|
37 | |
---|
38 | |
---|
39 | void moduleInit(); |
---|
40 | void moduleInitGui(void); |
---|
41 | void moduleEventHandler(SDL_Event* event); |
---|
42 | void moduleTick(float dt); |
---|
43 | void moduleDraw(float dt); |
---|
44 | |
---|
45 | void moduleHelp(void) const; |
---|
46 | |
---|
47 | |
---|
48 | |
---|
49 | static void* mainLoop(void* tmp); |
---|
50 | bool draw(float dt); |
---|
51 | float tick(); |
---|
52 | bool eventHandler(); |
---|
53 | void quit(); |
---|
54 | |
---|
55 | static void* mainloopGui(void* tmp); |
---|
56 | |
---|
57 | void printHelp(void) const; |
---|
58 | }; |
---|
59 | |
---|
60 | int quitGui(GtkWidget* widget, void* data); |
---|
61 | |
---|
62 | |
---|
63 | #endif /* _FRAMEWORK_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.