www.pudn.com > coolMEMORY.rar > AS_Config.h
//-----------------------------------------------------------------------------
// File: AS_Config.h
//-----------------------------------------------------------------------------
#ifndef __AS_CONFIG_H__
#define __AS_CONFIG_H__
// Structures: ****************************************************************
typedef struct
{
int Number;
DEVMODE *pDevMode;
} DISPLAY_MODE_INFO;
///////////////////////////////////////////////////////////////////////////////
// Classes: *******************************************************************
typedef class AS_CONFIG
{
public:
// General:
BOOL bFirstRun, // Is this the first program start?
bError, bSetError, // Was there an error?
bShowFPS; // Should the frame rate be shown?
char byLanguage[256]; // The selected language (name of the folder)
float fMouseSensibility; // The mouse sensibility (0-1)
// Graphic:
BOOL bFullScreen, // Are we in fullscreen mode?
bFastTexturing,
bUseMipmaps,
bLightmaps,
bMultitexturing,
bHightRenderQuality;
DWORD dwMode;
char byZBuffer; // The z buffer bit depth
char byLight; // 0 = none, 1 = flat, 2 = smooth
int iWindowWidth, iWindowHeight, // Main window size
iScreenPixels, iScreenSize,
iModeIndex;
DEVMODE DevMode;
BOOL bParticles; // Are the particles activated?
float fParticleDensity; // The number of partilces (1.0 = full)
// Sound:
BOOL bSound, // Are the sounds activated?
bMusic; // Are the music activated?
char bySoundOutput; // The selected sound output device
int iMusicVolume, // The volume of the music
iSoundVolume; // The volume of the sound
// Debug stuff:
BOOL bWireframeMode,
bPointMode;
AS_CONFIG(void);
~AS_CONFIG(void);
void Check(void);
HRESULT Load(char *);
HRESULT Save(char *);
} AS_CONFIG;
///////////////////////////////////////////////////////////////////////////////
// Variables: *****************************************************************
extern AS_CONFIG *_ASConfig;
extern DISPLAY_MODE_INFO DisplayModeInfo;
extern BOOL bFirstRunConfigDialog;
///////////////////////////////////////////////////////////////////////////////
// Functions: *****************************************************************
extern void OpenConfigDialog(HWND);
extern LRESULT CALLBACK ConfigProc(HWND, UINT, WPARAM, LPARAM);
extern LRESULT CALLBACK ConfigGeneralProc(HWND, UINT, WPARAM, LPARAM);
extern LRESULT CALLBACK ConfigGraphicProc(HWND, UINT, WPARAM, LPARAM);
extern LRESULT CALLBACK ConfigSoundProc(HWND, UINT, WPARAM, LPARAM);
extern void SetupConfigTabs(void);
extern void SetConfigLanguage(void);
///////////////////////////////////////////////////////////////////////////////
#endif // __AS_CONFIG_H__