Last change
on this file since 2963 was
2936,
checked in by bensch, 20 years ago
|
orxonox/trunk/importer: dynamic frame-size-reading
|
File size:
679 bytes
|
Line | |
---|
1 | #ifndef _WINDOWHANDLER_H |
---|
2 | #define _WINDOWHANDLER_H |
---|
3 | |
---|
4 | extern int verbose; |
---|
5 | |
---|
6 | #include <GL/gl.h> |
---|
7 | #include <GL/glu.h> |
---|
8 | #include <SDL/SDL.h> |
---|
9 | |
---|
10 | #include <stdarg.h> |
---|
11 | #include <stdio.h> |
---|
12 | #include <string.h> |
---|
13 | #include <stdlib.h> |
---|
14 | #include <math.h> |
---|
15 | |
---|
16 | #ifdef __WIN32__ |
---|
17 | #include <windows.h> |
---|
18 | #endif /* __WIN32__ */ |
---|
19 | |
---|
20 | #define TRUE 1 |
---|
21 | #define FALSE 0 |
---|
22 | #define BOOL int |
---|
23 | |
---|
24 | class WindowHandler |
---|
25 | { |
---|
26 | public: |
---|
27 | WindowHandler() { }; |
---|
28 | ~WindowHandler() { }; |
---|
29 | GLvoid KillGLWindow(GLvoid); |
---|
30 | BOOL CreateGLWindow(char* title, int width, int height, int bits, BOOL fullscreenflag); |
---|
31 | SDL_Surface* screen; |
---|
32 | private: |
---|
33 | int InitGL(GLvoid); |
---|
34 | void ReSizeGLScene(GLsizei width, GLsizei height); |
---|
35 | }; |
---|
36 | |
---|
37 | |
---|
38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.