|
Last change
on this file since 3574 was
3479,
checked in by bensch, 21 years ago
|
|
orxonox/trunk/src/importer: Makefile.am adapted to the new File-structure
|
|
File size:
918 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 | extern int verbose; |
|---|
| 11 | |
|---|
| 12 | #include "stdincl.h" |
|---|
| 13 | |
|---|
| 14 | #include <stdarg.h> |
|---|
| 15 | #include <stdio.h> |
|---|
| 16 | #include <string.h> |
|---|
| 17 | #include <stdlib.h> |
|---|
| 18 | #include <math.h> |
|---|
| 19 | |
|---|
| 20 | #ifdef __WIN32__ |
|---|
| 21 | #include <windows.h> |
|---|
| 22 | #endif /* __WIN32__ */ |
|---|
| 23 | |
|---|
| 24 | #define TRUE 1 //!< define true |
|---|
| 25 | #define FALSE 0 //!< define false |
|---|
| 26 | #define BOOL int //!< define BOOL |
|---|
| 27 | |
|---|
| 28 | //! A simple class to handle a minimal display system |
|---|
| 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); |
|---|
| 36 | SDL_Surface* screen; //!< The screen to which to display the rendered stuff |
|---|
| 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.