Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/orxonox.h @ 1897

Last change on this file since 1897 was 1897, checked in by patrick, 20 years ago

orxonox/trunk: now displaying fps in console. my old computer gets 40fps :)

File size: 1.2 KB
Line 
1
2
3
4#ifndef ORXONOX_H
5#define ORXONOX_H
6
7/* standard headers */
8#include <iostream>
9#include <cstdio>
10
11/* openGL Headers */
12#include <GL/glut.h>
13
14
15#include "environment.h"
16#include "world.h"
17#include "input_output.h"
18#include "data_tank.h"
19#include "stdincl.h"
20#include "player.h"
21
22
23class Orxonox {
24
25 private:
26  static Orxonox* singleton_ref;
27  Orxonox ();
28  ~Orxonox ();
29  static World* world;
30  static InputOutput* io;
31  static Player* localPlayer;
32  static bool pause;
33  static bool upWeGo;
34  static bool downWeGo;
35  static bool rightWeGo;
36  static bool leftWeGo;
37  static bool shoot1;
38  static int fps;
39
40  static int alpha;
41  static int beta;
42  static int offsetX;
43  static int offsetY;
44
45  static void timeSlice(int value);
46
47 public:
48
49  static Orxonox* getInstance (void);
50
51  int globalInit (int argc, char** argv);
52  int menuInit (void);
53  int gameInit (void);
54  void testTheShit(void);
55  static void display (void);
56  static void continousRedraw(void);
57  static void reshape (int w, int h);
58  static void keyboard(unsigned char key, int x, int y);
59  static void upKeyboard(unsigned char key, int x, int y);
60  static void releaseKey(int key, int x, int y);
61  static void specFunc(int key, int x, int y);
62  static void quitGame(void); 
63};
64
65#endif
66
Note: See TracBrowser for help on using the repository browser.