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
RevLine 
[2931]1#ifndef _FRAMEWORK_H
2#define _FRAMEWORK_H
3 
[3656]4#include "vector.h"
[4293]5#include "glincl.h"
[2931]6
[4297]7
[4295]8#define DATA_DIRECTORY "~/svn/data/"
[4306]9#define MOUSE_BUTTON_COUNT 8
[4295]10
[4297]11class Camera;
[2952]12
[4297]13class Framework {
14 private:
[4317]15  Framework();
16  static Framework* singletonRef;
[4331]17 
[4297]18  Camera* camera;
19 
[4331]20  bool isFinished;
[4317]21
[4300]22  int movement [4];
[4297]23 
24  Uint32 lastFrame;
25  Uint32 currFrame;
[4300]26   
[4297]27  Uint8* keys; // This variable will be used in the keyboard routine
[4306]28  bool mouseDown[MOUSE_BUTTON_COUNT];
[2931]29
[4297]30 public:
31  ~Framework();
32 
[4317]33  static Framework* getInstance(void);
34
[4331]35
[4305]36  void initModule();
[4330]37  static void* mainLoop(void* tmp);
[4297]38  bool draw(float dt);
39  float tick();
40  bool keyHandler();
[4331]41  void quit();
[4307]42
[4330]43  void* initGui(void* argv);
44  static void* mainloopGui(void* tmp);
[4316]45
[4307]46  void printHelp(void) const;
[4297]47};
[4330]48
[2931]49#endif /* _FRAMEWORK_H */
Note: See TracBrowser for help on using the repository browser.