home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / Display.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  745 b   |  37 lines

  1. #ifndef __Display_h__
  2. #define __Display_h__
  3.  
  4.  
  5. #include "SDL.h"
  6. #include "DisplayInfo.h"
  7.  
  8. #define DISPLAY_VSCREEN_WIDTH    800
  9. #define DISPLAY_VSCREEN_HEIGHT    600
  10.  
  11. class Display{
  12.     // subsystem interface
  13. public:
  14.     static DisplayInfo info;
  15.     static bool init();
  16.     static bool shutdown();
  17.     static bool wasInit();
  18.  
  19.     static bool registerCVarsAndCCmds();
  20.     static bool unregisterCVarsAndCCmds();
  21.  
  22. protected:
  23.     static bool initialized;
  24.  
  25.     // real methods
  26. public:
  27.     static unsigned int videoFlags;
  28.     static SDL_Surface* mainWindow;
  29.  
  30.     //! takes a screenshot of the current screen
  31.     static void takeScreenshot();
  32.     static void setGamma(float gamma);
  33.     static void listAvailableModes(unsigned int flags);
  34. };
  35.  
  36. #endif    /* __Display_h__ */
  37.