Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: merged branches/physics back to the trunk
merged with command
svn merge -r 3866:HEAD . ../../trunk/
many conflict that i tried to resolv
@patrick: i hope i did not interfere with your stuff :/

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