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
Line 
1#ifndef _WINDOWHANDLER_H
2#define _WINDOWHANDLER_H
3
4extern int verbose;
5
6#include <GL/gl.h>
7#include <GL/glu.h>
8
9#ifndef __APPLE__
10#include <SDL/SDL.h>
11#else
12#include <SDL.h>
13#endif
14
15#include <stdarg.h>
16#include <stdio.h>
17#include <string.h>
18#include <stdlib.h>
19#include <math.h>
20
21#ifdef __WIN32__
22#include <windows.h>
23#endif /* __WIN32__ */
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);
36    SDL_Surface* screen;
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.