summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/quake/winquake.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/quake/winquake.h')
-rw-r--r--apps/plugins/sdl/progs/quake/winquake.h115
1 files changed, 0 insertions, 115 deletions
diff --git a/apps/plugins/sdl/progs/quake/winquake.h b/apps/plugins/sdl/progs/quake/winquake.h
deleted file mode 100644
index a956984fe6..0000000000
--- a/apps/plugins/sdl/progs/quake/winquake.h
+++ /dev/null
@@ -1,115 +0,0 @@
1/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20// winquake.h: Win32-specific Quake header file
21
22#pragma warning( disable : 4229 ) // mgraph gets this
23
24#include <windows.h>
25#define WM_MOUSEWHEEL 0x020A
26
27#ifndef SERVERONLY
28#include <ddraw.h>
29#include <dsound.h>
30#ifndef GLQUAKE
31#include <mgraph.h>
32#endif
33#endif
34
35extern HINSTANCE global_hInstance;
36extern int global_nCmdShow;
37
38#ifndef SERVERONLY
39
40extern LPDIRECTDRAW lpDD;
41extern qboolean DDActive;
42extern LPDIRECTDRAWSURFACE lpPrimary;
43extern LPDIRECTDRAWSURFACE lpFrontBuffer;
44extern LPDIRECTDRAWSURFACE lpBackBuffer;
45extern LPDIRECTDRAWPALETTE lpDDPal;
46extern LPDIRECTSOUND pDS;
47extern LPDIRECTSOUNDBUFFER pDSBuf;
48
49extern DWORD gSndBufSize;
50//#define SNDBUFSIZE 65536
51
52void VID_LockBuffer (void);
53void VID_UnlockBuffer (void);
54
55#endif
56
57typedef int modestate_t;
58enum {MS_WINDOWED, MS_FULLSCREEN, MS_FULLDIB, MS_UNINIT};
59
60extern modestate_t modestate;
61
62extern HWND mainwindow;
63extern qboolean ActiveApp, Minimized;
64
65extern qboolean WinNT;
66
67int VID_ForceUnlockedAndReturnState (void);
68void VID_ForceLockState (int lk);
69
70void IN_ShowMouse (void);
71void IN_DeactivateMouse (void);
72void IN_HideMouse (void);
73void IN_ActivateMouse (void);
74void IN_RestoreOriginalMouseState (void);
75void IN_SetQuakeMouseState (void);
76void IN_MouseEvent (int mstate);
77
78extern qboolean winsock_lib_initialized;
79
80extern cvar_t _windowed_mouse;
81
82extern int window_center_x, window_center_y;
83extern RECT window_rect;
84
85extern qboolean mouseinitialized;
86extern HWND hwnd_dialog;
87
88extern HANDLE hinput, houtput;
89
90void IN_UpdateClipCursor (void);
91void CenterWindow(HWND hWndCenter, int width, int height, BOOL lefttopjustify);
92
93void S_BlockSound (void);
94void S_UnblockSound (void);
95
96void VID_SetDefaultMode (void);
97
98int (PASCAL FAR *pWSAStartup)(WORD wVersionRequired, LPWSADATA lpWSAData);
99int (PASCAL FAR *pWSACleanup)(void);
100int (PASCAL FAR *pWSAGetLastError)(void);
101SOCKET (PASCAL FAR *psocket)(int af, int type, int protocol);
102int (PASCAL FAR *pioctlsocket)(SOCKET s, long cmd, u_long FAR *argp);
103int (PASCAL FAR *psetsockopt)(SOCKET s, int level, int optname,
104 const char FAR * optval, int optlen);
105int (PASCAL FAR *precvfrom)(SOCKET s, char FAR * buf, int len, int flags,
106 struct sockaddr FAR *from, int FAR * fromlen);
107int (PASCAL FAR *psendto)(SOCKET s, const char FAR * buf, int len, int flags,
108 const struct sockaddr FAR *to, int tolen);
109int (PASCAL FAR *pclosesocket)(SOCKET s);
110int (PASCAL FAR *pgethostname)(char FAR * name, int namelen);
111struct hostent FAR * (PASCAL FAR *pgethostbyname)(const char FAR * name);
112struct hostent FAR * (PASCAL FAR *pgethostbyaddr)(const char FAR * addr,
113 int len, int type);
114int (PASCAL FAR *pgetsockname)(SOCKET s, struct sockaddr FAR *name,
115 int FAR * namelen);