Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/subprojects/importer/windowHandler.h @ 4263

Last change on this file since 4263 was 4263, checked in by bensch, 19 years ago

orxonox/trunk: building subprojects externaly

File size: 897 bytes
Line 
1/*!
2  \file windowHandler.h
3  \brief contains the WindowHandler class for the minimal display system
4*/
5
6
7#ifndef _WINDOWHANDLER_H
8#define _WINDOWHANDLER_H
9
10#include "stdincl.h"
11
12#include <stdarg.h>
13#include <stdio.h>
14#include <string.h>
15#include <stdlib.h>
16#include <math.h>
17
18#ifdef __WIN32__
19#include <windows.h>
20#endif /* __WIN32__ */
21
22#define TRUE 1     //!< define true
23#define FALSE 0    //!< define false
24#define BOOL int   //!< define BOOL
25
26//! A simple class to handle a minimal display system
27class WindowHandler
28{
29  public:
30    WindowHandler() { };
31    ~WindowHandler() { };
32    GLvoid KillGLWindow(GLvoid);
33    BOOL CreateGLWindow(char* title, int width, int height, int bits, BOOL fullscreenflag);
34    SDL_Surface* screen;   //!< The screen to which to display the rendered stuff
35  private:
36    int InitGL(GLvoid);
37    void ReSizeGLScene(GLsizei width, GLsizei height); 
38};
39
40
41#endif
Note: See TracBrowser for help on using the repository browser.