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

  1. #ifndef __DisplayInfo_h__
  2. #define __DisplayInfo_h__
  3.  
  4. #include "SubSystemInfo.h"
  5. #include "Console.h"
  6. #include "CVar.h"
  7. #include "DisplayCCmds.h"
  8.  
  9. typedef struct DisplayInfoVar_s{
  10.     int width;
  11.     int height;
  12.     int bpp;
  13.     int depthBufferSize;
  14.     bool fullscreen;
  15.     float gamma;
  16.  
  17.     float scaleX, scaleY;
  18. }DisplayInfoVar_t;
  19.  
  20. typedef struct DisplayInfoCVar_s{
  21.     CVarInt* display_width;
  22.     CVarInt* display_height;
  23.     CVarInt* display_bpp;
  24.     CVarInt* display_depthBufferSize;
  25.     CVarBool* display_fullscreen;
  26.     CVarReal* display_gamma;
  27. }DisplayInfoCVar_t;
  28.  
  29. typedef struct DisplayInfoCCmd_s{
  30.     CCmdDisplayRestart* display_restart;
  31.     CCmdDisplaySetMode* display_setMode;
  32.     CCmdDisplayVideoInfo* display_videoInfo;
  33. }DisplayInfoCCmd_t;
  34.  
  35. class DisplayInfo{
  36. public:
  37.     static DisplayInfoVar_t var;
  38.     static DisplayInfoCVar_t cvar;
  39.     static DisplayInfoCCmd_t ccmd;
  40.  
  41.     static bool registerCVarsAndCCmds();
  42.     static bool unregisterCVarsAndCCmds();
  43. };
  44.  
  45. #endif    /* __DisplayInfo_h__ */
  46.