home *** CD-ROM | disk | FTP | other *** search
- #ifndef __DisplayInfo_h__
- #define __DisplayInfo_h__
-
- #include "SubSystemInfo.h"
- #include "Console.h"
- #include "CVar.h"
- #include "DisplayCCmds.h"
-
- typedef struct DisplayInfoVar_s{
- int width;
- int height;
- int bpp;
- int depthBufferSize;
- bool fullscreen;
- float gamma;
-
- float scaleX, scaleY;
- }DisplayInfoVar_t;
-
- typedef struct DisplayInfoCVar_s{
- CVarInt* display_width;
- CVarInt* display_height;
- CVarInt* display_bpp;
- CVarInt* display_depthBufferSize;
- CVarBool* display_fullscreen;
- CVarReal* display_gamma;
- }DisplayInfoCVar_t;
-
- typedef struct DisplayInfoCCmd_s{
- CCmdDisplayRestart* display_restart;
- CCmdDisplaySetMode* display_setMode;
- CCmdDisplayVideoInfo* display_videoInfo;
- }DisplayInfoCCmd_t;
-
- class DisplayInfo{
- public:
- static DisplayInfoVar_t var;
- static DisplayInfoCVar_t cvar;
- static DisplayInfoCCmd_t ccmd;
-
- static bool registerCVarsAndCCmds();
- static bool unregisterCVarsAndCCmds();
- };
-
- #endif /* __DisplayInfo_h__ */
-