source:
orxonox.OLD/orxonox/branches/physics/src/subprojects/particles/framework.h
@
4297
Last change on this file since 4297 was 4297, checked in by bensch, 19 years ago | |
---|---|
File size: 712 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 | |
[4297] | 7 | |
[4295] | 8 | #define DATA_DIRECTORY "~/svn/data/" |
9 | ||
[4297] | 10 | class Camera; |
[2952] | 11 | |
[4297] | 12 | class Framework { |
13 | private: | |
14 | Camera* camera; | |
15 | float rotatorP; | |
16 | float rotatorV; | |
17 | ||
18 | float dist; | |
19 | float zoomTo; | |
20 | ||
21 | Uint32 lastFrame; | |
22 | Uint32 currFrame; | |
23 | ||
24 | Vector dir; | |
25 | Vector up; | |
26 | ||
27 | float matQ[4][4]; | |
28 | ||
29 | Vector M; | |
30 | Vector p1; | |
31 | Vector p2; | |
32 | Vector rotAxis; | |
33 | float rotAngle; | |
34 | Quaternion rotQ; | |
35 | Quaternion rotQlast; | |
36 | ||
37 | Uint8* keys; // This variable will be used in the keyboard routine | |
38 | bool mouse1Down; | |
[2931] | 39 | |
[4297] | 40 | public: |
41 | Framework(); | |
42 | ~Framework(); | |
43 | ||
44 | bool mainLoop(); | |
45 | bool draw(float dt); | |
46 | float tick(); | |
47 | bool keyHandler(); | |
48 | }; | |
[2931] | 49 | #endif /* _FRAMEWORK_H */ |
Note: See TracBrowser
for help on using the repository browser.