Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/subprojects/framework.h @ 4358

Last change on this file since 4358 was 4349, checked in by bensch, 20 years ago

orxonox/trunk: ParticleEngine now has a draw-function, that makes sense

File size: 1.1 KB
Line 
1#ifndef _FRAMEWORK_H
2#define _FRAMEWORK_H
3 
4#include "vector.h"
5#include "glincl.h"
6#include "SDL_events.h"
7#include "debug.h"
8
9#ifdef GUI_MODULE
10#include "gui_gtk.h"
11#endif
12
13#define DATA_DIRECTORY "~/svn/data/"
14#define MOUSE_BUTTON_COUNT 8
15
16class Camera;
17
18class Framework {
19 private:
20  Framework();
21  static Framework* singletonRef;
22 
23  Camera* camera;
24 
25  bool isFinished;
26
27  int movement [4];
28 
29  Uint32 lastFrame;
30  Uint32 currFrame;
31   
32  Uint8* keys;        // This variable will be used in the keyboard routine
33  bool mouseDown[MOUSE_BUTTON_COUNT];
34
35 public:
36  ~Framework(); 
37 
38  static Framework* getInstance(void);
39
40
41  void moduleInit(int argc, char** argv);
42#ifdef GUI_MODULE
43  void moduleInitGui(int argc, char** argv);
44#endif
45  void moduleEventHandler(SDL_Event* event);
46  void moduleTick(float dt);
47  void moduleDraw(void) const;
48 
49  void moduleHelp(void) const;
50
51
52
53  static void* mainLoop(void* tmp);
54  bool draw(float dt);
55  float tick();
56  bool eventHandler();
57  void quit();
58
59  static void* mainloopGui(void* tmp);
60
61  void printHelp(void) const;
62};
63
64#ifdef GUI_MODULE
65int quitGui(GtkWidget* widget, void* data);
66#endif
67
68#endif /* _FRAMEWORK_H */
Note: See TracBrowser for help on using the repository browser.