Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: ability to change background color

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