Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/importer/windowHandler.h @ 3162

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

orxonox/trunk: merged branches/osX back into the Trunk.
Conflicts resolved in Favor of trunk in all the Makefiles, and fixed many strange entries in configure.ac
merged with command: svn merge branches/osX/ trunk/ -r 2887:HEAD
AND most Important of all: change back to AUTOMAKE-1.7

File size: 728 bytes
RevLine 
[2748]1#ifndef _WINDOWHANDLER_H
2#define _WINDOWHANDLER_H
3
[2804]4extern int verbose;
5
[2748]6#include <GL/gl.h>
7#include <GL/glu.h>
[2995]8
9#ifndef __APPLE__
[2748]10#include <SDL/SDL.h>
[2995]11#else
12#include <SDL.h>
13#endif
[2748]14
15#include <stdarg.h>
16#include <stdio.h>
17#include <string.h>
18#include <stdlib.h>
19#include <math.h>
20
[2931]21#ifdef __WIN32__
22#include <windows.h>
23#endif /* __WIN32__ */
[2748]24
25#define TRUE 1
26#define FALSE 0
27#define BOOL int
28
29class WindowHandler
30{
31  public:
32    WindowHandler() { };
33    ~WindowHandler() { };
34    GLvoid KillGLWindow(GLvoid);
35    BOOL CreateGLWindow(char* title, int width, int height, int bits, BOOL fullscreenflag);
[2936]36    SDL_Surface* screen;
[2748]37  private:
38    int InitGL(GLvoid);
39    void ReSizeGLScene(GLsizei width, GLsizei height); 
40};
41
42
43#endif
Note: See TracBrowser for help on using the repository browser.