Last change
on this file since 3464 was
3454,
checked in by bensch, 20 years ago
|
orxonox/trunk/importer: doxygen-tags
|
File size:
921 bytes
|
Rev | Line | |
---|
[3454] | 1 | /*! |
---|
| 2 | \file windowHandler.h |
---|
| 3 | \brief contains the WindowHandler class for the minimal display system |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | |
---|
[2748] | 7 | #ifndef _WINDOWHANDLER_H |
---|
| 8 | #define _WINDOWHANDLER_H |
---|
| 9 | |
---|
[2804] | 10 | extern int verbose; |
---|
| 11 | |
---|
[3196] | 12 | #include "../stdincl.h" |
---|
[2995] | 13 | |
---|
[2748] | 14 | #include <stdarg.h> |
---|
| 15 | #include <stdio.h> |
---|
| 16 | #include <string.h> |
---|
| 17 | #include <stdlib.h> |
---|
| 18 | #include <math.h> |
---|
| 19 | |
---|
[2931] | 20 | #ifdef __WIN32__ |
---|
| 21 | #include <windows.h> |
---|
| 22 | #endif /* __WIN32__ */ |
---|
[2748] | 23 | |
---|
[3454] | 24 | #define TRUE 1 //!< define true |
---|
| 25 | #define FALSE 0 //!< define false |
---|
| 26 | #define BOOL int //!< define BOOL |
---|
[2748] | 27 | |
---|
[3454] | 28 | //! A simple class to handle a minimal display system |
---|
[2748] | 29 | class 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); |
---|
[3454] | 36 | SDL_Surface* screen; //!< The screen to which to display the rendered stuff |
---|
[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.