| 
                Last change
                  on this file since 3691 was
                  3681,
                  checked in by bensch, 21 years ago
           | 
        
        
          | 
               
orxonox/branches/textEngine: merged trunk here. 
merged with command: 
svn merge ../trunk textEngine -r 3467:HEAD 
no conflicts 
 
           | 
        
        | 
            File size:
            900 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 setResolution(int width, int height, int bpp); | 
|---|
| 28 |   int resolutionChanged(SDL_ResizeEvent* resizeInfo); | 
|---|
| 29 |   void listModes(void); | 
|---|
| 30 |  | 
|---|
| 31 |   static bool texturesEnabled; | 
|---|
| 32 |  | 
|---|
| 33 |  private: | 
|---|
| 34 |   GraphicsEngine(); | 
|---|
| 35 |   static GraphicsEngine* singletonRef; | 
|---|
| 36 |  | 
|---|
| 37 |  | 
|---|
| 38 |   SDL_Surface* screen; | 
|---|
| 39 |   int resolutionX; | 
|---|
| 40 |   int resolutionY; | 
|---|
| 41 |   int bitsPerPixel; | 
|---|
| 42 |   bool fullscreen; | 
|---|
| 43 |   Uint32 videoFlags; | 
|---|
| 44 |  | 
|---|
| 45 |   SDL_Rect **videoModes; | 
|---|
| 46 | }; | 
|---|
| 47 |  | 
|---|
| 48 | #endif /* _GRAPHICS_ENGINE_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.