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