Last change
on this file since 4191 was
3590,
checked in by bensch, 19 years ago
|
orxonox/trunk: updated debug.h: now possibility to log per module (compile-time)
- write in the cc-file at the beginnig !!BEFORE ANY INCLUDES!!
#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_[MODULENAME]
where [MODULNAME] is a name of a module that can be defined in debug.h
- define a new MODULE: easy just write a new one under the other ones in DEBUG.h
- if you do not wish special loggin everything stays as is, and you do not have to worry. (then de verbose will be set from orxonox.cc: int verbose)
|
File size:
897 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 | |
---|
[3479] | 10 | #include "stdincl.h" |
---|
[2995] | 11 | |
---|
[2748] | 12 | #include <stdarg.h> |
---|
| 13 | #include <stdio.h> |
---|
| 14 | #include <string.h> |
---|
| 15 | #include <stdlib.h> |
---|
| 16 | #include <math.h> |
---|
| 17 | |
---|
[2931] | 18 | #ifdef __WIN32__ |
---|
| 19 | #include <windows.h> |
---|
| 20 | #endif /* __WIN32__ */ |
---|
[2748] | 21 | |
---|
[3454] | 22 | #define TRUE 1 //!< define true |
---|
| 23 | #define FALSE 0 //!< define false |
---|
| 24 | #define BOOL int //!< define BOOL |
---|
[2748] | 25 | |
---|
[3454] | 26 | //! A simple class to handle a minimal display system |
---|
[2748] | 27 | class 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); |
---|
[3454] | 34 | SDL_Surface* screen; //!< The screen to which to display the rendered stuff |
---|
[2748] | 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.