Last change
on this file since 3611 was
3611,
checked in by bensch, 20 years ago
|
orxonox/trunk: one step further with the gragpicsEngine
|
File size:
771 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 setResoulution(int width, int height, int bpp); |
---|
27 | |
---|
28 | static bool texturesEnabled; |
---|
29 | |
---|
30 | private: |
---|
31 | GraphicsEngine(); |
---|
32 | static GraphicsEngine* singletonRef; |
---|
33 | |
---|
34 | |
---|
35 | SDL_Surface* screen; |
---|
36 | int resolutionX; |
---|
37 | int resolutionY; |
---|
38 | int bitsPerPixel; |
---|
39 | bool fullscreen; |
---|
40 | Uint32 videoFlags; |
---|
41 | }; |
---|
42 | |
---|
43 | #endif /* _GRAPHICS_ENGINE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.