]> de.git.xonotic.org Git - xonotic/darkplaces.git/blob - winquake.h
turned off mipmapping on attenuation texture
[xonotic/darkplaces.git] / winquake.h
1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
12
13 See the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
19 */
20 // winquake.h: Win32-specific Quake header file
21
22 #ifndef WINQUAKE_H
23 #define WINQUAKE_H
24
25 #include <windows.h>
26
27 #include <ddraw.h>
28 #include <dsound.h>
29
30 #ifndef WM_MOUSEWHEEL
31 #define WM_MOUSEWHEEL                   0x020A
32 #endif
33
34 extern  HINSTANCE       global_hInstance;
35 extern  int                     global_nCmdShow;
36
37 extern LPDIRECTDRAW             lpDD;
38 extern LPDIRECTDRAWSURFACE      lpPrimary;
39 extern LPDIRECTDRAWSURFACE      lpFrontBuffer;
40 extern LPDIRECTDRAWSURFACE      lpBackBuffer;
41 extern LPDIRECTDRAWPALETTE      lpDDPal;
42 extern LPDIRECTSOUND pDS;
43 extern LPDIRECTSOUNDBUFFER pDSBuf;
44
45 extern DWORD gSndBufSize;
46
47 void    VID_LockBuffer (void);
48 void    VID_UnlockBuffer (void);
49
50 extern HWND                     mainwindow;
51
52 extern qboolean winsock_lib_initialized;
53
54 void S_BlockSound (void);
55 void S_UnblockSound (void);
56
57 int (PASCAL FAR *pWSAStartup)(WORD wVersionRequired, LPWSADATA lpWSAData);
58 int (PASCAL FAR *pWSACleanup)(void);
59 int (PASCAL FAR *pWSAGetLastError)(void);
60 SOCKET (PASCAL FAR *psocket)(int af, int type, int protocol);
61 int (PASCAL FAR *pioctlsocket)(SOCKET s, long cmd, u_long FAR *argp);
62 int (PASCAL FAR *psetsockopt)(SOCKET s, int level, int optname,
63                                                           const char FAR * optval, int optlen);
64 int (PASCAL FAR *precvfrom)(SOCKET s, char FAR * buf, int len, int flags,
65                                                         struct sockaddr FAR *from, int FAR * fromlen);
66 int (PASCAL FAR *psendto)(SOCKET s, const char FAR * buf, int len, int flags,
67                                                   const struct sockaddr FAR *to, int tolen);
68 int (PASCAL FAR *pclosesocket)(SOCKET s);
69 int (PASCAL FAR *pgethostname)(char FAR * name, int namelen);
70 struct hostent FAR * (PASCAL FAR *pgethostbyname)(const char FAR * name);
71 struct hostent FAR * (PASCAL FAR *pgethostbyaddr)(const char FAR * addr,
72                                                                                                   int len, int type);
73 int (PASCAL FAR *pgetsockname)(SOCKET s, struct sockaddr FAR *name,
74                                                            int FAR * namelen);
75
76 #endif
77