source:
orxonox.OLD/orxonox/branches/physics/src/subprojects/particles/framework.h
@
4333
Last change on this file since 4333 was 4333, checked in by bensch, 19 years ago | |
---|---|
File size: 968 bytes |
Rev | Line | |
---|---|---|
[2931] | 1 | #ifndef _FRAMEWORK_H |
2 | #define _FRAMEWORK_H | |
3 | ||
[3656] | 4 | #include "vector.h" |
[4293] | 5 | #include "glincl.h" |
[2931] | 6 | |
[4333] | 7 | #include "gui_gtk.h" |
[4297] | 8 | |
[4333] | 9 | |
[4295] | 10 | #define DATA_DIRECTORY "~/svn/data/" |
[4306] | 11 | #define MOUSE_BUTTON_COUNT 8 |
[4295] | 12 | |
[4297] | 13 | class Camera; |
[2952] | 14 | |
[4297] | 15 | class Framework { |
16 | private: | |
[4317] | 17 | Framework(); |
18 | static Framework* singletonRef; | |
[4331] | 19 | |
[4297] | 20 | Camera* camera; |
21 | ||
[4331] | 22 | bool isFinished; |
[4317] | 23 | |
[4300] | 24 | int movement [4]; |
[4297] | 25 | |
26 | Uint32 lastFrame; | |
27 | Uint32 currFrame; | |
[4300] | 28 | |
[4333] | 29 | Uint8* keys; // This variable will be used in the keyboard routine |
[4306] | 30 | bool mouseDown[MOUSE_BUTTON_COUNT]; |
[2931] | 31 | |
[4297] | 32 | public: |
[4333] | 33 | ~Framework(); |
[4297] | 34 | |
[4317] | 35 | static Framework* getInstance(void); |
36 | ||
[4331] | 37 | |
[4333] | 38 | void moduleInit(); |
39 | void* moduleInitGui(void); | |
40 | ||
41 | void moduleDraw(float dt); | |
42 | void moduleTick(float dt); | |
43 | ||
44 | void moduleHelp(void) const; | |
45 | ||
46 | ||
47 | ||
[4330] | 48 | static void* mainLoop(void* tmp); |
[4297] | 49 | bool draw(float dt); |
50 | float tick(); | |
51 | bool keyHandler(); | |
[4331] | 52 | void quit(); |
[4307] | 53 | |
[4330] | 54 | static void* mainloopGui(void* tmp); |
[4316] | 55 | |
[4307] | 56 | void printHelp(void) const; |
[4297] | 57 | }; |
[4330] | 58 | |
[4333] | 59 | int quitGui(GtkWidget* widget, void* data); |
60 | ||
61 | ||
[2931] | 62 | #endif /* _FRAMEWORK_H */ |
Note: See TracBrowser
for help on using the repository browser.