Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/branches/physics: made the framework more modular

File size: 968 bytes
Line 
1#ifndef _FRAMEWORK_H
2#define _FRAMEWORK_H
3 
4#include "vector.h"
5#include "glincl.h"
6
7#include "gui_gtk.h"
8
9
10#define DATA_DIRECTORY "~/svn/data/"
11#define MOUSE_BUTTON_COUNT 8
12
13class Camera;
14
15class Framework {
16 private:
17  Framework();
18  static Framework* singletonRef;
19 
20  Camera* camera;
21 
22  bool isFinished;
23
24  int movement [4];
25 
26  Uint32 lastFrame;
27  Uint32 currFrame;
28   
29  Uint8* keys;        // This variable will be used in the keyboard routine
30  bool mouseDown[MOUSE_BUTTON_COUNT];
31
32 public:
33  ~Framework(); 
34 
35  static Framework* getInstance(void);
36
37
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
48  static void* mainLoop(void* tmp);
49  bool draw(float dt);
50  float tick();
51  bool keyHandler();
52  void quit();
53
54  static void* mainloopGui(void* tmp);
55
56  void printHelp(void) const;
57};
58
59int quitGui(GtkWidget* widget, void* data);
60
61
62#endif /* _FRAMEWORK_H */
Note: See TracBrowser for help on using the repository browser.