Quake II RTX doxygen  1.0 dev
wgl.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 1997-2001 Id Software, Inc.
3 
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (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. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18 
19 //
20 // win_wgl.h
21 //
22 
23 #define QWGL_ARB_extensions_string (1 << 0)
24 #define QWGL_ARB_multisample (1 << 1)
25 #define QWGL_ARB_pixel_format (1 << 2)
26 #define QWGL_EXT_swap_control (1 << 3)
27 #define QWGL_EXT_swap_control_tear (1 << 4)
28 
29 qboolean WGL_Init(const char *dllname);
30 void WGL_Shutdown(void);
31 void WGL_InitExtensions(unsigned mask);
32 void WGL_ShutdownExtensions(unsigned mask);
33 unsigned WGL_ParseExtensionString(const char *s);
34 
35 extern void (APIENTRY * qwglDrawBuffer)(GLenum mode);
36 extern const GLubyte * (APIENTRY * qwglGetString)(GLenum name);
37 
38 extern int (WINAPI * qwglChoosePixelFormat)(HDC, CONST PIXELFORMATDESCRIPTOR *);
39 extern int (WINAPI * qwglDescribePixelFormat)(HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
40 extern BOOL (WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
41 extern BOOL (WINAPI * qwglSwapBuffers)(HDC);
42 
43 extern HGLRC (WINAPI * qwglCreateContext)(HDC);
44 extern BOOL (WINAPI * qwglDeleteContext)(HGLRC);
45 extern PROC (WINAPI * qwglGetProcAddress)(LPCSTR);
46 extern BOOL (WINAPI * qwglMakeCurrent)(HDC, HGLRC);
47 
48 extern const char * (WINAPI * qwglGetExtensionsStringARB)(HDC hdc);
49 
50 extern BOOL (WINAPI * qwglChoosePixelFormatARB)(HDC, const int *, const FLOAT *, UINT, int *, UINT *);
51 
52 extern BOOL (WINAPI * qwglSwapIntervalEXT)(int interval);
53 
int
CONST PIXELFORMATDESCRIPTOR int
Definition: wgl.h:39
WGL_Init
qboolean WGL_Init(const char *dllname)
Definition: wgl.c:66
WGL_ShutdownExtensions
void WGL_ShutdownExtensions(unsigned mask)
Definition: wgl.c:90
WGL_ParseExtensionString
unsigned WGL_ParseExtensionString(const char *s)
Definition: wgl.c:120
void
void(APIENTRY *qwglDrawBuffer)(GLenum mode)
WGL_Shutdown
void WGL_Shutdown(void)
Definition: wgl.c:41
BOOL
BOOL(WINAPI *qwglSetPixelFormat)(HDC
qwglGetString
const GLubyte *APIENTRY * qwglGetString(GLenum name)
APIENTRY
#define APIENTRY
Definition: dynamic.h:32
UINT
CONST PIXELFORMATDESCRIPTOR UINT
Definition: wgl.h:39
WGL_InitExtensions
void WGL_InitExtensions(unsigned mask)
Definition: wgl.c:105
qwglGetExtensionsStringARB
const char *WINAPI * qwglGetExtensionsStringARB(HDC hdc)
PROC
PROC(WINAPI *qwglGetProcAddress)(LPCSTR)
LPPIXELFORMATDESCRIPTOR
CONST PIXELFORMATDESCRIPTOR LPPIXELFORMATDESCRIPTOR
Definition: wgl.h:39
HGLRC
HGLRC
Definition: wgl.h:46