Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4331 was 4331, checked in by bensch, 19 years ago

orxonox/branches/physics: no more threading

File size: 796 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  bool isFinished;
21
22  int movement [4];
23 
24  Uint32 lastFrame;
25  Uint32 currFrame;
26   
27  Uint8* keys; // This variable will be used in the keyboard routine
28  bool mouseDown[MOUSE_BUTTON_COUNT];
29
30 public:
31  ~Framework();
32 
33  static Framework* getInstance(void);
34
35
36  void initModule();
37  static void* mainLoop(void* tmp);
38  bool draw(float dt);
39  float tick();
40  bool keyHandler();
41  void quit();
42
43  void* initGui(void* argv);
44  static void* mainloopGui(void* tmp);
45
46  void printHelp(void) const;
47};
48
49#endif /* _FRAMEWORK_H */
Note: See TracBrowser for help on using the repository browser.