/* winquake.h Win32-specific Quake header file $Id: winquake.h,v 1.29 2007/08/23 19:45:30 sezero Exp $ */ #if !defined(PLATFORM_WINDOWS) #error winquake.h is only meant to be used on Windows #endif #ifndef __WINQUAKE_H #define __WINQUAKE_H #ifdef _MSC_VER #pragma warning( disable : 4229 ) /* mgraph gets this */ #endif #include #include #include #include /* required compatibility versions for directx components */ #define DIRECTDRAW_VERSION 0x0300 #define DIRECTSOUND_VERSION 0x0300 #define DIRECTINPUT_VERSION 0x0300 #if !defined(__cplusplus) && !defined(CINTERFACE) #define CINTERFACE /* for directx macros. */ #endif #ifndef SERVERONLY #include /* FIXME: should go away from global headers */ #endif extern HINSTANCE global_hInstance; extern int global_nCmdShow; #ifndef WM_MOUSEWHEEL #define WM_MOUSEWHEEL 0x020A #endif /* IntelliMouse explorer buttons: These are ifdef'ed out for < Win2000 in the Feb. 2001 version of MS's platform SDK, but we need them for compilation. */ #ifndef WM_XBUTTONDOWN #define WM_XBUTTONDOWN 0x020B #define WM_XBUTTONUP 0x020C #endif #ifndef MK_XBUTTON1 #define MK_XBUTTON1 0x0020 #define MK_XBUTTON2 0x0040 #endif #ifndef SERVERONLY extern qboolean DDActive; /* FIXME: these should go away and stay in snd_win.c only. */ extern LPDIRECTSOUND pDS; extern LPDIRECTSOUNDBUFFER pDSBuf; extern DWORD gSndBufSize; //#define SNDBUFSIZE 65536 #endif extern HWND mainwindow; extern qboolean ActiveApp, Minimized; extern qboolean Win95, Win95old, WinNT; extern int window_center_x, window_center_y; extern RECT window_rect; #if !defined(NO_SPLASHES) extern HWND hwnd_dialog; #endif void S_BlockSound (void); void S_UnblockSound (void); LONG CDAudio_MessageHandler (HWND, UINT, WPARAM, LPARAM); #endif /* __WINQUAKE_H */