2001-04-10 20:07:11 +00:00
|
|
|
/*
|
|
|
|
winquake.h
|
|
|
|
|
|
|
|
(description)
|
|
|
|
|
|
|
|
Copyright (C) 1996-1997 Id Software, Inc.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _WINQUAKE_H
|
|
|
|
#define _WINQUAKE_H
|
|
|
|
|
2012-05-21 23:23:22 +00:00
|
|
|
#ifdef _WIN32
|
2001-04-10 20:07:11 +00:00
|
|
|
|
2021-03-27 11:09:37 +00:00
|
|
|
#include <memoryapi.h>
|
|
|
|
|
2001-04-10 20:07:11 +00:00
|
|
|
#ifndef __GNUC__
|
|
|
|
# pragma warning( disable : 4229 ) /* mgraph gets this */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define byte __hide_byte
|
2001-09-28 16:29:34 +00:00
|
|
|
#define shutdown __hide_shutdown
|
2001-04-10 20:07:11 +00:00
|
|
|
|
|
|
|
#include <windows.h>
|
2001-10-01 21:07:00 +00:00
|
|
|
|
2001-04-10 20:07:11 +00:00
|
|
|
#ifdef WINNT
|
2002-12-12 20:11:01 +00:00
|
|
|
# ifdef HAVE_DSOUND_H
|
|
|
|
# include <dsound.h>
|
|
|
|
# endif
|
2001-04-10 20:07:11 +00:00
|
|
|
#else
|
2001-10-01 21:07:00 +00:00
|
|
|
# include <windows.h>
|
|
|
|
# ifdef HAVE_DSOUND_H
|
|
|
|
# include <dsound.h>
|
|
|
|
# endif
|
2001-09-30 13:05:20 +00:00
|
|
|
#endif
|
2001-04-10 20:07:11 +00:00
|
|
|
|
2021-03-31 01:36:30 +00:00
|
|
|
#ifdef HAVE_DDRAW_H
|
|
|
|
# include <ddraw.h>
|
|
|
|
#endif
|
|
|
|
|
2001-04-10 20:07:11 +00:00
|
|
|
#ifdef HAVE_MGRAPH_H
|
|
|
|
# include <mgraph.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#undef byte
|
2001-09-28 16:29:34 +00:00
|
|
|
#undef shutdown
|
2003-09-08 15:49:21 +00:00
|
|
|
#undef LoadImage
|
2001-04-10 20:07:11 +00:00
|
|
|
|
|
|
|
#include "QF/qtypes.h"
|
|
|
|
|
|
|
|
#ifndef WM_MOUSEWHEEL
|
|
|
|
# define WM_MOUSEWHEEL 0x020A
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern HINSTANCE global_hInstance;
|
2004-07-12 05:32:38 +00:00
|
|
|
|
2001-04-10 20:07:11 +00:00
|
|
|
typedef enum {MS_WINDOWED, MS_FULLSCREEN, MS_FULLDIB, MS_UNINIT} modestate_t;
|
|
|
|
|
|
|
|
extern modestate_t modestate;
|
|
|
|
|
|
|
|
extern qboolean WinNT;
|
|
|
|
|
|
|
|
extern qboolean winsock_lib_initialized;
|
|
|
|
|
|
|
|
#ifdef SPLASH_SCREEN
|
|
|
|
extern HWND hwnd_dialog;
|
|
|
|
#endif
|
|
|
|
|
2003-06-05 18:25:41 +00:00
|
|
|
#undef E_POINTER
|
|
|
|
|
2001-04-10 20:07:11 +00:00
|
|
|
#endif /* _WIN32 */
|
|
|
|
|
|
|
|
#endif /* _WINQUAKE_H */
|