Changeset 4784 in orxonox.OLD for orxonox/trunk/src/lib/graphics/graphics_engine.h
- Timestamp:
- Jul 3, 2005, 4:49:42 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.h
r4782 r4784 30 30 inline static GraphicsEngine* getInstance() { if (!singletonRef) singletonRef = new GraphicsEngine(); return singletonRef; }; 31 31 32 int init Video();33 int loadFromIniFile(IniParser* iniParser);32 int init(); 33 int initFromIniFile(IniParser* iniParser); 34 34 35 35 void setWindowName(const char* windowName, const char* icon); … … 64 64 static void swapBuffers() { SDL_GL_SwapBuffers(); }; 65 65 66 public:67 static bool texturesEnabled;68 66 69 67 private: 70 68 GraphicsEngine(); 69 int initVideo(unsigned int resX, unsigned int resY, unsigned int bbp); 70 71 public: 72 static bool texturesEnabled; //!< if textures should be enabled (globally) 73 71 74 72 75 private: 73 static GraphicsEngine* singletonRef; 76 static GraphicsEngine* singletonRef; //!< Pointer to the only instance of this Class 77 bool isInit; //!< if the GraphicsEngine is initialized. 74 78 75 SDL_Surface* screen; //!< the screen we draw to76 int resolutionX; //!< the X-resoultion of the screen77 int resolutionY; //!< the Y-resolution of the screen78 int bitsPerPixel; //!< the bits per pixels of the screen79 Uint32 fullscreenFlag; //!< if we are in fullscreen mode80 Uint32 videoFlags; //!< flags for video81 SDL_Rect** videoModes; //!< list of resolutions79 SDL_Surface* screen; //!< the screen we draw to 80 int resolutionX; //!< the X-resoultion of the screen 81 int resolutionY; //!< the Y-resolution of the screen 82 int bitsPerPixel; //!< the bits per pixels of the screen 83 Uint32 fullscreenFlag; //!< if we are in fullscreen mode 84 Uint32 videoFlags; //!< flags for video 85 SDL_Rect** videoModes; //!< list of resolutions 82 86 83 bool bDisplayFPS; //!< is true if the fps should be displayed84 float currentFPS; //!< the current frame rate: frames per seconds85 float maxFPS; //!< maximal frame rate we ever got since start of the game86 float minFPS; //!< minimal frame rate we ever got since start87 bool bDisplayFPS; //!< is true if the fps should be displayed 88 float currentFPS; //!< the current frame rate: frames per seconds 89 float maxFPS; //!< maximal frame rate we ever got since start of the game 90 float minFPS; //!< minimal frame rate we ever got since start 87 91 88 92
Note: See TracChangeset
for help on using the changeset viewer.