Changeset 4458 in orxonox.OLD for orxonox/trunk/src/lib/graphics/graphics_engine.h
- Timestamp:
- Jun 1, 2005, 11:51:44 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.h
r4381 r4458 18 18 class Text; 19 19 20 20 //! class to handle graphics 21 /** 22 handles graphical SDL-initialisation, textures, resolutions, and so on 23 */ 21 24 class GraphicsEngine : public BaseObject 22 25 { … … 32 35 33 36 /** \returns the x resolution */ 34 inline int getResolutionX(void) {return this->resolutionX;}37 inline int getResolutionX(void) const {return this->resolutionX;} 35 38 /** \returns the y resolution */ 36 inline int getResolutionY(void) {return this->resolutionY;}39 inline int getResolutionY(void) const {return this->resolutionY;} 37 40 /** \returns the Bits Per Pixel */ 38 inline int getbbp(void) {return this->bitsPerPixel;}41 inline int getbbp(void) const {return this->bitsPerPixel;} 39 42 int resolutionChanged(SDL_ResizeEvent* resizeInfo); 40 43 void listModes(void); … … 58 61 static GraphicsEngine* singletonRef; 59 62 63 private: 64 SDL_Surface* screen; //!< the screen we draw to 65 int resolutionX; //!< the X-resoultion of the screen 66 int resolutionY; //!< the Y-resolution of the screen 67 int bitsPerPixel; //!< the bits per pixels of the screen 68 bool fullscreen; //!< if we are in fullscreen mode 69 Uint32 videoFlags; //!< flags for video 70 SDL_Rect** videoModes; //!< list of resolutions 71 72 bool bDisplayFPS; //!< is true if the fps should be displayed 73 float currentFPS; //!< the current frame rate: frames per seconds 74 float maxFPS; //!< maximal frame rate we ever got since start of the game 75 float minFPS; //!< minimal frame rate we ever got since start 60 76 61 SDL_Surface* screen; 62 int resolutionX; 63 int resolutionY; 64 int bitsPerPixel; 65 bool fullscreen; 66 Uint32 videoFlags; 67 68 bool bDisplayFPS; //!< is true if the fps should be displayed 69 float currentFPS; //!< the current frame rate: frames per seconds 70 float maxFPS; //!< maximal frame rate we ever got since start of the game 71 float minFPS; //!< minimal frame rate we ever got since start 77 Text* geTextCFPS; //!< Text for the current FPS 78 Text* geTextMaxFPS; //!< Text for the max FPS 79 Text* geTextMinFPS; //!< Text for the min FPS 72 80 73 Text* geTextCFPS;74 Text* geTextMaxFPS;75 Text* geTextMinFPS;76 77 SDL_Rect **videoModes;78 81 }; 79 82
Note: See TracChangeset
for help on using the changeset viewer.