25 int (WINAPI * qwglChoosePixelFormat)(HDC, CONST PIXELFORMATDESCRIPTOR *);
27 BOOL (WINAPI * qwglSetPixelFormat)(HDC,
int, CONST PIXELFORMATDESCRIPTOR *);
28 BOOL (WINAPI * qwglSwapBuffers)(HDC);
30 HGLRC (WINAPI * qwglCreateContext)(HDC);
32 PROC (WINAPI * qwglGetProcAddress)(LPCSTR);
37 BOOL (WINAPI * qwglChoosePixelFormatARB)(HDC,
const int *,
const FLOAT *,
UINT,
int *,
UINT *);
39 BOOL (WINAPI * qwglSwapIntervalEXT)(
int interval);
48 qwglDrawBuffer = NULL;
51 qwglChoosePixelFormat = NULL;
52 qwglDescribePixelFormat = NULL;
53 qwglSetPixelFormat = NULL;
54 qwglSwapBuffers = NULL;
56 qwglCreateContext = NULL;
57 qwglDeleteContext = NULL;
58 qwglGetProcAddress = NULL;
59 qwglMakeCurrent = NULL;
64 #define GPA(x) (void *)GetProcAddress(glw.hinstOpenGL, x);
72 qwglDrawBuffer =
GPA(
"glDrawBuffer");
75 qwglChoosePixelFormat =
GPA(
"wglChoosePixelFormat");
76 qwglDescribePixelFormat =
GPA(
"wglDescribePixelFormat");
77 qwglSetPixelFormat =
GPA(
"wglSetPixelFormat");
78 qwglSwapBuffers =
GPA(
"wglSwapBuffers");
80 qwglCreateContext =
GPA(
"wglCreateContext");
81 qwglDeleteContext =
GPA(
"wglDeleteContext");
82 qwglGetProcAddress =
GPA(
"wglGetProcAddress");
83 qwglMakeCurrent =
GPA(
"wglMakeCurrent");
96 qwglChoosePixelFormatARB = NULL;
99 qwglSwapIntervalEXT = NULL;
103 #define GPA(x) (void *)qwglGetProcAddress(x)
111 qwglChoosePixelFormatARB =
GPA(
"wglChoosePixelFormatARB");
114 qwglSwapIntervalEXT =
GPA(
"wglSwapIntervalEXT");
123 static const char *
const extnames[] = {
124 "WGL_ARB_extensions_string",
125 "WGL_ARB_multisample",
126 "WGL_ARB_pixel_format",
127 "WGL_EXT_swap_control",
128 "WGL_EXT_swap_control_tear",
132 return Com_ParseExtensionString(s, extnames);