Last change
on this file since 3617 was
3617,
checked in by bensch, 20 years ago
|
orxonox/trunk: little fix to graphicsEngine, now the different resolution-types are outputted. also there is a fix from debug.h all warnings are shown now
|
File size:
847 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file graphics_engine.h |
---|
3 | |
---|
4 | \brief defines a Interface between orxonox and graphical input |
---|
5 | |
---|
6 | handles graphical SDL-initialisation, textures, resolutions, and so on |
---|
7 | */ |
---|
8 | |
---|
9 | #ifndef _GRAPHICS_ENGINE_H |
---|
10 | #define _GRAPHICS_ENGINE_H |
---|
11 | |
---|
12 | #include "glincl.h" |
---|
13 | |
---|
14 | #include "base_object.h" |
---|
15 | |
---|
16 | // FORWARD DEFINITION \\ |
---|
17 | |
---|
18 | |
---|
19 | class GraphicsEngine : public BaseObject |
---|
20 | { |
---|
21 | public: |
---|
22 | static GraphicsEngine* getInstance(); |
---|
23 | virtual ~GraphicsEngine(); |
---|
24 | |
---|
25 | int initVideo(); |
---|
26 | int setGLattribs(void); |
---|
27 | int setResoulution(int width, int height, int bpp); |
---|
28 | void listModes(void); |
---|
29 | |
---|
30 | static bool texturesEnabled; |
---|
31 | |
---|
32 | private: |
---|
33 | GraphicsEngine(); |
---|
34 | static GraphicsEngine* singletonRef; |
---|
35 | |
---|
36 | |
---|
37 | SDL_Surface* screen; |
---|
38 | int resolutionX; |
---|
39 | int resolutionY; |
---|
40 | int bitsPerPixel; |
---|
41 | bool fullscreen; |
---|
42 | Uint32 videoFlags; |
---|
43 | |
---|
44 | SDL_Rect **videoModes; |
---|
45 | }; |
---|
46 | |
---|
47 | #endif /* _GRAPHICS_ENGINE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.