Last change
on this file since 3920 was
3590,
checked in by bensch, 20 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
|
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 |
---|
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); |
---|
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.