Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/physics/src/subprojects/particles/framework.h @ 4328

Last change on this file since 4328 was 4317, checked in by bensch, 20 years ago

orxonox/branches/physics: threads work :)

File size: 709 bytes
Line 
1#ifndef _FRAMEWORK_H
2#define _FRAMEWORK_H
3 
4#include "vector.h"
5#include "glincl.h"
6
7
8#define DATA_DIRECTORY "~/svn/data/"
9#define MOUSE_BUTTON_COUNT 8
10
11class Camera;
12
13class Framework {
14 private:
15  Framework();
16  static Framework* singletonRef;
17
18  Camera* camera;
19 
20
21  int movement [4];
22 
23  Uint32 lastFrame;
24  Uint32 currFrame;
25   
26  Uint8* keys; // This variable will be used in the keyboard routine
27  bool mouseDown[MOUSE_BUTTON_COUNT];
28
29 public:
30  ~Framework();
31 
32  static Framework* getInstance(void);
33
34  void initModule();
35  bool mainLoop();
36  bool draw(float dt);
37  float tick();
38  bool keyHandler();
39
40  static void* initGui(void* argv);
41
42  void printHelp(void) const;
43};
44#endif /* _FRAMEWORK_H */
Note: See TracBrowser for help on using the repository browser.