Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/osX/importer/windowHandler.h @ 2992

Last change on this file since 2992 was 2987, checked in by bensch, 21 years ago

orxonox/branches/osX/importer: fixed too

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>
[2987]8
9#ifndef __APPLE__
10#include <SDL/SDL.h>
11#else
[2985]12#include <SDL.h>
[2987]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
[2977]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);
[2977]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.