1 /*
2 Copyright (C) 1997-2001 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 /*
21 ** QGL_WIN.C
22 **
23 ** This file implements the operating system binding of GL to QGL function
24 ** pointers.  When doing a port of Quake2 you must implement the following
25 ** two functions:
26 **
27 ** QGL_Init() - loads libraries, assigns function pointers, etc.
28 ** QGL_Shutdown() - unloads libraries, NULLs function pointers
29 */
30 
31 #ifdef HAVE_CONFIG_H
32 #include "config.h"
33 #endif
34 
35 #include <float.h>
36 #include "ref_gl/r_local.h"
37 #include "glw_win.h"
38 
39 int   ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *);
40 int   ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
41 int   ( WINAPI * qwglGetPixelFormat)(HDC);
42 BOOL  ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
43 BOOL  ( WINAPI * qwglSwapBuffers)(HDC);
44 
45 BOOL  ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT);
46 HGLRC ( WINAPI * qwglCreateContext)(HDC);
47 HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int);
48 BOOL  ( WINAPI * qwglDeleteContext)(HGLRC);
49 HGLRC ( WINAPI * qwglGetCurrentContext)(VOID);
50 HDC   ( WINAPI * qwglGetCurrentDC)(VOID);
51 PROC  ( WINAPI * qwglGetProcAddress)(LPCSTR);
52 BOOL  ( WINAPI * qwglMakeCurrent)(HDC, HGLRC);
53 BOOL  ( WINAPI * qwglShareLists)(HGLRC, HGLRC);
54 BOOL  ( WINAPI * qwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD);
55 
56 BOOL  ( WINAPI * qwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT,
57                                            FLOAT, int, LPGLYPHMETRICSFLOAT);
58 
59 BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT,
60                                             LPLAYERPLANEDESCRIPTOR);
61 int  ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int,
62                                                 CONST COLORREF *);
63 int  ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int,
64                                                 COLORREF *);
65 BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL);
66 BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT);
67 
68 void ( APIENTRY * qglAccum )(GLenum op, GLfloat value);
69 void ( APIENTRY * qglAlphaFunc )(GLenum func, GLclampf ref);
70 GLboolean ( APIENTRY * qglAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences);
71 void ( APIENTRY * qglArrayElement )(GLint i);
72 void ( APIENTRY * qglBegin )(GLenum mode);
73 void ( APIENTRY * qglBindTexture )(GLenum target, GLuint texture);
74 void ( APIENTRY * qglBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
75 void ( APIENTRY * qglBlendFunc )(GLenum sfactor, GLenum dfactor);
76 void ( APIENTRY * qglCallList )(GLuint list);
77 void ( APIENTRY * qglCallLists )(GLsizei n, GLenum type, const GLvoid *lists);
78 void ( APIENTRY * qglClear )(GLbitfield mask);
79 void ( APIENTRY * qglClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
80 void ( APIENTRY * qglClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
81 void ( APIENTRY * qglClearDepth )(GLclampd depth);
82 void ( APIENTRY * qglClearIndex )(GLfloat c);
83 void ( APIENTRY * qglClearStencil )(GLint s);
84 void ( APIENTRY * qglClipPlane )(GLenum plane, const GLdouble *equation);
85 void ( APIENTRY * qglColor3b )(GLbyte red, GLbyte green, GLbyte blue);
86 void ( APIENTRY * qglColor3bv )(const GLbyte *v);
87 void ( APIENTRY * qglColor3d )(GLdouble red, GLdouble green, GLdouble blue);
88 void ( APIENTRY * qglColor3dv )(const GLdouble *v);
89 void ( APIENTRY * qglColor3f )(GLfloat red, GLfloat green, GLfloat blue);
90 void ( APIENTRY * qglColor3fv )(const GLfloat *v);
91 void ( APIENTRY * qglColor3i )(GLint red, GLint green, GLint blue);
92 void ( APIENTRY * qglColor3iv )(const GLint *v);
93 void ( APIENTRY * qglColor3s )(GLshort red, GLshort green, GLshort blue);
94 void ( APIENTRY * qglColor3sv )(const GLshort *v);
95 void ( APIENTRY * qglColor3ub )(GLubyte red, GLubyte green, GLubyte blue);
96 void ( APIENTRY * qglColor3ubv )(const GLubyte *v);
97 void ( APIENTRY * qglColor3ui )(GLuint red, GLuint green, GLuint blue);
98 void ( APIENTRY * qglColor3uiv )(const GLuint *v);
99 void ( APIENTRY * qglColor3us )(GLushort red, GLushort green, GLushort blue);
100 void ( APIENTRY * qglColor3usv )(const GLushort *v);
101 void ( APIENTRY * qglColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
102 void ( APIENTRY * qglColor4bv )(const GLbyte *v);
103 void ( APIENTRY * qglColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
104 void ( APIENTRY * qglColor4dv )(const GLdouble *v);
105 void ( APIENTRY * qglColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
106 void ( APIENTRY * qglColor4fv )(const GLfloat *v);
107 void ( APIENTRY * qglColor4i )(GLint red, GLint green, GLint blue, GLint alpha);
108 void ( APIENTRY * qglColor4iv )(const GLint *v);
109 void ( APIENTRY * qglColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
110 void ( APIENTRY * qglColor4sv )(const GLshort *v);
111 void ( APIENTRY * qglColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
112 void ( APIENTRY * qglColor4ubv )(const GLubyte *v);
113 void ( APIENTRY * qglColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
114 void ( APIENTRY * qglColor4uiv )(const GLuint *v);
115 void ( APIENTRY * qglColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
116 void ( APIENTRY * qglColor4usv )(const GLushort *v);
117 void ( APIENTRY * qglColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
118 void ( APIENTRY * qglColorMaterial )(GLenum face, GLenum mode);
119 void ( APIENTRY * qglColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
120 void ( APIENTRY * qglCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
121 void ( APIENTRY * qglCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
122 void ( APIENTRY * qglCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
123 void ( APIENTRY * qglCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
124 void ( APIENTRY * qglCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
125 void ( APIENTRY * qglCullFace )(GLenum mode);
126 void ( APIENTRY * qglDeleteLists )(GLuint list, GLsizei range);
127 void ( APIENTRY * qglDeleteTextures )(GLsizei n, const GLuint *textures);
128 void ( APIENTRY * qglDepthFunc )(GLenum func);
129 void ( APIENTRY * qglDepthMask )(GLboolean flag);
130 void ( APIENTRY * qglDepthRange )(GLclampd zNear, GLclampd zFar);
131 void ( APIENTRY * qglDisable )(GLenum cap);
132 void ( APIENTRY * qglDisableClientState )(GLenum array);
133 void ( APIENTRY * qglDrawArrays )(GLenum mode, GLint first, GLsizei count);
134 void ( APIENTRY * qglDrawBuffer )(GLenum mode);
135 void ( APIENTRY * qglDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
136 void ( APIENTRY * qglDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
137 void ( APIENTRY * qglEdgeFlag )(GLboolean flag);
138 void ( APIENTRY * qglEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer);
139 void ( APIENTRY * qglEdgeFlagv )(const GLboolean *flag);
140 void ( APIENTRY * qglEnable )(GLenum cap);
141 void ( APIENTRY * qglEnableClientState )(GLenum array);
142 void ( APIENTRY * qglEnd )(void);
143 void ( APIENTRY * qglEndList )(void);
144 void ( APIENTRY * qglEvalCoord1d )(GLdouble u);
145 void ( APIENTRY * qglEvalCoord1dv )(const GLdouble *u);
146 void ( APIENTRY * qglEvalCoord1f )(GLfloat u);
147 void ( APIENTRY * qglEvalCoord1fv )(const GLfloat *u);
148 void ( APIENTRY * qglEvalCoord2d )(GLdouble u, GLdouble v);
149 void ( APIENTRY * qglEvalCoord2dv )(const GLdouble *u);
150 void ( APIENTRY * qglEvalCoord2f )(GLfloat u, GLfloat v);
151 void ( APIENTRY * qglEvalCoord2fv )(const GLfloat *u);
152 void ( APIENTRY * qglEvalMesh1 )(GLenum mode, GLint i1, GLint i2);
153 void ( APIENTRY * qglEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
154 void ( APIENTRY * qglEvalPoint1 )(GLint i);
155 void ( APIENTRY * qglEvalPoint2 )(GLint i, GLint j);
156 void ( APIENTRY * qglFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer);
157 void ( APIENTRY * qglFinish )(void);
158 void ( APIENTRY * qglFlush )(void);
159 void ( APIENTRY * qglFogf )(GLenum pname, GLfloat param);
160 void ( APIENTRY * qglFogfv )(GLenum pname, const GLfloat *params);
161 void ( APIENTRY * qglFogi )(GLenum pname, GLint param);
162 void ( APIENTRY * qglFogiv )(GLenum pname, const GLint *params);
163 void ( APIENTRY * qglFrontFace )(GLenum mode);
164 void ( APIENTRY * qglFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
165 GLuint ( APIENTRY * qglGenLists )(GLsizei range);
166 void ( APIENTRY * qglGenTextures )(GLsizei n, GLuint *textures);
167 void ( APIENTRY * qglGetBooleanv )(GLenum pname, GLboolean *params);
168 void ( APIENTRY * qglGetClipPlane )(GLenum plane, GLdouble *equation);
169 void ( APIENTRY * qglGetDoublev )(GLenum pname, GLdouble *params);
170 GLenum ( APIENTRY * qglGetError )(void);
171 void ( APIENTRY * qglGetFloatv )(GLenum pname, GLfloat *params);
172 void ( APIENTRY * qglGetIntegerv )(GLenum pname, GLint *params);
173 void ( APIENTRY * qglGetLightfv )(GLenum light, GLenum pname, GLfloat *params);
174 void ( APIENTRY * qglGetLightiv )(GLenum light, GLenum pname, GLint *params);
175 void ( APIENTRY * qglGetMapdv )(GLenum target, GLenum query, GLdouble *v);
176 void ( APIENTRY * qglGetMapfv )(GLenum target, GLenum query, GLfloat *v);
177 void ( APIENTRY * qglGetMapiv )(GLenum target, GLenum query, GLint *v);
178 void ( APIENTRY * qglGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params);
179 void ( APIENTRY * qglGetMaterialiv )(GLenum face, GLenum pname, GLint *params);
180 void ( APIENTRY * qglGetPixelMapfv )(GLenum map, GLfloat *values);
181 void ( APIENTRY * qglGetPixelMapuiv )(GLenum map, GLuint *values);
182 void ( APIENTRY * qglGetPixelMapusv )(GLenum map, GLushort *values);
183 void ( APIENTRY * qglGetPointerv )(GLenum pname, GLvoid* *params);
184 void ( APIENTRY * qglGetPolygonStipple )(GLubyte *mask);
185 const GLubyte * ( APIENTRY * qglGetString )(GLenum name);
186 void ( APIENTRY * qglGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params);
187 void ( APIENTRY * qglGetTexEnviv )(GLenum target, GLenum pname, GLint *params);
188 void ( APIENTRY * qglGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params);
189 void ( APIENTRY * qglGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params);
190 void ( APIENTRY * qglGetTexGeniv )(GLenum coord, GLenum pname, GLint *params);
191 void ( APIENTRY * qglGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
192 void ( APIENTRY * qglGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params);
193 void ( APIENTRY * qglGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params);
194 void ( APIENTRY * qglGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params);
195 void ( APIENTRY * qglGetTexParameteriv )(GLenum target, GLenum pname, GLint *params);
196 void ( APIENTRY * qglHint )(GLenum target, GLenum mode);
197 void ( APIENTRY * qglIndexMask )(GLuint mask);
198 void ( APIENTRY * qglIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
199 void ( APIENTRY * qglIndexd )(GLdouble c);
200 void ( APIENTRY * qglIndexdv )(const GLdouble *c);
201 void ( APIENTRY * qglIndexf )(GLfloat c);
202 void ( APIENTRY * qglIndexfv )(const GLfloat *c);
203 void ( APIENTRY * qglIndexi )(GLint c);
204 void ( APIENTRY * qglIndexiv )(const GLint *c);
205 void ( APIENTRY * qglIndexs )(GLshort c);
206 void ( APIENTRY * qglIndexsv )(const GLshort *c);
207 void ( APIENTRY * qglIndexub )(GLubyte c);
208 void ( APIENTRY * qglIndexubv )(const GLubyte *c);
209 void ( APIENTRY * qglInitNames )(void);
210 void ( APIENTRY * qglInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer);
211 GLboolean ( APIENTRY * qglIsEnabled )(GLenum cap);
212 GLboolean ( APIENTRY * qglIsList )(GLuint list);
213 GLboolean ( APIENTRY * qglIsTexture )(GLuint texture);
214 void ( APIENTRY * qglLightModelf )(GLenum pname, GLfloat param);
215 void ( APIENTRY * qglLightModelfv )(GLenum pname, const GLfloat *params);
216 void ( APIENTRY * qglLightModeli )(GLenum pname, GLint param);
217 void ( APIENTRY * qglLightModeliv )(GLenum pname, const GLint *params);
218 void ( APIENTRY * qglLightf )(GLenum light, GLenum pname, GLfloat param);
219 void ( APIENTRY * qglLightfv )(GLenum light, GLenum pname, const GLfloat *params);
220 void ( APIENTRY * qglLighti )(GLenum light, GLenum pname, GLint param);
221 void ( APIENTRY * qglLightiv )(GLenum light, GLenum pname, const GLint *params);
222 void ( APIENTRY * qglLineStipple )(GLint factor, GLushort pattern);
223 void ( APIENTRY * qglLineWidth )(GLfloat width);
224 void ( APIENTRY * qglListBase )(GLuint base);
225 void ( APIENTRY * qglLoadIdentity )(void);
226 void ( APIENTRY * qglLoadMatrixd )(const GLdouble *m);
227 void ( APIENTRY * qglLoadMatrixf )(const GLfloat *m);
228 void ( APIENTRY * qglLoadName )(GLuint name);
229 void ( APIENTRY * qglLogicOp )(GLenum opcode);
230 void ( APIENTRY * qglMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
231 void ( APIENTRY * qglMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
232 void ( APIENTRY * qglMap2d )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
233 void ( APIENTRY * qglMap2f )(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
234 void ( APIENTRY * qglMapGrid1d )(GLint un, GLdouble u1, GLdouble u2);
235 void ( APIENTRY * qglMapGrid1f )(GLint un, GLfloat u1, GLfloat u2);
236 void ( APIENTRY * qglMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
237 void ( APIENTRY * qglMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
238 void ( APIENTRY * qglMaterialf )(GLenum face, GLenum pname, GLfloat param);
239 void ( APIENTRY * qglMaterialfv )(GLenum face, GLenum pname, const GLfloat *params);
240 void ( APIENTRY * qglMateriali )(GLenum face, GLenum pname, GLint param);
241 void ( APIENTRY * qglMaterialiv )(GLenum face, GLenum pname, const GLint *params);
242 void ( APIENTRY * qglMatrixMode )(GLenum mode);
243 void ( APIENTRY * qglMultMatrixd )(const GLdouble *m);
244 void ( APIENTRY * qglMultMatrixf )(const GLfloat *m);
245 void ( APIENTRY * qglNewList )(GLuint list, GLenum mode);
246 void ( APIENTRY * qglNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz);
247 void ( APIENTRY * qglNormal3bv )(const GLbyte *v);
248 void ( APIENTRY * qglNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz);
249 void ( APIENTRY * qglNormal3dv )(const GLdouble *v);
250 void ( APIENTRY * qglNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz);
251 void ( APIENTRY * qglNormal3fv )(const GLfloat *v);
252 void ( APIENTRY * qglNormal3i )(GLint nx, GLint ny, GLint nz);
253 void ( APIENTRY * qglNormal3iv )(const GLint *v);
254 void ( APIENTRY * qglNormal3s )(GLshort nx, GLshort ny, GLshort nz);
255 void ( APIENTRY * qglNormal3sv )(const GLshort *v);
256 void ( APIENTRY * qglNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
257 void ( APIENTRY * qglOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
258 void ( APIENTRY * qglPassThrough )(GLfloat token);
259 void ( APIENTRY * qglPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values);
260 void ( APIENTRY * qglPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values);
261 void ( APIENTRY * qglPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values);
262 void ( APIENTRY * qglPixelStoref )(GLenum pname, GLfloat param);
263 void ( APIENTRY * qglPixelStorei )(GLenum pname, GLint param);
264 void ( APIENTRY * qglPixelTransferf )(GLenum pname, GLfloat param);
265 void ( APIENTRY * qglPixelTransferi )(GLenum pname, GLint param);
266 void ( APIENTRY * qglPixelZoom )(GLfloat xfactor, GLfloat yfactor);
267 void ( APIENTRY * qglPointSize )(GLfloat size);
268 void ( APIENTRY * qglPolygonMode )(GLenum face, GLenum mode);
269 void ( APIENTRY * qglPolygonOffset )(GLfloat factor, GLfloat units);
270 void ( APIENTRY * qglPolygonStipple )(const GLubyte *mask);
271 void ( APIENTRY * qglPopAttrib )(void);
272 void ( APIENTRY * qglPopClientAttrib )(void);
273 void ( APIENTRY * qglPopMatrix )(void);
274 void ( APIENTRY * qglPopName )(void);
275 void ( APIENTRY * qglPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
276 void ( APIENTRY * qglPushAttrib )(GLbitfield mask);
277 void ( APIENTRY * qglPushClientAttrib )(GLbitfield mask);
278 void ( APIENTRY * qglPushMatrix )(void);
279 void ( APIENTRY * qglPushName )(GLuint name);
280 void ( APIENTRY * qglRasterPos2d )(GLdouble x, GLdouble y);
281 void ( APIENTRY * qglRasterPos2dv )(const GLdouble *v);
282 void ( APIENTRY * qglRasterPos2f )(GLfloat x, GLfloat y);
283 void ( APIENTRY * qglRasterPos2fv )(const GLfloat *v);
284 void ( APIENTRY * qglRasterPos2i )(GLint x, GLint y);
285 void ( APIENTRY * qglRasterPos2iv )(const GLint *v);
286 void ( APIENTRY * qglRasterPos2s )(GLshort x, GLshort y);
287 void ( APIENTRY * qglRasterPos2sv )(const GLshort *v);
288 void ( APIENTRY * qglRasterPos3d )(GLdouble x, GLdouble y, GLdouble z);
289 void ( APIENTRY * qglRasterPos3dv )(const GLdouble *v);
290 void ( APIENTRY * qglRasterPos3f )(GLfloat x, GLfloat y, GLfloat z);
291 void ( APIENTRY * qglRasterPos3fv )(const GLfloat *v);
292 void ( APIENTRY * qglRasterPos3i )(GLint x, GLint y, GLint z);
293 void ( APIENTRY * qglRasterPos3iv )(const GLint *v);
294 void ( APIENTRY * qglRasterPos3s )(GLshort x, GLshort y, GLshort z);
295 void ( APIENTRY * qglRasterPos3sv )(const GLshort *v);
296 void ( APIENTRY * qglRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
297 void ( APIENTRY * qglRasterPos4dv )(const GLdouble *v);
298 void ( APIENTRY * qglRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
299 void ( APIENTRY * qglRasterPos4fv )(const GLfloat *v);
300 void ( APIENTRY * qglRasterPos4i )(GLint x, GLint y, GLint z, GLint w);
301 void ( APIENTRY * qglRasterPos4iv )(const GLint *v);
302 void ( APIENTRY * qglRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w);
303 void ( APIENTRY * qglRasterPos4sv )(const GLshort *v);
304 void ( APIENTRY * qglReadBuffer )(GLenum mode);
305 void ( APIENTRY * qglReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
306 void ( APIENTRY * qglRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
307 void ( APIENTRY * qglRectdv )(const GLdouble *v1, const GLdouble *v2);
308 void ( APIENTRY * qglRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
309 void ( APIENTRY * qglRectfv )(const GLfloat *v1, const GLfloat *v2);
310 void ( APIENTRY * qglRecti )(GLint x1, GLint y1, GLint x2, GLint y2);
311 void ( APIENTRY * qglRectiv )(const GLint *v1, const GLint *v2);
312 void ( APIENTRY * qglRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
313 void ( APIENTRY * qglRectsv )(const GLshort *v1, const GLshort *v2);
314 GLint ( APIENTRY * qglRenderMode )(GLenum mode);
315 void ( APIENTRY * qglRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
316 void ( APIENTRY * qglRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
317 void ( APIENTRY * qglScaled )(GLdouble x, GLdouble y, GLdouble z);
318 void ( APIENTRY * qglScalef )(GLfloat x, GLfloat y, GLfloat z);
319 void ( APIENTRY * qglScissor )(GLint x, GLint y, GLsizei width, GLsizei height);
320 void ( APIENTRY * qglSelectBuffer )(GLsizei size, GLuint *buffer);
321 void ( APIENTRY * qglShadeModel )(GLenum mode);
322 void ( APIENTRY * qglStencilFunc )(GLenum func, GLint ref, GLuint mask);
323 void ( APIENTRY * qglStencilMask )(GLuint mask);
324 void ( APIENTRY * qglStencilOp )(GLenum fail, GLenum zfail, GLenum zpass);
325 void ( APIENTRY * qglTexCoord1d )(GLdouble s);
326 void ( APIENTRY * qglTexCoord1dv )(const GLdouble *v);
327 void ( APIENTRY * qglTexCoord1f )(GLfloat s);
328 void ( APIENTRY * qglTexCoord1fv )(const GLfloat *v);
329 void ( APIENTRY * qglTexCoord1i )(GLint s);
330 void ( APIENTRY * qglTexCoord1iv )(const GLint *v);
331 void ( APIENTRY * qglTexCoord1s )(GLshort s);
332 void ( APIENTRY * qglTexCoord1sv )(const GLshort *v);
333 void ( APIENTRY * qglTexCoord2d )(GLdouble s, GLdouble t);
334 void ( APIENTRY * qglTexCoord2dv )(const GLdouble *v);
335 void ( APIENTRY * qglTexCoord2f )(GLfloat s, GLfloat t);
336 void ( APIENTRY * qglTexCoord2fv )(const GLfloat *v);
337 void ( APIENTRY * qglTexCoord2i )(GLint s, GLint t);
338 void ( APIENTRY * qglTexCoord2iv )(const GLint *v);
339 void ( APIENTRY * qglTexCoord2s )(GLshort s, GLshort t);
340 void ( APIENTRY * qglTexCoord2sv )(const GLshort *v);
341 void ( APIENTRY * qglTexCoord3d )(GLdouble s, GLdouble t, GLdouble r);
342 void ( APIENTRY * qglTexCoord3dv )(const GLdouble *v);
343 void ( APIENTRY * qglTexCoord3f )(GLfloat s, GLfloat t, GLfloat r);
344 void ( APIENTRY * qglTexCoord3fv )(const GLfloat *v);
345 void ( APIENTRY * qglTexCoord3i )(GLint s, GLint t, GLint r);
346 void ( APIENTRY * qglTexCoord3iv )(const GLint *v);
347 void ( APIENTRY * qglTexCoord3s )(GLshort s, GLshort t, GLshort r);
348 void ( APIENTRY * qglTexCoord3sv )(const GLshort *v);
349 void ( APIENTRY * qglTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
350 void ( APIENTRY * qglTexCoord4dv )(const GLdouble *v);
351 void ( APIENTRY * qglTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
352 void ( APIENTRY * qglTexCoord4fv )(const GLfloat *v);
353 void ( APIENTRY * qglTexCoord4i )(GLint s, GLint t, GLint r, GLint q);
354 void ( APIENTRY * qglTexCoord4iv )(const GLint *v);
355 void ( APIENTRY * qglTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q);
356 void ( APIENTRY * qglTexCoord4sv )(const GLshort *v);
357 void ( APIENTRY * qglTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
358 void ( APIENTRY * qglTexEnvf )(GLenum target, GLenum pname, GLfloat param);
359 void ( APIENTRY * qglTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params);
360 void ( APIENTRY * qglTexEnvi )(GLenum target, GLenum pname, GLint param);
361 void ( APIENTRY * qglTexEnviv )(GLenum target, GLenum pname, const GLint *params);
362 void ( APIENTRY * qglTexGend )(GLenum coord, GLenum pname, GLdouble param);
363 void ( APIENTRY * qglTexGendv )(GLenum coord, GLenum pname, const GLdouble *params);
364 void ( APIENTRY * qglTexGenf )(GLenum coord, GLenum pname, GLfloat param);
365 void ( APIENTRY * qglTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params);
366 void ( APIENTRY * qglTexGeni )(GLenum coord, GLenum pname, GLint param);
367 void ( APIENTRY * qglTexGeniv )(GLenum coord, GLenum pname, const GLint *params);
368 void ( APIENTRY * qglTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
369 void ( APIENTRY * qglTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
370 void ( APIENTRY * qglTexParameterf )(GLenum target, GLenum pname, GLfloat param);
371 void ( APIENTRY * qglTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params);
372 void ( APIENTRY * qglTexParameteri )(GLenum target, GLenum pname, GLint param);
373 void ( APIENTRY * qglTexParameteriv )(GLenum target, GLenum pname, const GLint *params);
374 void ( APIENTRY * qglTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
375 void ( APIENTRY * qglTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
376 void ( APIENTRY * qglTranslated )(GLdouble x, GLdouble y, GLdouble z);
377 void ( APIENTRY * qglTranslatef )(GLfloat x, GLfloat y, GLfloat z);
378 void ( APIENTRY * qglVertex2d )(GLdouble x, GLdouble y);
379 void ( APIENTRY * qglVertex2dv )(const GLdouble *v);
380 void ( APIENTRY * qglVertex2f )(GLfloat x, GLfloat y);
381 void ( APIENTRY * qglVertex2fv )(const GLfloat *v);
382 void ( APIENTRY * qglVertex2i )(GLint x, GLint y);
383 void ( APIENTRY * qglVertex2iv )(const GLint *v);
384 void ( APIENTRY * qglVertex2s )(GLshort x, GLshort y);
385 void ( APIENTRY * qglVertex2sv )(const GLshort *v);
386 void ( APIENTRY * qglVertex3d )(GLdouble x, GLdouble y, GLdouble z);
387 void ( APIENTRY * qglVertex3dv )(const GLdouble *v);
388 void ( APIENTRY * qglVertex3f )(GLfloat x, GLfloat y, GLfloat z);
389 void ( APIENTRY * qglVertex3fv )(const GLfloat *v);
390 void ( APIENTRY * qglVertex3i )(GLint x, GLint y, GLint z);
391 void ( APIENTRY * qglVertex3iv )(const GLint *v);
392 void ( APIENTRY * qglVertex3s )(GLshort x, GLshort y, GLshort z);
393 void ( APIENTRY * qglVertex3sv )(const GLshort *v);
394 void ( APIENTRY * qglVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
395 void ( APIENTRY * qglVertex4dv )(const GLdouble *v);
396 void ( APIENTRY * qglVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
397 void ( APIENTRY * qglVertex4fv )(const GLfloat *v);
398 void ( APIENTRY * qglVertex4i )(GLint x, GLint y, GLint z, GLint w);
399 void ( APIENTRY * qglVertex4iv )(const GLint *v);
400 void ( APIENTRY * qglVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w);
401 void ( APIENTRY * qglVertex4sv )(const GLshort *v);
402 void ( APIENTRY * qglVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
403 void ( APIENTRY * qglViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
404 
405 void ( APIENTRY * qglLockArraysEXT)( int, int);
406 void ( APIENTRY * qglUnlockArraysEXT) ( void );
407 
408 BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval );
409 BOOL ( WINAPI * qwglGetDeviceGammaRampEXT)( unsigned char *, unsigned char *, unsigned char * );
410 BOOL ( WINAPI * qwglSetDeviceGammaRampEXT)( const unsigned char *, const unsigned char *, const unsigned char * );
411 void ( APIENTRY * qglPointParameterfEXT)( GLenum param, GLfloat value );
412 void ( APIENTRY * qglPointParameterfvEXT)( GLenum param, const GLfloat *value );
413 void ( APIENTRY * qglColorTableEXT)( int, int, int, int, int, const void * );
414 void ( APIENTRY * qglSelectTextureARB)( GLenum );
415 void ( APIENTRY * qglMTexCoord2fARB)( GLenum, GLfloat, GLfloat );
416 void ( APIENTRY * qglMTexCoord3fARB)( GLenum, GLfloat, GLfloat, GLfloat );
417 void ( APIENTRY * qglActiveTextureARB) ( GLenum );
418 void ( APIENTRY * qglClientActiveTextureARB) ( GLenum );
419 void ( APIENTRY * qglMultiTexCoord3fvARB)( GLenum, GLfloat * );
420 
421 static void ( APIENTRY * dllAccum )(GLenum op, GLfloat value);
422 static void ( APIENTRY * dllAlphaFunc )(GLenum func, GLclampf ref);
423 GLboolean ( APIENTRY * dllAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences);
424 static void ( APIENTRY * dllArrayElement )(GLint i);
425 static void ( APIENTRY * dllBegin )(GLenum mode);
426 static void ( APIENTRY * dllBindTexture )(GLenum target, GLuint texture);
427 static void ( APIENTRY * dllBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
428 static void ( APIENTRY * dllBlendFunc )(GLenum sfactor, GLenum dfactor);
429 static void ( APIENTRY * dllCallList )(GLuint list);
430 static void ( APIENTRY * dllCallLists )(GLsizei n, GLenum type, const GLvoid *lists);
431 static void ( APIENTRY * dllClear )(GLbitfield mask);
432 static void ( APIENTRY * dllClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
433 static void ( APIENTRY * dllClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
434 static void ( APIENTRY * dllClearDepth )(GLclampd depth);
435 static void ( APIENTRY * dllClearIndex )(GLfloat c);
436 static void ( APIENTRY * dllClearStencil )(GLint s);
437 static void ( APIENTRY * dllClipPlane )(GLenum plane, const GLdouble *equation);
438 static void ( APIENTRY * dllColor3b )(GLbyte red, GLbyte green, GLbyte blue);
439 static void ( APIENTRY * dllColor3bv )(const GLbyte *v);
440 static void ( APIENTRY * dllColor3d )(GLdouble red, GLdouble green, GLdouble blue);
441 static void ( APIENTRY * dllColor3dv )(const GLdouble *v);
442 static void ( APIENTRY * dllColor3f )(GLfloat red, GLfloat green, GLfloat blue);
443 static void ( APIENTRY * dllColor3fv )(const GLfloat *v);
444 static void ( APIENTRY * dllColor3i )(GLint red, GLint green, GLint blue);
445 static void ( APIENTRY * dllColor3iv )(const GLint *v);
446 static void ( APIENTRY * dllColor3s )(GLshort red, GLshort green, GLshort blue);
447 static void ( APIENTRY * dllColor3sv )(const GLshort *v);
448 static void ( APIENTRY * dllColor3ub )(GLubyte red, GLubyte green, GLubyte blue);
449 static void ( APIENTRY * dllColor3ubv )(const GLubyte *v);
450 static void ( APIENTRY * dllColor3ui )(GLuint red, GLuint green, GLuint blue);
451 static void ( APIENTRY * dllColor3uiv )(const GLuint *v);
452 static void ( APIENTRY * dllColor3us )(GLushort red, GLushort green, GLushort blue);
453 static void ( APIENTRY * dllColor3usv )(const GLushort *v);
454 static void ( APIENTRY * dllColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
455 static void ( APIENTRY * dllColor4bv )(const GLbyte *v);
456 static void ( APIENTRY * dllColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
457 static void ( APIENTRY * dllColor4dv )(const GLdouble *v);
458 static void ( APIENTRY * dllColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
459 static void ( APIENTRY * dllColor4fv )(const GLfloat *v);
460 static void ( APIENTRY * dllColor4i )(GLint red, GLint green, GLint blue, GLint alpha);
461 static void ( APIENTRY * dllColor4iv )(const GLint *v);
462 static void ( APIENTRY * dllColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
463 static void ( APIENTRY * dllColor4sv )(const GLshort *v);
464 static void ( APIENTRY * dllColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
465 static void ( APIENTRY * dllColor4ubv )(const GLubyte *v);
466 static void ( APIENTRY * dllColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
467 static void ( APIENTRY * dllColor4uiv )(const GLuint *v);
468 static void ( APIENTRY * dllColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
469 static void ( APIENTRY * dllColor4usv )(const GLushort *v);
470 static void ( APIENTRY * dllColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
471 static void ( APIENTRY * dllColorMaterial )(GLenum face, GLenum mode);
472 static void ( APIENTRY * dllColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
473 static void ( APIENTRY * dllCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
474 static void ( APIENTRY * dllCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
475 static void ( APIENTRY * dllCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
476 static void ( APIENTRY * dllCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
477 static void ( APIENTRY * dllCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
478 static void ( APIENTRY * dllCullFace )(GLenum mode);
479 static void ( APIENTRY * dllDeleteLists )(GLuint list, GLsizei range);
480 static void ( APIENTRY * dllDeleteTextures )(GLsizei n, const GLuint *textures);
481 static void ( APIENTRY * dllDepthFunc )(GLenum func);
482 static void ( APIENTRY * dllDepthMask )(GLboolean flag);
483 static void ( APIENTRY * dllDepthRange )(GLclampd zNear, GLclampd zFar);
484 static void ( APIENTRY * dllDisable )(GLenum cap);
485 static void ( APIENTRY * dllDisableClientState )(GLenum array);
486 static void ( APIENTRY * dllDrawArrays )(GLenum mode, GLint first, GLsizei count);
487 static void ( APIENTRY * dllDrawBuffer )(GLenum mode);
488 static void ( APIENTRY * dllDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
489 static void ( APIENTRY * dllDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
490 static void ( APIENTRY * dllEdgeFlag )(GLboolean flag);
491 static void ( APIENTRY * dllEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer);
492 static void ( APIENTRY * dllEdgeFlagv )(const GLboolean *flag);
493 static void ( APIENTRY * dllEnable )(GLenum cap);
494 static void ( APIENTRY * dllEnableClientState )(GLenum array);
495 static void ( APIENTRY * dllEnd )(void);
496 static void ( APIENTRY * dllEndList )(void);
497 static void ( APIENTRY * dllEvalCoord1d )(GLdouble u);
498 static void ( APIENTRY * dllEvalCoord1dv )(const GLdouble *u);
499 static void ( APIENTRY * dllEvalCoord1f )(GLfloat u);
500 static void ( APIENTRY * dllEvalCoord1fv )(const GLfloat *u);
501 static void ( APIENTRY * dllEvalCoord2d )(GLdouble u, GLdouble v);
502 static void ( APIENTRY * dllEvalCoord2dv )(const GLdouble *u);
503 static void ( APIENTRY * dllEvalCoord2f )(GLfloat u, GLfloat v);
504 static void ( APIENTRY * dllEvalCoord2fv )(const GLfloat *u);
505 static void ( APIENTRY * dllEvalMesh1 )(GLenum mode, GLint i1, GLint i2);
506 static void ( APIENTRY * dllEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
507 static void ( APIENTRY * dllEvalPoint1 )(GLint i);
508 static void ( APIENTRY * dllEvalPoint2 )(GLint i, GLint j);
509 static void ( APIENTRY * dllFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer);
510 static void ( APIENTRY * dllFinish )(void);
511 static void ( APIENTRY * dllFlush )(void);
512 static void ( APIENTRY * dllFogf )(GLenum pname, GLfloat param);
513 static void ( APIENTRY * dllFogfv )(GLenum pname, const GLfloat *params);
514 static void ( APIENTRY * dllFogi )(GLenum pname, GLint param);
515 static void ( APIENTRY * dllFogiv )(GLenum pname, const GLint *params);
516 static void ( APIENTRY * dllFrontFace )(GLenum mode);
517 static void ( APIENTRY * dllFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
518 GLuint ( APIENTRY * dllGenLists )(GLsizei range);
519 static void ( APIENTRY * dllGenTextures )(GLsizei n, GLuint *textures);
520 static void ( APIENTRY * dllGetBooleanv )(GLenum pname, GLboolean *params);
521 static void ( APIENTRY * dllGetClipPlane )(GLenum plane, GLdouble *equation);
522 static void ( APIENTRY * dllGetDoublev )(GLenum pname, GLdouble *params);
523 GLenum ( APIENTRY * dllGetError )(void);
524 static void ( APIENTRY * dllGetFloatv )(GLenum pname, GLfloat *params);
525 static void ( APIENTRY * dllGetIntegerv )(GLenum pname, GLint *params);
526 static void ( APIENTRY * dllGetLightfv )(GLenum light, GLenum pname, GLfloat *params);
527 static void ( APIENTRY * dllGetLightiv )(GLenum light, GLenum pname, GLint *params);
528 static void ( APIENTRY * dllGetMapdv )(GLenum target, GLenum query, GLdouble *v);
529 static void ( APIENTRY * dllGetMapfv )(GLenum target, GLenum query, GLfloat *v);
530 static void ( APIENTRY * dllGetMapiv )(GLenum target, GLenum query, GLint *v);
531 static void ( APIENTRY * dllGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params);
532 static void ( APIENTRY * dllGetMaterialiv )(GLenum face, GLenum pname, GLint *params);
533 static void ( APIENTRY * dllGetPixelMapfv )(GLenum map, GLfloat *values);
534 static void ( APIENTRY * dllGetPixelMapuiv )(GLenum map, GLuint *values);
535 static void ( APIENTRY * dllGetPixelMapusv )(GLenum map, GLushort *values);
536 static void ( APIENTRY * dllGetPointerv )(GLenum pname, GLvoid* *params);
537 static void ( APIENTRY * dllGetPolygonStipple )(GLubyte *mask);
538 const GLubyte * ( APIENTRY * dllGetString )(GLenum name);
539 static void ( APIENTRY * dllGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params);
540 static void ( APIENTRY * dllGetTexEnviv )(GLenum target, GLenum pname, GLint *params);
541 static void ( APIENTRY * dllGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params);
542 static void ( APIENTRY * dllGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params);
543 static void ( APIENTRY * dllGetTexGeniv )(GLenum coord, GLenum pname, GLint *params);
544 static void ( APIENTRY * dllGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
545 static void ( APIENTRY * dllGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params);
546 static void ( APIENTRY * dllGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params);
547 static void ( APIENTRY * dllGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params);
548 static void ( APIENTRY * dllGetTexParameteriv )(GLenum target, GLenum pname, GLint *params);
549 static void ( APIENTRY * dllHint )(GLenum target, GLenum mode);
550 static void ( APIENTRY * dllIndexMask )(GLuint mask);
551 static void ( APIENTRY * dllIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
552 static void ( APIENTRY * dllIndexd )(GLdouble c);
553 static void ( APIENTRY * dllIndexdv )(const GLdouble *c);
554 static void ( APIENTRY * dllIndexf )(GLfloat c);
555 static void ( APIENTRY * dllIndexfv )(const GLfloat *c);
556 static void ( APIENTRY * dllIndexi )(GLint c);
557 static void ( APIENTRY * dllIndexiv )(const GLint *c);
558 static void ( APIENTRY * dllIndexs )(GLshort c);
559 static void ( APIENTRY * dllIndexsv )(const GLshort *c);
560 static void ( APIENTRY * dllIndexub )(GLubyte c);
561 static void ( APIENTRY * dllIndexubv )(const GLubyte *c);
562 static void ( APIENTRY * dllInitNames )(void);
563 static void ( APIENTRY * dllInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer);
564 GLboolean ( APIENTRY * dllIsEnabled )(GLenum cap);
565 GLboolean ( APIENTRY * dllIsList )(GLuint list);
566 GLboolean ( APIENTRY * dllIsTexture )(GLuint texture);
567 static void ( APIENTRY * dllLightModelf )(GLenum pname, GLfloat param);
568 static void ( APIENTRY * dllLightModelfv )(GLenum pname, const GLfloat *params);
569 static void ( APIENTRY * dllLightModeli )(GLenum pname, GLint param);
570 static void ( APIENTRY * dllLightModeliv )(GLenum pname, const GLint *params);
571 static void ( APIENTRY * dllLightf )(GLenum light, GLenum pname, GLfloat param);
572 static void ( APIENTRY * dllLightfv )(GLenum light, GLenum pname, const GLfloat *params);
573 static void ( APIENTRY * dllLighti )(GLenum light, GLenum pname, GLint param);
574 static void ( APIENTRY * dllLightiv )(GLenum light, GLenum pname, const GLint *params);
575 static void ( APIENTRY * dllLineStipple )(GLint factor, GLushort pattern);
576 static void ( APIENTRY * dllLineWidth )(GLfloat width);
577 static void ( APIENTRY * dllListBase )(GLuint base);
578 static void ( APIENTRY * dllLoadIdentity )(void);
579 static void ( APIENTRY * dllLoadMatrixd )(const GLdouble *m);
580 static void ( APIENTRY * dllLoadMatrixf )(const GLfloat *m);
581 static void ( APIENTRY * dllLoadName )(GLuint name);
582 static void ( APIENTRY * dllLogicOp )(GLenum opcode);
583 static void ( APIENTRY * dllMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
584 static void ( APIENTRY * dllMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
585 static void ( APIENTRY * dllMap2d )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
586 static void ( APIENTRY * dllMap2f )(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
587 static void ( APIENTRY * dllMapGrid1d )(GLint un, GLdouble u1, GLdouble u2);
588 static void ( APIENTRY * dllMapGrid1f )(GLint un, GLfloat u1, GLfloat u2);
589 static void ( APIENTRY * dllMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
590 static void ( APIENTRY * dllMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
591 static void ( APIENTRY * dllMaterialf )(GLenum face, GLenum pname, GLfloat param);
592 static void ( APIENTRY * dllMaterialfv )(GLenum face, GLenum pname, const GLfloat *params);
593 static void ( APIENTRY * dllMateriali )(GLenum face, GLenum pname, GLint param);
594 static void ( APIENTRY * dllMaterialiv )(GLenum face, GLenum pname, const GLint *params);
595 static void ( APIENTRY * dllMatrixMode )(GLenum mode);
596 static void ( APIENTRY * dllMultMatrixd )(const GLdouble *m);
597 static void ( APIENTRY * dllMultMatrixf )(const GLfloat *m);
598 static void ( APIENTRY * dllNewList )(GLuint list, GLenum mode);
599 static void ( APIENTRY * dllNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz);
600 static void ( APIENTRY * dllNormal3bv )(const GLbyte *v);
601 static void ( APIENTRY * dllNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz);
602 static void ( APIENTRY * dllNormal3dv )(const GLdouble *v);
603 static void ( APIENTRY * dllNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz);
604 static void ( APIENTRY * dllNormal3fv )(const GLfloat *v);
605 static void ( APIENTRY * dllNormal3i )(GLint nx, GLint ny, GLint nz);
606 static void ( APIENTRY * dllNormal3iv )(const GLint *v);
607 static void ( APIENTRY * dllNormal3s )(GLshort nx, GLshort ny, GLshort nz);
608 static void ( APIENTRY * dllNormal3sv )(const GLshort *v);
609 static void ( APIENTRY * dllNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
610 static void ( APIENTRY * dllOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
611 static void ( APIENTRY * dllPassThrough )(GLfloat token);
612 static void ( APIENTRY * dllPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values);
613 static void ( APIENTRY * dllPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values);
614 static void ( APIENTRY * dllPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values);
615 static void ( APIENTRY * dllPixelStoref )(GLenum pname, GLfloat param);
616 static void ( APIENTRY * dllPixelStorei )(GLenum pname, GLint param);
617 static void ( APIENTRY * dllPixelTransferf )(GLenum pname, GLfloat param);
618 static void ( APIENTRY * dllPixelTransferi )(GLenum pname, GLint param);
619 static void ( APIENTRY * dllPixelZoom )(GLfloat xfactor, GLfloat yfactor);
620 static void ( APIENTRY * dllPointSize )(GLfloat size);
621 static void ( APIENTRY * dllPolygonMode )(GLenum face, GLenum mode);
622 static void ( APIENTRY * dllPolygonOffset )(GLfloat factor, GLfloat units);
623 static void ( APIENTRY * dllPolygonStipple )(const GLubyte *mask);
624 static void ( APIENTRY * dllPopAttrib )(void);
625 static void ( APIENTRY * dllPopClientAttrib )(void);
626 static void ( APIENTRY * dllPopMatrix )(void);
627 static void ( APIENTRY * dllPopName )(void);
628 static void ( APIENTRY * dllPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
629 static void ( APIENTRY * dllPushAttrib )(GLbitfield mask);
630 static void ( APIENTRY * dllPushClientAttrib )(GLbitfield mask);
631 static void ( APIENTRY * dllPushMatrix )(void);
632 static void ( APIENTRY * dllPushName )(GLuint name);
633 static void ( APIENTRY * dllRasterPos2d )(GLdouble x, GLdouble y);
634 static void ( APIENTRY * dllRasterPos2dv )(const GLdouble *v);
635 static void ( APIENTRY * dllRasterPos2f )(GLfloat x, GLfloat y);
636 static void ( APIENTRY * dllRasterPos2fv )(const GLfloat *v);
637 static void ( APIENTRY * dllRasterPos2i )(GLint x, GLint y);
638 static void ( APIENTRY * dllRasterPos2iv )(const GLint *v);
639 static void ( APIENTRY * dllRasterPos2s )(GLshort x, GLshort y);
640 static void ( APIENTRY * dllRasterPos2sv )(const GLshort *v);
641 static void ( APIENTRY * dllRasterPos3d )(GLdouble x, GLdouble y, GLdouble z);
642 static void ( APIENTRY * dllRasterPos3dv )(const GLdouble *v);
643 static void ( APIENTRY * dllRasterPos3f )(GLfloat x, GLfloat y, GLfloat z);
644 static void ( APIENTRY * dllRasterPos3fv )(const GLfloat *v);
645 static void ( APIENTRY * dllRasterPos3i )(GLint x, GLint y, GLint z);
646 static void ( APIENTRY * dllRasterPos3iv )(const GLint *v);
647 static void ( APIENTRY * dllRasterPos3s )(GLshort x, GLshort y, GLshort z);
648 static void ( APIENTRY * dllRasterPos3sv )(const GLshort *v);
649 static void ( APIENTRY * dllRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
650 static void ( APIENTRY * dllRasterPos4dv )(const GLdouble *v);
651 static void ( APIENTRY * dllRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
652 static void ( APIENTRY * dllRasterPos4fv )(const GLfloat *v);
653 static void ( APIENTRY * dllRasterPos4i )(GLint x, GLint y, GLint z, GLint w);
654 static void ( APIENTRY * dllRasterPos4iv )(const GLint *v);
655 static void ( APIENTRY * dllRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w);
656 static void ( APIENTRY * dllRasterPos4sv )(const GLshort *v);
657 static void ( APIENTRY * dllReadBuffer )(GLenum mode);
658 static void ( APIENTRY * dllReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
659 static void ( APIENTRY * dllRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
660 static void ( APIENTRY * dllRectdv )(const GLdouble *v1, const GLdouble *v2);
661 static void ( APIENTRY * dllRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
662 static void ( APIENTRY * dllRectfv )(const GLfloat *v1, const GLfloat *v2);
663 static void ( APIENTRY * dllRecti )(GLint x1, GLint y1, GLint x2, GLint y2);
664 static void ( APIENTRY * dllRectiv )(const GLint *v1, const GLint *v2);
665 static void ( APIENTRY * dllRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
666 static void ( APIENTRY * dllRectsv )(const GLshort *v1, const GLshort *v2);
667 GLint ( APIENTRY * dllRenderMode )(GLenum mode);
668 static void ( APIENTRY * dllRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
669 static void ( APIENTRY * dllRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
670 static void ( APIENTRY * dllScaled )(GLdouble x, GLdouble y, GLdouble z);
671 static void ( APIENTRY * dllScalef )(GLfloat x, GLfloat y, GLfloat z);
672 static void ( APIENTRY * dllScissor )(GLint x, GLint y, GLsizei width, GLsizei height);
673 static void ( APIENTRY * dllSelectBuffer )(GLsizei size, GLuint *buffer);
674 static void ( APIENTRY * dllShadeModel )(GLenum mode);
675 static void ( APIENTRY * dllStencilFunc )(GLenum func, GLint ref, GLuint mask);
676 static void ( APIENTRY * dllStencilMask )(GLuint mask);
677 static void ( APIENTRY * dllStencilOp )(GLenum fail, GLenum zfail, GLenum zpass);
678 static void ( APIENTRY * dllTexCoord1d )(GLdouble s);
679 static void ( APIENTRY * dllTexCoord1dv )(const GLdouble *v);
680 static void ( APIENTRY * dllTexCoord1f )(GLfloat s);
681 static void ( APIENTRY * dllTexCoord1fv )(const GLfloat *v);
682 static void ( APIENTRY * dllTexCoord1i )(GLint s);
683 static void ( APIENTRY * dllTexCoord1iv )(const GLint *v);
684 static void ( APIENTRY * dllTexCoord1s )(GLshort s);
685 static void ( APIENTRY * dllTexCoord1sv )(const GLshort *v);
686 static void ( APIENTRY * dllTexCoord2d )(GLdouble s, GLdouble t);
687 static void ( APIENTRY * dllTexCoord2dv )(const GLdouble *v);
688 static void ( APIENTRY * dllTexCoord2f )(GLfloat s, GLfloat t);
689 static void ( APIENTRY * dllTexCoord2fv )(const GLfloat *v);
690 static void ( APIENTRY * dllTexCoord2i )(GLint s, GLint t);
691 static void ( APIENTRY * dllTexCoord2iv )(const GLint *v);
692 static void ( APIENTRY * dllTexCoord2s )(GLshort s, GLshort t);
693 static void ( APIENTRY * dllTexCoord2sv )(const GLshort *v);
694 static void ( APIENTRY * dllTexCoord3d )(GLdouble s, GLdouble t, GLdouble r);
695 static void ( APIENTRY * dllTexCoord3dv )(const GLdouble *v);
696 static void ( APIENTRY * dllTexCoord3f )(GLfloat s, GLfloat t, GLfloat r);
697 static void ( APIENTRY * dllTexCoord3fv )(const GLfloat *v);
698 static void ( APIENTRY * dllTexCoord3i )(GLint s, GLint t, GLint r);
699 static void ( APIENTRY * dllTexCoord3iv )(const GLint *v);
700 static void ( APIENTRY * dllTexCoord3s )(GLshort s, GLshort t, GLshort r);
701 static void ( APIENTRY * dllTexCoord3sv )(const GLshort *v);
702 static void ( APIENTRY * dllTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
703 static void ( APIENTRY * dllTexCoord4dv )(const GLdouble *v);
704 static void ( APIENTRY * dllTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
705 static void ( APIENTRY * dllTexCoord4fv )(const GLfloat *v);
706 static void ( APIENTRY * dllTexCoord4i )(GLint s, GLint t, GLint r, GLint q);
707 static void ( APIENTRY * dllTexCoord4iv )(const GLint *v);
708 static void ( APIENTRY * dllTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q);
709 static void ( APIENTRY * dllTexCoord4sv )(const GLshort *v);
710 static void ( APIENTRY * dllTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
711 static void ( APIENTRY * dllTexEnvf )(GLenum target, GLenum pname, GLfloat param);
712 static void ( APIENTRY * dllTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params);
713 static void ( APIENTRY * dllTexEnvi )(GLenum target, GLenum pname, GLint param);
714 static void ( APIENTRY * dllTexEnviv )(GLenum target, GLenum pname, const GLint *params);
715 static void ( APIENTRY * dllTexGend )(GLenum coord, GLenum pname, GLdouble param);
716 static void ( APIENTRY * dllTexGendv )(GLenum coord, GLenum pname, const GLdouble *params);
717 static void ( APIENTRY * dllTexGenf )(GLenum coord, GLenum pname, GLfloat param);
718 static void ( APIENTRY * dllTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params);
719 static void ( APIENTRY * dllTexGeni )(GLenum coord, GLenum pname, GLint param);
720 static void ( APIENTRY * dllTexGeniv )(GLenum coord, GLenum pname, const GLint *params);
721 static void ( APIENTRY * dllTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
722 static void ( APIENTRY * dllTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
723 static void ( APIENTRY * dllTexParameterf )(GLenum target, GLenum pname, GLfloat param);
724 static void ( APIENTRY * dllTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params);
725 static void ( APIENTRY * dllTexParameteri )(GLenum target, GLenum pname, GLint param);
726 static void ( APIENTRY * dllTexParameteriv )(GLenum target, GLenum pname, const GLint *params);
727 static void ( APIENTRY * dllTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
728 static void ( APIENTRY * dllTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
729 static void ( APIENTRY * dllTranslated )(GLdouble x, GLdouble y, GLdouble z);
730 static void ( APIENTRY * dllTranslatef )(GLfloat x, GLfloat y, GLfloat z);
731 static void ( APIENTRY * dllVertex2d )(GLdouble x, GLdouble y);
732 static void ( APIENTRY * dllVertex2dv )(const GLdouble *v);
733 static void ( APIENTRY * dllVertex2f )(GLfloat x, GLfloat y);
734 static void ( APIENTRY * dllVertex2fv )(const GLfloat *v);
735 static void ( APIENTRY * dllVertex2i )(GLint x, GLint y);
736 static void ( APIENTRY * dllVertex2iv )(const GLint *v);
737 static void ( APIENTRY * dllVertex2s )(GLshort x, GLshort y);
738 static void ( APIENTRY * dllVertex2sv )(const GLshort *v);
739 static void ( APIENTRY * dllVertex3d )(GLdouble x, GLdouble y, GLdouble z);
740 static void ( APIENTRY * dllVertex3dv )(const GLdouble *v);
741 static void ( APIENTRY * dllVertex3f )(GLfloat x, GLfloat y, GLfloat z);
742 static void ( APIENTRY * dllVertex3fv )(const GLfloat *v);
743 static void ( APIENTRY * dllVertex3i )(GLint x, GLint y, GLint z);
744 static void ( APIENTRY * dllVertex3iv )(const GLint *v);
745 static void ( APIENTRY * dllVertex3s )(GLshort x, GLshort y, GLshort z);
746 static void ( APIENTRY * dllVertex3sv )(const GLshort *v);
747 static void ( APIENTRY * dllVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
748 static void ( APIENTRY * dllVertex4dv )(const GLdouble *v);
749 static void ( APIENTRY * dllVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
750 static void ( APIENTRY * dllVertex4fv )(const GLfloat *v);
751 static void ( APIENTRY * dllVertex4i )(GLint x, GLint y, GLint z, GLint w);
752 static void ( APIENTRY * dllVertex4iv )(const GLint *v);
753 static void ( APIENTRY * dllVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w);
754 static void ( APIENTRY * dllVertex4sv )(const GLshort *v);
755 static void ( APIENTRY * dllVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
756 static void ( APIENTRY * dllViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
757 
logAccum(GLenum op,GLfloat value)758 static void APIENTRY logAccum(GLenum op, GLfloat value)
759 {
760 	fprintf( glw_state.log_fp, "glAccum\n" );
761 	dllAccum( op, value );
762 }
763 
logAlphaFunc(GLenum func,GLclampf ref)764 static void APIENTRY logAlphaFunc(GLenum func, GLclampf ref)
765 {
766 	fprintf( glw_state.log_fp, "glAlphaFunc( 0x%x, %f )\n", func, ref );
767 	dllAlphaFunc( func, ref );
768 }
769 
logAreTexturesResident(GLsizei n,const GLuint * textures,GLboolean * residences)770 static GLboolean APIENTRY logAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
771 {
772 	fprintf( glw_state.log_fp, "glAreTexturesResident\n" );
773 	return dllAreTexturesResident( n, textures, residences );
774 }
775 
logArrayElement(GLint i)776 static void APIENTRY logArrayElement(GLint i)
777 {
778 	fprintf( glw_state.log_fp, "glArrayElement\n" );
779 	dllArrayElement( i );
780 }
781 
logBegin(GLenum mode)782 static void APIENTRY logBegin(GLenum mode)
783 {
784 	fprintf( glw_state.log_fp, "glBegin( 0x%x )\n", mode );
785 	dllBegin( mode );
786 }
787 
logBindTexture(GLenum target,GLuint texture)788 static void APIENTRY logBindTexture(GLenum target, GLuint texture)
789 {
790 	fprintf( glw_state.log_fp, "glBindTexture( 0x%x, %u )\n", target, texture );
791 	dllBindTexture( target, texture );
792 }
793 
logBitmap(GLsizei width,GLsizei height,GLfloat xorig,GLfloat yorig,GLfloat xmove,GLfloat ymove,const GLubyte * bitmap)794 static void APIENTRY logBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
795 {
796 	fprintf( glw_state.log_fp, "glBitmap\n" );
797 	dllBitmap( width, height, xorig, yorig, xmove, ymove, bitmap );
798 }
799 
logBlendFunc(GLenum sfactor,GLenum dfactor)800 static void APIENTRY logBlendFunc(GLenum sfactor, GLenum dfactor)
801 {
802 	fprintf( glw_state.log_fp, "glBlendFunc( 0x%x, 0x%x )\n", sfactor, dfactor );
803 	dllBlendFunc( sfactor, dfactor );
804 }
805 
logCallList(GLuint list)806 static void APIENTRY logCallList(GLuint list)
807 {
808 	fprintf( glw_state.log_fp, "glCallList( %u )\n", list );
809 	dllCallList( list );
810 }
811 
logCallLists(GLsizei n,GLenum type,const void * lists)812 static void APIENTRY logCallLists(GLsizei n, GLenum type, const void *lists)
813 {
814 	fprintf( glw_state.log_fp, "glCallLists\n" );
815 	dllCallLists( n, type, lists );
816 }
817 
logClear(GLbitfield mask)818 static void APIENTRY logClear(GLbitfield mask)
819 {
820 	fprintf( glw_state.log_fp, "glClear\n" );
821 	dllClear( mask );
822 }
823 
logClearAccum(GLfloat red,GLfloat green,GLfloat blue,GLfloat alpha)824 static void APIENTRY logClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
825 {
826 	fprintf( glw_state.log_fp, "glClearAccum\n" );
827 	dllClearAccum( red, green, blue, alpha );
828 }
829 
logClearColor(GLclampf red,GLclampf green,GLclampf blue,GLclampf alpha)830 static void APIENTRY logClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
831 {
832 	fprintf( glw_state.log_fp, "glClearColor\n" );
833 	dllClearColor( red, green, blue, alpha );
834 }
835 
logClearDepth(GLclampd depth)836 static void APIENTRY logClearDepth(GLclampd depth)
837 {
838 	fprintf( glw_state.log_fp, "glClearDepth\n" );
839 	dllClearDepth( depth );
840 }
841 
logClearIndex(GLfloat c)842 static void APIENTRY logClearIndex(GLfloat c)
843 {
844 	fprintf( glw_state.log_fp, "glClearIndex\n" );
845 	dllClearIndex( c );
846 }
847 
logClearStencil(GLint s)848 static void APIENTRY logClearStencil(GLint s)
849 {
850 	fprintf( glw_state.log_fp, "glClearStencil\n" );
851 	dllClearStencil( s );
852 }
853 
logClipPlane(GLenum plane,const GLdouble * equation)854 static void APIENTRY logClipPlane(GLenum plane, const GLdouble *equation)
855 {
856 	fprintf( glw_state.log_fp, "glClipPlane\n" );
857 	dllClipPlane( plane, equation );
858 }
859 
logColor3b(GLbyte red,GLbyte green,GLbyte blue)860 static void APIENTRY logColor3b(GLbyte red, GLbyte green, GLbyte blue)
861 {
862 	fprintf( glw_state.log_fp, "glColor3b\n" );
863 	dllColor3b( red, green, blue );
864 }
865 
logColor3bv(const GLbyte * v)866 static void APIENTRY logColor3bv(const GLbyte *v)
867 {
868 	fprintf( glw_state.log_fp, "glColor3bv\n" );
869 	dllColor3bv( v );
870 }
871 
logColor3d(GLdouble red,GLdouble green,GLdouble blue)872 static void APIENTRY logColor3d(GLdouble red, GLdouble green, GLdouble blue)
873 {
874 	fprintf( glw_state.log_fp, "glColor3d\n" );
875 	dllColor3d( red, green, blue );
876 }
877 
logColor3dv(const GLdouble * v)878 static void APIENTRY logColor3dv(const GLdouble *v)
879 {
880 	fprintf( glw_state.log_fp, "glColor3dv\n" );
881 	dllColor3dv( v );
882 }
883 
logColor3f(GLfloat red,GLfloat green,GLfloat blue)884 static void APIENTRY logColor3f(GLfloat red, GLfloat green, GLfloat blue)
885 {
886 	fprintf( glw_state.log_fp, "glColor3f\n" );
887 	dllColor3f( red, green, blue );
888 }
889 
logColor3fv(const GLfloat * v)890 static void APIENTRY logColor3fv(const GLfloat *v)
891 {
892 	fprintf( glw_state.log_fp, "glColor3fv\n" );
893 	dllColor3fv( v );
894 }
895 
logColor3i(GLint red,GLint green,GLint blue)896 static void APIENTRY logColor3i(GLint red, GLint green, GLint blue)
897 {
898 	fprintf( glw_state.log_fp, "glColor3i\n" );
899 	dllColor3i( red, green, blue );
900 }
901 
logColor3iv(const GLint * v)902 static void APIENTRY logColor3iv(const GLint *v)
903 {
904 	fprintf( glw_state.log_fp, "glColor3iv\n" );
905 	dllColor3iv( v );
906 }
907 
logColor3s(GLshort red,GLshort green,GLshort blue)908 static void APIENTRY logColor3s(GLshort red, GLshort green, GLshort blue)
909 {
910 	fprintf( glw_state.log_fp, "glColor3s\n" );
911 	dllColor3s( red, green, blue );
912 }
913 
logColor3sv(const GLshort * v)914 static void APIENTRY logColor3sv(const GLshort *v)
915 {
916 	fprintf( glw_state.log_fp, "glColor3sv\n" );
917 	dllColor3sv( v );
918 }
919 
logColor3ub(GLubyte red,GLubyte green,GLubyte blue)920 static void APIENTRY logColor3ub(GLubyte red, GLubyte green, GLubyte blue)
921 {
922 	fprintf( glw_state.log_fp, "glColor3ub\n" );
923 	dllColor3ub( red, green, blue );
924 }
925 
logColor3ubv(const GLubyte * v)926 static void APIENTRY logColor3ubv(const GLubyte *v)
927 {
928 	fprintf( glw_state.log_fp, "glColor3ubv\n" );
929 	dllColor3ubv( v );
930 }
931 
932 #define SIG( x ) fprintf( glw_state.log_fp, x "\n" )
933 
logColor3ui(GLuint red,GLuint green,GLuint blue)934 static void APIENTRY logColor3ui(GLuint red, GLuint green, GLuint blue)
935 {
936 	SIG( "glColor3ui" );
937 	dllColor3ui( red, green, blue );
938 }
939 
logColor3uiv(const GLuint * v)940 static void APIENTRY logColor3uiv(const GLuint *v)
941 {
942 	SIG( "glColor3uiv" );
943 	dllColor3uiv( v );
944 }
945 
logColor3us(GLushort red,GLushort green,GLushort blue)946 static void APIENTRY logColor3us(GLushort red, GLushort green, GLushort blue)
947 {
948 	SIG( "glColor3us" );
949 	dllColor3us( red, green, blue );
950 }
951 
logColor3usv(const GLushort * v)952 static void APIENTRY logColor3usv(const GLushort *v)
953 {
954 	SIG( "glColor3usv" );
955 	dllColor3usv( v );
956 }
957 
logColor4b(GLbyte red,GLbyte green,GLbyte blue,GLbyte alpha)958 static void APIENTRY logColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
959 {
960 	SIG( "glColor4b" );
961 	dllColor4b( red, green, blue, alpha );
962 }
963 
logColor4bv(const GLbyte * v)964 static void APIENTRY logColor4bv(const GLbyte *v)
965 {
966 	SIG( "glColor4bv" );
967 	dllColor4bv( v );
968 }
969 
logColor4d(GLdouble red,GLdouble green,GLdouble blue,GLdouble alpha)970 static void APIENTRY logColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
971 {
972 	SIG( "glColor4d" );
973 	dllColor4d( red, green, blue, alpha );
974 }
logColor4dv(const GLdouble * v)975 static void APIENTRY logColor4dv(const GLdouble *v)
976 {
977 	SIG( "glColor4dv" );
978 	dllColor4dv( v );
979 }
logColor4f(GLfloat red,GLfloat green,GLfloat blue,GLfloat alpha)980 static void APIENTRY logColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
981 {
982 	fprintf( glw_state.log_fp, "glColor4f( %f,%f,%f,%f )\n", red, green, blue, alpha );
983 	dllColor4f( red, green, blue, alpha );
984 }
logColor4fv(const GLfloat * v)985 static void APIENTRY logColor4fv(const GLfloat *v)
986 {
987 	fprintf( glw_state.log_fp, "glColor4fv( %f,%f,%f,%f )\n", v[0], v[1], v[2], v[3] );
988 	dllColor4fv( v );
989 }
logColor4i(GLint red,GLint green,GLint blue,GLint alpha)990 static void APIENTRY logColor4i(GLint red, GLint green, GLint blue, GLint alpha)
991 {
992 	SIG( "glColor4i" );
993 	dllColor4i( red, green, blue, alpha );
994 }
logColor4iv(const GLint * v)995 static void APIENTRY logColor4iv(const GLint *v)
996 {
997 	SIG( "glColor4iv" );
998 	dllColor4iv( v );
999 }
logColor4s(GLshort red,GLshort green,GLshort blue,GLshort alpha)1000 static void APIENTRY logColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
1001 {
1002 	SIG( "glColor4s" );
1003 	dllColor4s( red, green, blue, alpha );
1004 }
logColor4sv(const GLshort * v)1005 static void APIENTRY logColor4sv(const GLshort *v)
1006 {
1007 	SIG( "glColor4sv" );
1008 	dllColor4sv( v );
1009 }
logColor4ub(GLubyte red,GLubyte green,GLubyte blue,GLubyte alpha)1010 static void APIENTRY logColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
1011 {
1012 	SIG( "glColor4b" );
1013 	dllColor4b( red, green, blue, alpha );
1014 }
logColor4ubv(const GLubyte * v)1015 static void APIENTRY logColor4ubv(const GLubyte *v)
1016 {
1017 	SIG( "glColor4ubv" );
1018 	dllColor4ubv( v );
1019 }
logColor4ui(GLuint red,GLuint green,GLuint blue,GLuint alpha)1020 static void APIENTRY logColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
1021 {
1022 	SIG( "glColor4ui" );
1023 	dllColor4ui( red, green, blue, alpha );
1024 }
logColor4uiv(const GLuint * v)1025 static void APIENTRY logColor4uiv(const GLuint *v)
1026 {
1027 	SIG( "glColor4uiv" );
1028 	dllColor4uiv( v );
1029 }
logColor4us(GLushort red,GLushort green,GLushort blue,GLushort alpha)1030 static void APIENTRY logColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
1031 {
1032 	SIG( "glColor4us" );
1033 	dllColor4us( red, green, blue, alpha );
1034 }
logColor4usv(const GLushort * v)1035 static void APIENTRY logColor4usv(const GLushort *v)
1036 {
1037 	SIG( "glColor4usv" );
1038 	dllColor4usv( v );
1039 }
logColorMask(GLboolean red,GLboolean green,GLboolean blue,GLboolean alpha)1040 static void APIENTRY logColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
1041 {
1042 	SIG( "glColorMask" );
1043 	dllColorMask( red, green, blue, alpha );
1044 }
logColorMaterial(GLenum face,GLenum mode)1045 static void APIENTRY logColorMaterial(GLenum face, GLenum mode)
1046 {
1047 	SIG( "glColorMaterial" );
1048 	dllColorMaterial( face, mode );
1049 }
1050 
logColorPointer(GLint size,GLenum type,GLsizei stride,const void * pointer)1051 static void APIENTRY logColorPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
1052 {
1053 	SIG( "glColorPointer" );
1054 	dllColorPointer( size, type, stride, pointer );
1055 }
1056 
logCopyPixels(GLint x,GLint y,GLsizei width,GLsizei height,GLenum type)1057 static void APIENTRY logCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
1058 {
1059 	SIG( "glCopyPixels" );
1060 	dllCopyPixels( x, y, width, height, type );
1061 }
1062 
logCopyTexImage1D(GLenum target,GLint level,GLenum internalFormat,GLint x,GLint y,GLsizei width,GLint border)1063 static void APIENTRY logCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
1064 {
1065 	SIG( "glCopyTexImage1D" );
1066 	dllCopyTexImage1D( target, level, internalFormat, x, y, width, border );
1067 }
1068 
logCopyTexImage2D(GLenum target,GLint level,GLenum internalFormat,GLint x,GLint y,GLsizei width,GLsizei height,GLint border)1069 static void APIENTRY logCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
1070 {
1071 	SIG( "glCopyTexImage2D" );
1072 	dllCopyTexImage2D( target, level, internalFormat, x, y, width, height, border );
1073 }
1074 
logCopyTexSubImage1D(GLenum target,GLint level,GLint xoffset,GLint x,GLint y,GLsizei width)1075 static void APIENTRY logCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
1076 {
1077 	SIG( "glCopyTexSubImage1D" );
1078 	dllCopyTexSubImage1D( target, level, xoffset, x, y, width );
1079 }
1080 
logCopyTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint x,GLint y,GLsizei width,GLsizei height)1081 static void APIENTRY logCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
1082 {
1083 	SIG( "glCopyTexSubImage2D" );
1084 	dllCopyTexSubImage2D( target, level, xoffset, yoffset, x, y, width, height );
1085 }
1086 
logCullFace(GLenum mode)1087 static void APIENTRY logCullFace(GLenum mode)
1088 {
1089 	SIG( "glCullFace" );
1090 	dllCullFace( mode );
1091 }
1092 
logDeleteLists(GLuint list,GLsizei range)1093 static void APIENTRY logDeleteLists(GLuint list, GLsizei range)
1094 {
1095 	SIG( "glDeleteLists" );
1096 	dllDeleteLists( list, range );
1097 }
1098 
logDeleteTextures(GLsizei n,const GLuint * textures)1099 static void APIENTRY logDeleteTextures(GLsizei n, const GLuint *textures)
1100 {
1101 	SIG( "glDeleteTextures" );
1102 	dllDeleteTextures( n, textures );
1103 }
1104 
logDepthFunc(GLenum func)1105 static void APIENTRY logDepthFunc(GLenum func)
1106 {
1107 	SIG( "glDepthFunc" );
1108 	dllDepthFunc( func );
1109 }
1110 
logDepthMask(GLboolean flag)1111 static void APIENTRY logDepthMask(GLboolean flag)
1112 {
1113 	SIG( "glDepthMask" );
1114 	dllDepthMask( flag );
1115 }
1116 
logDepthRange(GLclampd zNear,GLclampd zFar)1117 static void APIENTRY logDepthRange(GLclampd zNear, GLclampd zFar)
1118 {
1119 	SIG( "glDepthRange" );
1120 	dllDepthRange( zNear, zFar );
1121 }
1122 
logDisable(GLenum cap)1123 static void APIENTRY logDisable(GLenum cap)
1124 {
1125 	fprintf( glw_state.log_fp, "glDisable( 0x%x )\n", cap );
1126 	dllDisable( cap );
1127 }
1128 
logDisableClientState(GLenum array)1129 static void APIENTRY logDisableClientState(GLenum array)
1130 {
1131 	SIG( "glDisableClientState" );
1132 	dllDisableClientState( array );
1133 }
1134 
logDrawArrays(GLenum mode,GLint first,GLsizei count)1135 static void APIENTRY logDrawArrays(GLenum mode, GLint first, GLsizei count)
1136 {
1137 	SIG( "glDrawArrays" );
1138 	dllDrawArrays( mode, first, count );
1139 }
1140 
logDrawBuffer(GLenum mode)1141 static void APIENTRY logDrawBuffer(GLenum mode)
1142 {
1143 	SIG( "glDrawBuffer" );
1144 	dllDrawBuffer( mode );
1145 }
1146 
logDrawElements(GLenum mode,GLsizei count,GLenum type,const void * indices)1147 static void APIENTRY logDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices)
1148 {
1149 	SIG( "glDrawElements" );
1150 	dllDrawElements( mode, count, type, indices );
1151 }
1152 
logDrawPixels(GLsizei width,GLsizei height,GLenum format,GLenum type,const void * pixels)1153 static void APIENTRY logDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
1154 {
1155 	SIG( "glDrawPixels" );
1156 	dllDrawPixels( width, height, format, type, pixels );
1157 }
1158 
logEdgeFlag(GLboolean flag)1159 static void APIENTRY logEdgeFlag(GLboolean flag)
1160 {
1161 	SIG( "glEdgeFlag" );
1162 	dllEdgeFlag( flag );
1163 }
1164 
logEdgeFlagPointer(GLsizei stride,const void * pointer)1165 static void APIENTRY logEdgeFlagPointer(GLsizei stride, const void *pointer)
1166 {
1167 	SIG( "glEdgeFlagPointer" );
1168 	dllEdgeFlagPointer( stride, pointer );
1169 }
1170 
logEdgeFlagv(const GLboolean * flag)1171 static void APIENTRY logEdgeFlagv(const GLboolean *flag)
1172 {
1173 	SIG( "glEdgeFlagv" );
1174 	dllEdgeFlagv( flag );
1175 }
1176 
logEnable(GLenum cap)1177 static void APIENTRY logEnable(GLenum cap)
1178 {
1179 	fprintf( glw_state.log_fp, "glEnable( 0x%x )\n", cap );
1180 	dllEnable( cap );
1181 }
1182 
logEnableClientState(GLenum array)1183 static void APIENTRY logEnableClientState(GLenum array)
1184 {
1185 	SIG( "glEnableClientState" );
1186 	dllEnableClientState( array );
1187 }
1188 
logEnd(void)1189 static void APIENTRY logEnd(void)
1190 {
1191 	SIG( "glEnd" );
1192 	dllEnd();
1193 }
1194 
logEndList(void)1195 static void APIENTRY logEndList(void)
1196 {
1197 	SIG( "glEndList" );
1198 	dllEndList();
1199 }
1200 
logEvalCoord1d(GLdouble u)1201 static void APIENTRY logEvalCoord1d(GLdouble u)
1202 {
1203 	SIG( "glEvalCoord1d" );
1204 	dllEvalCoord1d( u );
1205 }
1206 
logEvalCoord1dv(const GLdouble * u)1207 static void APIENTRY logEvalCoord1dv(const GLdouble *u)
1208 {
1209 	SIG( "glEvalCoord1dv" );
1210 	dllEvalCoord1dv( u );
1211 }
1212 
logEvalCoord1f(GLfloat u)1213 static void APIENTRY logEvalCoord1f(GLfloat u)
1214 {
1215 	SIG( "glEvalCoord1f" );
1216 	dllEvalCoord1f( u );
1217 }
1218 
logEvalCoord1fv(const GLfloat * u)1219 static void APIENTRY logEvalCoord1fv(const GLfloat *u)
1220 {
1221 	SIG( "glEvalCoord1fv" );
1222 	dllEvalCoord1fv( u );
1223 }
logEvalCoord2d(GLdouble u,GLdouble v)1224 static void APIENTRY logEvalCoord2d(GLdouble u, GLdouble v)
1225 {
1226 	SIG( "glEvalCoord2d" );
1227 	dllEvalCoord2d( u, v );
1228 }
logEvalCoord2dv(const GLdouble * u)1229 static void APIENTRY logEvalCoord2dv(const GLdouble *u)
1230 {
1231 	SIG( "glEvalCoord2dv" );
1232 	dllEvalCoord2dv( u );
1233 }
logEvalCoord2f(GLfloat u,GLfloat v)1234 static void APIENTRY logEvalCoord2f(GLfloat u, GLfloat v)
1235 {
1236 	SIG( "glEvalCoord2f" );
1237 	dllEvalCoord2f( u, v );
1238 }
logEvalCoord2fv(const GLfloat * u)1239 static void APIENTRY logEvalCoord2fv(const GLfloat *u)
1240 {
1241 	SIG( "glEvalCoord2fv" );
1242 	dllEvalCoord2fv( u );
1243 }
1244 
logEvalMesh1(GLenum mode,GLint i1,GLint i2)1245 static void APIENTRY logEvalMesh1(GLenum mode, GLint i1, GLint i2)
1246 {
1247 	SIG( "glEvalMesh1" );
1248 	dllEvalMesh1( mode, i1, i2 );
1249 }
logEvalMesh2(GLenum mode,GLint i1,GLint i2,GLint j1,GLint j2)1250 static void APIENTRY logEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
1251 {
1252 	SIG( "glEvalMesh2" );
1253 	dllEvalMesh2( mode, i1, i2, j1, j2 );
1254 }
logEvalPoint1(GLint i)1255 static void APIENTRY logEvalPoint1(GLint i)
1256 {
1257 	SIG( "glEvalPoint1" );
1258 	dllEvalPoint1( i );
1259 }
logEvalPoint2(GLint i,GLint j)1260 static void APIENTRY logEvalPoint2(GLint i, GLint j)
1261 {
1262 	SIG( "glEvalPoint2" );
1263 	dllEvalPoint2( i, j );
1264 }
1265 
logFeedbackBuffer(GLsizei size,GLenum type,GLfloat * buffer)1266 static void APIENTRY logFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
1267 {
1268 	SIG( "glFeedbackBuffer" );
1269 	dllFeedbackBuffer( size, type, buffer );
1270 }
1271 
logFinish(void)1272 static void APIENTRY logFinish(void)
1273 {
1274 	SIG( "glFinish" );
1275 	dllFinish();
1276 }
1277 
logFlush(void)1278 static void APIENTRY logFlush(void)
1279 {
1280 	SIG( "glFlush" );
1281 	dllFlush();
1282 }
1283 
logFogf(GLenum pname,GLfloat param)1284 static void APIENTRY logFogf(GLenum pname, GLfloat param)
1285 {
1286 	SIG( "glFogf" );
1287 	dllFogf( pname, param );
1288 }
1289 
logFogfv(GLenum pname,const GLfloat * params)1290 static void APIENTRY logFogfv(GLenum pname, const GLfloat *params)
1291 {
1292 	SIG( "glFogfv" );
1293 	dllFogfv( pname, params );
1294 }
1295 
logFogi(GLenum pname,GLint param)1296 static void APIENTRY logFogi(GLenum pname, GLint param)
1297 {
1298 	SIG( "glFogi" );
1299 	dllFogi( pname, param );
1300 }
1301 
logFogiv(GLenum pname,const GLint * params)1302 static void APIENTRY logFogiv(GLenum pname, const GLint *params)
1303 {
1304 	SIG( "glFogiv" );
1305 	dllFogiv( pname, params );
1306 }
1307 
logFrontFace(GLenum mode)1308 static void APIENTRY logFrontFace(GLenum mode)
1309 {
1310 	SIG( "glFrontFace" );
1311 	dllFrontFace( mode );
1312 }
1313 
logFrustum(GLdouble left,GLdouble right,GLdouble bottom,GLdouble top,GLdouble zNear,GLdouble zFar)1314 static void APIENTRY logFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
1315 {
1316 	SIG( "glFrustum" );
1317 	dllFrustum( left, right, bottom, top, zNear, zFar );
1318 }
1319 
logGenLists(GLsizei range)1320 static GLuint APIENTRY logGenLists(GLsizei range)
1321 {
1322 	SIG( "glGenLists" );
1323 	return dllGenLists( range );
1324 }
1325 
logGenTextures(GLsizei n,GLuint * textures)1326 static void APIENTRY logGenTextures(GLsizei n, GLuint *textures)
1327 {
1328 	SIG( "glGenTextures" );
1329 	dllGenTextures( n, textures );
1330 }
1331 
logGetBooleanv(GLenum pname,GLboolean * params)1332 static void APIENTRY logGetBooleanv(GLenum pname, GLboolean *params)
1333 {
1334 	SIG( "glGetBooleanv" );
1335 	dllGetBooleanv( pname, params );
1336 }
1337 
logGetClipPlane(GLenum plane,GLdouble * equation)1338 static void APIENTRY logGetClipPlane(GLenum plane, GLdouble *equation)
1339 {
1340 	SIG( "glGetClipPlane" );
1341 	dllGetClipPlane( plane, equation );
1342 }
1343 
logGetDoublev(GLenum pname,GLdouble * params)1344 static void APIENTRY logGetDoublev(GLenum pname, GLdouble *params)
1345 {
1346 	SIG( "glGetDoublev" );
1347 	dllGetDoublev( pname, params );
1348 }
1349 
logGetError(void)1350 static GLenum APIENTRY logGetError(void)
1351 {
1352 	SIG( "glGetError" );
1353 	return dllGetError();
1354 }
1355 
logGetFloatv(GLenum pname,GLfloat * params)1356 static void APIENTRY logGetFloatv(GLenum pname, GLfloat *params)
1357 {
1358 	SIG( "glGetFloatv" );
1359 	dllGetFloatv( pname, params );
1360 }
1361 
logGetIntegerv(GLenum pname,GLint * params)1362 static void APIENTRY logGetIntegerv(GLenum pname, GLint *params)
1363 {
1364 	SIG( "glGetIntegerv" );
1365 	dllGetIntegerv( pname, params );
1366 }
1367 
logGetLightfv(GLenum light,GLenum pname,GLfloat * params)1368 static void APIENTRY logGetLightfv(GLenum light, GLenum pname, GLfloat *params)
1369 {
1370 	SIG( "glGetLightfv" );
1371 	dllGetLightfv( light, pname, params );
1372 }
1373 
logGetLightiv(GLenum light,GLenum pname,GLint * params)1374 static void APIENTRY logGetLightiv(GLenum light, GLenum pname, GLint *params)
1375 {
1376 	SIG( "glGetLightiv" );
1377 	dllGetLightiv( light, pname, params );
1378 }
1379 
logGetMapdv(GLenum target,GLenum query,GLdouble * v)1380 static void APIENTRY logGetMapdv(GLenum target, GLenum query, GLdouble *v)
1381 {
1382 	SIG( "glGetMapdv" );
1383 	dllGetMapdv( target, query, v );
1384 }
1385 
logGetMapfv(GLenum target,GLenum query,GLfloat * v)1386 static void APIENTRY logGetMapfv(GLenum target, GLenum query, GLfloat *v)
1387 {
1388 	SIG( "glGetMapfv" );
1389 	dllGetMapfv( target, query, v );
1390 }
1391 
logGetMapiv(GLenum target,GLenum query,GLint * v)1392 static void APIENTRY logGetMapiv(GLenum target, GLenum query, GLint *v)
1393 {
1394 	SIG( "glGetMapiv" );
1395 	dllGetMapiv( target, query, v );
1396 }
1397 
logGetMaterialfv(GLenum face,GLenum pname,GLfloat * params)1398 static void APIENTRY logGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
1399 {
1400 	SIG( "glGetMaterialfv" );
1401 	dllGetMaterialfv( face, pname, params );
1402 }
1403 
logGetMaterialiv(GLenum face,GLenum pname,GLint * params)1404 static void APIENTRY logGetMaterialiv(GLenum face, GLenum pname, GLint *params)
1405 {
1406 	SIG( "glGetMaterialiv" );
1407 	dllGetMaterialiv( face, pname, params );
1408 }
1409 
logGetPixelMapfv(GLenum map,GLfloat * values)1410 static void APIENTRY logGetPixelMapfv(GLenum map, GLfloat *values)
1411 {
1412 	SIG( "glGetPixelMapfv" );
1413 	dllGetPixelMapfv( map, values );
1414 }
1415 
logGetPixelMapuiv(GLenum map,GLuint * values)1416 static void APIENTRY logGetPixelMapuiv(GLenum map, GLuint *values)
1417 {
1418 	SIG( "glGetPixelMapuiv" );
1419 	dllGetPixelMapuiv( map, values );
1420 }
1421 
logGetPixelMapusv(GLenum map,GLushort * values)1422 static void APIENTRY logGetPixelMapusv(GLenum map, GLushort *values)
1423 {
1424 	SIG( "glGetPixelMapusv" );
1425 	dllGetPixelMapusv( map, values );
1426 }
1427 
logGetPointerv(GLenum pname,GLvoid ** params)1428 static void APIENTRY logGetPointerv(GLenum pname, GLvoid* *params)
1429 {
1430 	SIG( "glGetPointerv" );
1431 	dllGetPointerv( pname, params );
1432 }
1433 
logGetPolygonStipple(GLubyte * mask)1434 static void APIENTRY logGetPolygonStipple(GLubyte *mask)
1435 {
1436 	SIG( "glGetPolygonStipple" );
1437 	dllGetPolygonStipple( mask );
1438 }
1439 
logGetString(GLenum name)1440 static const GLubyte * APIENTRY logGetString(GLenum name)
1441 {
1442 	SIG( "glGetString" );
1443 	return dllGetString( name );
1444 }
1445 
logGetTexEnvfv(GLenum target,GLenum pname,GLfloat * params)1446 static void APIENTRY logGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
1447 {
1448 	SIG( "glGetTexEnvfv" );
1449 	dllGetTexEnvfv( target, pname, params );
1450 }
1451 
logGetTexEnviv(GLenum target,GLenum pname,GLint * params)1452 static void APIENTRY logGetTexEnviv(GLenum target, GLenum pname, GLint *params)
1453 {
1454 	SIG( "glGetTexEnviv" );
1455 	dllGetTexEnviv( target, pname, params );
1456 }
1457 
logGetTexGendv(GLenum coord,GLenum pname,GLdouble * params)1458 static void APIENTRY logGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
1459 {
1460 	SIG( "glGetTexGendv" );
1461 	dllGetTexGendv( coord, pname, params );
1462 }
1463 
logGetTexGenfv(GLenum coord,GLenum pname,GLfloat * params)1464 static void APIENTRY logGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
1465 {
1466 	SIG( "glGetTexGenfv" );
1467 	dllGetTexGenfv( coord, pname, params );
1468 }
1469 
logGetTexGeniv(GLenum coord,GLenum pname,GLint * params)1470 static void APIENTRY logGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
1471 {
1472 	SIG( "glGetTexGeniv" );
1473 	dllGetTexGeniv( coord, pname, params );
1474 }
1475 
logGetTexImage(GLenum target,GLint level,GLenum format,GLenum type,void * pixels)1476 static void APIENTRY logGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels)
1477 {
1478 	SIG( "glGetTexImage" );
1479 	dllGetTexImage( target, level, format, type, pixels );
1480 }
logGetTexLevelParameterfv(GLenum target,GLint level,GLenum pname,GLfloat * params)1481 static void APIENTRY logGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params )
1482 {
1483 	SIG( "glGetTexLevelParameterfv" );
1484 	dllGetTexLevelParameterfv( target, level, pname, params );
1485 }
1486 
logGetTexLevelParameteriv(GLenum target,GLint level,GLenum pname,GLint * params)1487 static void APIENTRY logGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
1488 {
1489 	SIG( "glGetTexLevelParameteriv" );
1490 	dllGetTexLevelParameteriv( target, level, pname, params );
1491 }
1492 
logGetTexParameterfv(GLenum target,GLenum pname,GLfloat * params)1493 static void APIENTRY logGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
1494 {
1495 	SIG( "glGetTexParameterfv" );
1496 	dllGetTexParameterfv( target, pname, params );
1497 }
1498 
logGetTexParameteriv(GLenum target,GLenum pname,GLint * params)1499 static void APIENTRY logGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
1500 {
1501 	SIG( "glGetTexParameteriv" );
1502 	dllGetTexParameteriv( target, pname, params );
1503 }
1504 
logHint(GLenum target,GLenum mode)1505 static void APIENTRY logHint(GLenum target, GLenum mode)
1506 {
1507 	fprintf( glw_state.log_fp, "glHint( 0x%x, 0x%x )\n", target, mode );
1508 	dllHint( target, mode );
1509 }
1510 
logIndexMask(GLuint mask)1511 static void APIENTRY logIndexMask(GLuint mask)
1512 {
1513 	SIG( "glIndexMask" );
1514 	dllIndexMask( mask );
1515 }
1516 
logIndexPointer(GLenum type,GLsizei stride,const void * pointer)1517 static void APIENTRY logIndexPointer(GLenum type, GLsizei stride, const void *pointer)
1518 {
1519 	SIG( "glIndexPointer" );
1520 	dllIndexPointer( type, stride, pointer );
1521 }
1522 
logIndexd(GLdouble c)1523 static void APIENTRY logIndexd(GLdouble c)
1524 {
1525 	SIG( "glIndexd" );
1526 	dllIndexd( c );
1527 }
1528 
logIndexdv(const GLdouble * c)1529 static void APIENTRY logIndexdv(const GLdouble *c)
1530 {
1531 	SIG( "glIndexdv" );
1532 	dllIndexdv( c );
1533 }
1534 
logIndexf(GLfloat c)1535 static void APIENTRY logIndexf(GLfloat c)
1536 {
1537 	SIG( "glIndexf" );
1538 	dllIndexf( c );
1539 }
1540 
logIndexfv(const GLfloat * c)1541 static void APIENTRY logIndexfv(const GLfloat *c)
1542 {
1543 	SIG( "glIndexfv" );
1544 	dllIndexfv( c );
1545 }
1546 
logIndexi(GLint c)1547 static void APIENTRY logIndexi(GLint c)
1548 {
1549 	SIG( "glIndexi" );
1550 	dllIndexi( c );
1551 }
1552 
logIndexiv(const GLint * c)1553 static void APIENTRY logIndexiv(const GLint *c)
1554 {
1555 	SIG( "glIndexiv" );
1556 	dllIndexiv( c );
1557 }
1558 
logIndexs(GLshort c)1559 static void APIENTRY logIndexs(GLshort c)
1560 {
1561 	SIG( "glIndexs" );
1562 	dllIndexs( c );
1563 }
1564 
logIndexsv(const GLshort * c)1565 static void APIENTRY logIndexsv(const GLshort *c)
1566 {
1567 	SIG( "glIndexsv" );
1568 	dllIndexsv( c );
1569 }
1570 
logIndexub(GLubyte c)1571 static void APIENTRY logIndexub(GLubyte c)
1572 {
1573 	SIG( "glIndexub" );
1574 	dllIndexub( c );
1575 }
1576 
logIndexubv(const GLubyte * c)1577 static void APIENTRY logIndexubv(const GLubyte *c)
1578 {
1579 	SIG( "glIndexubv" );
1580 	dllIndexubv( c );
1581 }
1582 
logInitNames(void)1583 static void APIENTRY logInitNames(void)
1584 {
1585 	SIG( "glInitNames" );
1586 	dllInitNames();
1587 }
1588 
logInterleavedArrays(GLenum format,GLsizei stride,const void * pointer)1589 static void APIENTRY logInterleavedArrays(GLenum format, GLsizei stride, const void *pointer)
1590 {
1591 	SIG( "glInterleavedArrays" );
1592 	dllInterleavedArrays( format, stride, pointer );
1593 }
1594 
logIsEnabled(GLenum cap)1595 static GLboolean APIENTRY logIsEnabled(GLenum cap)
1596 {
1597 	SIG( "glIsEnabled" );
1598 	return dllIsEnabled( cap );
1599 }
logIsList(GLuint list)1600 static GLboolean APIENTRY logIsList(GLuint list)
1601 {
1602 	SIG( "glIsList" );
1603 	return dllIsList( list );
1604 }
logIsTexture(GLuint texture)1605 static GLboolean APIENTRY logIsTexture(GLuint texture)
1606 {
1607 	SIG( "glIsTexture" );
1608 	return dllIsTexture( texture );
1609 }
1610 
logLightModelf(GLenum pname,GLfloat param)1611 static void APIENTRY logLightModelf(GLenum pname, GLfloat param)
1612 {
1613 	SIG( "glLightModelf" );
1614 	dllLightModelf( pname, param );
1615 }
1616 
logLightModelfv(GLenum pname,const GLfloat * params)1617 static void APIENTRY logLightModelfv(GLenum pname, const GLfloat *params)
1618 {
1619 	SIG( "glLightModelfv" );
1620 	dllLightModelfv( pname, params );
1621 }
1622 
logLightModeli(GLenum pname,GLint param)1623 static void APIENTRY logLightModeli(GLenum pname, GLint param)
1624 {
1625 	SIG( "glLightModeli" );
1626 	dllLightModeli( pname, param );
1627 
1628 }
1629 
logLightModeliv(GLenum pname,const GLint * params)1630 static void APIENTRY logLightModeliv(GLenum pname, const GLint *params)
1631 {
1632 	SIG( "glLightModeliv" );
1633 	dllLightModeliv( pname, params );
1634 }
1635 
logLightf(GLenum light,GLenum pname,GLfloat param)1636 static void APIENTRY logLightf(GLenum light, GLenum pname, GLfloat param)
1637 {
1638 	SIG( "glLightf" );
1639 	dllLightf( light, pname, param );
1640 }
1641 
logLightfv(GLenum light,GLenum pname,const GLfloat * params)1642 static void APIENTRY logLightfv(GLenum light, GLenum pname, const GLfloat *params)
1643 {
1644 	SIG( "glLightfv" );
1645 	dllLightfv( light, pname, params );
1646 }
1647 
logLighti(GLenum light,GLenum pname,GLint param)1648 static void APIENTRY logLighti(GLenum light, GLenum pname, GLint param)
1649 {
1650 	SIG( "glLighti" );
1651 	dllLighti( light, pname, param );
1652 }
1653 
logLightiv(GLenum light,GLenum pname,const GLint * params)1654 static void APIENTRY logLightiv(GLenum light, GLenum pname, const GLint *params)
1655 {
1656 	SIG( "glLightiv" );
1657 	dllLightiv( light, pname, params );
1658 }
1659 
logLineStipple(GLint factor,GLushort pattern)1660 static void APIENTRY logLineStipple(GLint factor, GLushort pattern)
1661 {
1662 	SIG( "glLineStipple" );
1663 	dllLineStipple( factor, pattern );
1664 }
1665 
logLineWidth(GLfloat width)1666 static void APIENTRY logLineWidth(GLfloat width)
1667 {
1668 	SIG( "glLineWidth" );
1669 	dllLineWidth( width );
1670 }
1671 
logListBase(GLuint base)1672 static void APIENTRY logListBase(GLuint base)
1673 {
1674 	SIG( "glListBase" );
1675 	dllListBase( base );
1676 }
1677 
logLoadIdentity(void)1678 static void APIENTRY logLoadIdentity(void)
1679 {
1680 	SIG( "glLoadIdentity" );
1681 	dllLoadIdentity();
1682 }
1683 
logLoadMatrixd(const GLdouble * m)1684 static void APIENTRY logLoadMatrixd(const GLdouble *m)
1685 {
1686 	SIG( "glLoadMatrixd" );
1687 	dllLoadMatrixd( m );
1688 }
1689 
logLoadMatrixf(const GLfloat * m)1690 static void APIENTRY logLoadMatrixf(const GLfloat *m)
1691 {
1692 	SIG( "glLoadMatrixf" );
1693 	dllLoadMatrixf( m );
1694 }
1695 
logLoadName(GLuint name)1696 static void APIENTRY logLoadName(GLuint name)
1697 {
1698 	SIG( "glLoadName" );
1699 	dllLoadName( name );
1700 }
1701 
logLogicOp(GLenum opcode)1702 static void APIENTRY logLogicOp(GLenum opcode)
1703 {
1704 	SIG( "glLogicOp" );
1705 	dllLogicOp( opcode );
1706 }
1707 
logMap1d(GLenum target,GLdouble u1,GLdouble u2,GLint stride,GLint order,const GLdouble * points)1708 static void APIENTRY logMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
1709 {
1710 	SIG( "glMap1d" );
1711 	dllMap1d( target, u1, u2, stride, order, points );
1712 }
1713 
logMap1f(GLenum target,GLfloat u1,GLfloat u2,GLint stride,GLint order,const GLfloat * points)1714 static void APIENTRY logMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
1715 {
1716 	SIG( "glMap1f" );
1717 	dllMap1f( target, u1, u2, stride, order, points );
1718 }
1719 
logMap2d(GLenum target,GLdouble u1,GLdouble u2,GLint ustride,GLint uorder,GLdouble v1,GLdouble v2,GLint vstride,GLint vorder,const GLdouble * points)1720 static void APIENTRY logMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
1721 {
1722 	SIG( "glMap2d" );
1723 	dllMap2d( target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points );
1724 }
1725 
logMap2f(GLenum target,GLfloat u1,GLfloat u2,GLint ustride,GLint uorder,GLfloat v1,GLfloat v2,GLint vstride,GLint vorder,const GLfloat * points)1726 static void APIENTRY logMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
1727 {
1728 	SIG( "glMap2f" );
1729 	dllMap2f( target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points );
1730 }
1731 
logMapGrid1d(GLint un,GLdouble u1,GLdouble u2)1732 static void APIENTRY logMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
1733 {
1734 	SIG( "glMapGrid1d" );
1735 	dllMapGrid1d( un, u1, u2 );
1736 }
1737 
logMapGrid1f(GLint un,GLfloat u1,GLfloat u2)1738 static void APIENTRY logMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
1739 {
1740 	SIG( "glMapGrid1f" );
1741 	dllMapGrid1f( un, u1, u2 );
1742 }
1743 
logMapGrid2d(GLint un,GLdouble u1,GLdouble u2,GLint vn,GLdouble v1,GLdouble v2)1744 static void APIENTRY logMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
1745 {
1746 	SIG( "glMapGrid2d" );
1747 	dllMapGrid2d( un, u1, u2, vn, v1, v2 );
1748 }
logMapGrid2f(GLint un,GLfloat u1,GLfloat u2,GLint vn,GLfloat v1,GLfloat v2)1749 static void APIENTRY logMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
1750 {
1751 	SIG( "glMapGrid2f" );
1752 	dllMapGrid2f( un, u1, u2, vn, v1, v2 );
1753 }
logMaterialf(GLenum face,GLenum pname,GLfloat param)1754 static void APIENTRY logMaterialf(GLenum face, GLenum pname, GLfloat param)
1755 {
1756 	SIG( "glMaterialf" );
1757 	dllMaterialf( face, pname, param );
1758 }
logMaterialfv(GLenum face,GLenum pname,const GLfloat * params)1759 static void APIENTRY logMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
1760 {
1761 	SIG( "glMaterialfv" );
1762 	dllMaterialfv( face, pname, params );
1763 }
1764 
logMateriali(GLenum face,GLenum pname,GLint param)1765 static void APIENTRY logMateriali(GLenum face, GLenum pname, GLint param)
1766 {
1767 	SIG( "glMateriali" );
1768 	dllMateriali( face, pname, param );
1769 }
1770 
logMaterialiv(GLenum face,GLenum pname,const GLint * params)1771 static void APIENTRY logMaterialiv(GLenum face, GLenum pname, const GLint *params)
1772 {
1773 	SIG( "glMaterialiv" );
1774 	dllMaterialiv( face, pname, params );
1775 }
1776 
logMatrixMode(GLenum mode)1777 static void APIENTRY logMatrixMode(GLenum mode)
1778 {
1779 	SIG( "glMatrixMode" );
1780 	dllMatrixMode( mode );
1781 }
1782 
logMultMatrixd(const GLdouble * m)1783 static void APIENTRY logMultMatrixd(const GLdouble *m)
1784 {
1785 	SIG( "glMultMatrixd" );
1786 	dllMultMatrixd( m );
1787 }
1788 
logMultMatrixf(const GLfloat * m)1789 static void APIENTRY logMultMatrixf(const GLfloat *m)
1790 {
1791 	SIG( "glMultMatrixf" );
1792 	dllMultMatrixf( m );
1793 }
1794 
logNewList(GLuint list,GLenum mode)1795 static void APIENTRY logNewList(GLuint list, GLenum mode)
1796 {
1797 	SIG( "glNewList" );
1798 	dllNewList( list, mode );
1799 }
1800 
logNormal3b(GLbyte nx,GLbyte ny,GLbyte nz)1801 static void APIENTRY logNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
1802 {
1803 	SIG ("glNormal3b" );
1804 	dllNormal3b( nx, ny, nz );
1805 }
1806 
logNormal3bv(const GLbyte * v)1807 static void APIENTRY logNormal3bv(const GLbyte *v)
1808 {
1809 	SIG( "glNormal3bv" );
1810 	dllNormal3bv( v );
1811 }
1812 
logNormal3d(GLdouble nx,GLdouble ny,GLdouble nz)1813 static void APIENTRY logNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
1814 {
1815 	SIG( "glNormal3d" );
1816 	dllNormal3d( nx, ny, nz );
1817 }
1818 
logNormal3dv(const GLdouble * v)1819 static void APIENTRY logNormal3dv(const GLdouble *v)
1820 {
1821 	SIG( "glNormal3dv" );
1822 	dllNormal3dv( v );
1823 }
1824 
logNormal3f(GLfloat nx,GLfloat ny,GLfloat nz)1825 static void APIENTRY logNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
1826 {
1827 	SIG( "glNormal3f" );
1828 	dllNormal3f( nx, ny, nz );
1829 }
1830 
logNormal3fv(const GLfloat * v)1831 static void APIENTRY logNormal3fv(const GLfloat *v)
1832 {
1833 	SIG( "glNormal3fv" );
1834 	dllNormal3fv( v );
1835 }
logNormal3i(GLint nx,GLint ny,GLint nz)1836 static void APIENTRY logNormal3i(GLint nx, GLint ny, GLint nz)
1837 {
1838 	SIG( "glNormal3i" );
1839 	dllNormal3i( nx, ny, nz );
1840 }
logNormal3iv(const GLint * v)1841 static void APIENTRY logNormal3iv(const GLint *v)
1842 {
1843 	SIG( "glNormal3iv" );
1844 	dllNormal3iv( v );
1845 }
logNormal3s(GLshort nx,GLshort ny,GLshort nz)1846 static void APIENTRY logNormal3s(GLshort nx, GLshort ny, GLshort nz)
1847 {
1848 	SIG( "glNormal3s" );
1849 	dllNormal3s( nx, ny, nz );
1850 }
logNormal3sv(const GLshort * v)1851 static void APIENTRY logNormal3sv(const GLshort *v)
1852 {
1853 	SIG( "glNormal3sv" );
1854 	dllNormal3sv( v );
1855 }
logNormalPointer(GLenum type,GLsizei stride,const void * pointer)1856 static void APIENTRY logNormalPointer(GLenum type, GLsizei stride, const void *pointer)
1857 {
1858 	SIG( "glNormalPointer" );
1859 	dllNormalPointer( type, stride, pointer );
1860 }
logOrtho(GLdouble left,GLdouble right,GLdouble bottom,GLdouble top,GLdouble zNear,GLdouble zFar)1861 static void APIENTRY logOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
1862 {
1863 	SIG( "glOrtho" );
1864 	dllOrtho( left, right, bottom, top, zNear, zFar );
1865 }
1866 
logPassThrough(GLfloat token)1867 static void APIENTRY logPassThrough(GLfloat token)
1868 {
1869 	SIG( "glPassThrough" );
1870 	dllPassThrough( token );
1871 }
1872 
logPixelMapfv(GLenum map,GLsizei mapsize,const GLfloat * values)1873 static void APIENTRY logPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
1874 {
1875 	SIG( "glPixelMapfv" );
1876 	dllPixelMapfv( map, mapsize, values );
1877 }
1878 
logPixelMapuiv(GLenum map,GLsizei mapsize,const GLuint * values)1879 static void APIENTRY logPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
1880 {
1881 	SIG( "glPixelMapuiv" );
1882 	dllPixelMapuiv( map, mapsize, values );
1883 }
1884 
logPixelMapusv(GLenum map,GLsizei mapsize,const GLushort * values)1885 static void APIENTRY logPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
1886 {
1887 	SIG( "glPixelMapusv" );
1888 	dllPixelMapusv( map, mapsize, values );
1889 }
logPixelStoref(GLenum pname,GLfloat param)1890 static void APIENTRY logPixelStoref(GLenum pname, GLfloat param)
1891 {
1892 	SIG( "glPixelStoref" );
1893 	dllPixelStoref( pname, param );
1894 }
logPixelStorei(GLenum pname,GLint param)1895 static void APIENTRY logPixelStorei(GLenum pname, GLint param)
1896 {
1897 	SIG( "glPixelStorei" );
1898 	dllPixelStorei( pname, param );
1899 }
logPixelTransferf(GLenum pname,GLfloat param)1900 static void APIENTRY logPixelTransferf(GLenum pname, GLfloat param)
1901 {
1902 	SIG( "glPixelTransferf" );
1903 	dllPixelTransferf( pname, param );
1904 }
1905 
logPixelTransferi(GLenum pname,GLint param)1906 static void APIENTRY logPixelTransferi(GLenum pname, GLint param)
1907 {
1908 	SIG( "glPixelTransferi" );
1909 	dllPixelTransferi( pname, param );
1910 }
1911 
logPixelZoom(GLfloat xfactor,GLfloat yfactor)1912 static void APIENTRY logPixelZoom(GLfloat xfactor, GLfloat yfactor)
1913 {
1914 	SIG( "glPixelZoom" );
1915 	dllPixelZoom( xfactor, yfactor );
1916 }
1917 
logPointSize(GLfloat size)1918 static void APIENTRY logPointSize(GLfloat size)
1919 {
1920 	SIG( "glPointSize" );
1921 	dllPointSize( size );
1922 }
1923 
logPolygonMode(GLenum face,GLenum mode)1924 static void APIENTRY logPolygonMode(GLenum face, GLenum mode)
1925 {
1926 	fprintf( glw_state.log_fp, "glPolygonMode( 0x%x, 0x%x )\n", face, mode );
1927 	dllPolygonMode( face, mode );
1928 }
1929 
logPolygonOffset(GLfloat factor,GLfloat units)1930 static void APIENTRY logPolygonOffset(GLfloat factor, GLfloat units)
1931 {
1932 	SIG( "glPolygonOffset" );
1933 	dllPolygonOffset( factor, units );
1934 }
logPolygonStipple(const GLubyte * mask)1935 static void APIENTRY logPolygonStipple(const GLubyte *mask )
1936 {
1937 	SIG( "glPolygonStipple" );
1938 	dllPolygonStipple( mask );
1939 }
logPopAttrib(void)1940 static void APIENTRY logPopAttrib(void)
1941 {
1942 	SIG( "glPopAttrib" );
1943 	dllPopAttrib();
1944 }
1945 
logPopClientAttrib(void)1946 static void APIENTRY logPopClientAttrib(void)
1947 {
1948 	SIG( "glPopClientAttrib" );
1949 	dllPopClientAttrib();
1950 }
1951 
logPopMatrix(void)1952 static void APIENTRY logPopMatrix(void)
1953 {
1954 	SIG( "glPopMatrix" );
1955 	dllPopMatrix();
1956 }
1957 
logPopName(void)1958 static void APIENTRY logPopName(void)
1959 {
1960 	SIG( "glPopName" );
1961 	dllPopName();
1962 }
1963 
logPrioritizeTextures(GLsizei n,const GLuint * textures,const GLclampf * priorities)1964 static void APIENTRY logPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
1965 {
1966 	SIG( "glPrioritizeTextures" );
1967 	dllPrioritizeTextures( n, textures, priorities );
1968 }
1969 
logPushAttrib(GLbitfield mask)1970 static void APIENTRY logPushAttrib(GLbitfield mask)
1971 {
1972 	SIG( "glPushAttrib" );
1973 	dllPushAttrib( mask );
1974 }
1975 
logPushClientAttrib(GLbitfield mask)1976 static void APIENTRY logPushClientAttrib(GLbitfield mask)
1977 {
1978 	SIG( "glPushClientAttrib" );
1979 	dllPushClientAttrib( mask );
1980 }
1981 
logPushMatrix(void)1982 static void APIENTRY logPushMatrix(void)
1983 {
1984 	SIG( "glPushMatrix" );
1985 	dllPushMatrix();
1986 }
1987 
logPushName(GLuint name)1988 static void APIENTRY logPushName(GLuint name)
1989 {
1990 	SIG( "glPushName" );
1991 	dllPushName( name );
1992 }
1993 
logRasterPos2d(GLdouble x,GLdouble y)1994 static void APIENTRY logRasterPos2d(GLdouble x, GLdouble y)
1995 {
1996 	SIG ("glRasterPot2d" );
1997 	dllRasterPos2d( x, y );
1998 }
1999 
logRasterPos2dv(const GLdouble * v)2000 static void APIENTRY logRasterPos2dv(const GLdouble *v)
2001 {
2002 	SIG( "glRasterPos2dv" );
2003 	dllRasterPos2dv( v );
2004 }
2005 
logRasterPos2f(GLfloat x,GLfloat y)2006 static void APIENTRY logRasterPos2f(GLfloat x, GLfloat y)
2007 {
2008 	SIG( "glRasterPos2f" );
2009 	dllRasterPos2f( x, y );
2010 }
logRasterPos2fv(const GLfloat * v)2011 static void APIENTRY logRasterPos2fv(const GLfloat *v)
2012 {
2013 	SIG( "glRasterPos2dv" );
2014 	dllRasterPos2fv( v );
2015 }
logRasterPos2i(GLint x,GLint y)2016 static void APIENTRY logRasterPos2i(GLint x, GLint y)
2017 {
2018 	SIG( "glRasterPos2if" );
2019 	dllRasterPos2i( x, y );
2020 }
logRasterPos2iv(const GLint * v)2021 static void APIENTRY logRasterPos2iv(const GLint *v)
2022 {
2023 	SIG( "glRasterPos2iv" );
2024 	dllRasterPos2iv( v );
2025 }
logRasterPos2s(GLshort x,GLshort y)2026 static void APIENTRY logRasterPos2s(GLshort x, GLshort y)
2027 {
2028 	SIG( "glRasterPos2s" );
2029 	dllRasterPos2s( x, y );
2030 }
logRasterPos2sv(const GLshort * v)2031 static void APIENTRY logRasterPos2sv(const GLshort *v)
2032 {
2033 	SIG( "glRasterPos2sv" );
2034 	dllRasterPos2sv( v );
2035 }
logRasterPos3d(GLdouble x,GLdouble y,GLdouble z)2036 static void APIENTRY logRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
2037 {
2038 	SIG( "glRasterPos3d" );
2039 	dllRasterPos3d( x, y, z );
2040 }
logRasterPos3dv(const GLdouble * v)2041 static void APIENTRY logRasterPos3dv(const GLdouble *v)
2042 {
2043 	SIG( "glRasterPos3dv" );
2044 	dllRasterPos3dv( v );
2045 }
logRasterPos3f(GLfloat x,GLfloat y,GLfloat z)2046 static void APIENTRY logRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
2047 {
2048 	SIG( "glRasterPos3f" );
2049 	dllRasterPos3f( x, y, z );
2050 }
logRasterPos3fv(const GLfloat * v)2051 static void APIENTRY logRasterPos3fv(const GLfloat *v)
2052 {
2053 	SIG( "glRasterPos3fv" );
2054 	dllRasterPos3fv( v );
2055 }
logRasterPos3i(GLint x,GLint y,GLint z)2056 static void APIENTRY logRasterPos3i(GLint x, GLint y, GLint z)
2057 {
2058 	SIG( "glRasterPos3i" );
2059 	dllRasterPos3i( x, y, z );
2060 }
logRasterPos3iv(const GLint * v)2061 static void APIENTRY logRasterPos3iv(const GLint *v)
2062 {
2063 	SIG( "glRasterPos3iv" );
2064 	dllRasterPos3iv( v );
2065 }
logRasterPos3s(GLshort x,GLshort y,GLshort z)2066 static void APIENTRY logRasterPos3s(GLshort x, GLshort y, GLshort z)
2067 {
2068 	SIG( "glRasterPos3s" );
2069 	dllRasterPos3s( x, y, z );
2070 }
logRasterPos3sv(const GLshort * v)2071 static void APIENTRY logRasterPos3sv(const GLshort *v)
2072 {
2073 	SIG( "glRasterPos3sv" );
2074 	dllRasterPos3sv( v );
2075 }
logRasterPos4d(GLdouble x,GLdouble y,GLdouble z,GLdouble w)2076 static void APIENTRY logRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
2077 {
2078 	SIG( "glRasterPos4d" );
2079 	dllRasterPos4d( x, y, z, w );
2080 }
logRasterPos4dv(const GLdouble * v)2081 static void APIENTRY logRasterPos4dv(const GLdouble *v)
2082 {
2083 	SIG( "glRasterPos4dv" );
2084 	dllRasterPos4dv( v );
2085 }
logRasterPos4f(GLfloat x,GLfloat y,GLfloat z,GLfloat w)2086 static void APIENTRY logRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
2087 {
2088 	SIG( "glRasterPos4f" );
2089 	dllRasterPos4f( x, y, z, w );
2090 }
logRasterPos4fv(const GLfloat * v)2091 static void APIENTRY logRasterPos4fv(const GLfloat *v)
2092 {
2093 	SIG( "glRasterPos4fv" );
2094 	dllRasterPos4fv( v );
2095 }
logRasterPos4i(GLint x,GLint y,GLint z,GLint w)2096 static void APIENTRY logRasterPos4i(GLint x, GLint y, GLint z, GLint w)
2097 {
2098 	SIG( "glRasterPos4i" );
2099 	dllRasterPos4i( x, y, z, w );
2100 }
logRasterPos4iv(const GLint * v)2101 static void APIENTRY logRasterPos4iv(const GLint *v)
2102 {
2103 	SIG( "glRasterPos4iv" );
2104 	dllRasterPos4iv( v );
2105 }
logRasterPos4s(GLshort x,GLshort y,GLshort z,GLshort w)2106 static void APIENTRY logRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
2107 {
2108 	SIG( "glRasterPos4s" );
2109 	dllRasterPos4s( x, y, z, w );
2110 }
logRasterPos4sv(const GLshort * v)2111 static void APIENTRY logRasterPos4sv(const GLshort *v)
2112 {
2113 	SIG( "glRasterPos4sv" );
2114 	dllRasterPos4sv( v );
2115 }
logReadBuffer(GLenum mode)2116 static void APIENTRY logReadBuffer(GLenum mode)
2117 {
2118 	SIG( "glReadBuffer" );
2119 	dllReadBuffer( mode );
2120 }
logReadPixels(GLint x,GLint y,GLsizei width,GLsizei height,GLenum format,GLenum type,void * pixels)2121 static void APIENTRY logReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)
2122 {
2123 	SIG( "glReadPixels" );
2124 	dllReadPixels( x, y, width, height, format, type, pixels );
2125 }
2126 
logRectd(GLdouble x1,GLdouble y1,GLdouble x2,GLdouble y2)2127 static void APIENTRY logRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
2128 {
2129 	SIG( "glRectd" );
2130 	dllRectd( x1, y1, x2, y2 );
2131 }
2132 
logRectdv(const GLdouble * v1,const GLdouble * v2)2133 static void APIENTRY logRectdv(const GLdouble *v1, const GLdouble *v2)
2134 {
2135 	SIG( "glRectdv" );
2136 	dllRectdv( v1, v2 );
2137 }
2138 
logRectf(GLfloat x1,GLfloat y1,GLfloat x2,GLfloat y2)2139 static void APIENTRY logRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
2140 {
2141 	SIG( "glRectf" );
2142 	dllRectf( x1, y1, x2, y2 );
2143 }
2144 
logRectfv(const GLfloat * v1,const GLfloat * v2)2145 static void APIENTRY logRectfv(const GLfloat *v1, const GLfloat *v2)
2146 {
2147 	SIG( "glRectfv" );
2148 	dllRectfv( v1, v2 );
2149 }
logRecti(GLint x1,GLint y1,GLint x2,GLint y2)2150 static void APIENTRY logRecti(GLint x1, GLint y1, GLint x2, GLint y2)
2151 {
2152 	SIG( "glRecti" );
2153 	dllRecti( x1, y1, x2, y2 );
2154 }
logRectiv(const GLint * v1,const GLint * v2)2155 static void APIENTRY logRectiv(const GLint *v1, const GLint *v2)
2156 {
2157 	SIG( "glRectiv" );
2158 	dllRectiv( v1, v2 );
2159 }
logRects(GLshort x1,GLshort y1,GLshort x2,GLshort y2)2160 static void APIENTRY logRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
2161 {
2162 	SIG( "glRects" );
2163 	dllRects( x1, y1, x2, y2 );
2164 }
logRectsv(const GLshort * v1,const GLshort * v2)2165 static void APIENTRY logRectsv(const GLshort *v1, const GLshort *v2)
2166 {
2167 	SIG( "glRectsv" );
2168 	dllRectsv( v1, v2 );
2169 }
logRenderMode(GLenum mode)2170 static GLint APIENTRY logRenderMode(GLenum mode)
2171 {
2172 	SIG( "glRenderMode" );
2173 	return dllRenderMode( mode );
2174 }
logRotated(GLdouble angle,GLdouble x,GLdouble y,GLdouble z)2175 static void APIENTRY logRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
2176 {
2177 	SIG( "glRotated" );
2178 	dllRotated( angle, x, y, z );
2179 }
2180 
logRotatef(GLfloat angle,GLfloat x,GLfloat y,GLfloat z)2181 static void APIENTRY logRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
2182 {
2183 	SIG( "glRotatef" );
2184 	dllRotatef( angle, x, y, z );
2185 }
2186 
logScaled(GLdouble x,GLdouble y,GLdouble z)2187 static void APIENTRY logScaled(GLdouble x, GLdouble y, GLdouble z)
2188 {
2189 	SIG( "glScaled" );
2190 	dllScaled( x, y, z );
2191 }
2192 
logScalef(GLfloat x,GLfloat y,GLfloat z)2193 static void APIENTRY logScalef(GLfloat x, GLfloat y, GLfloat z)
2194 {
2195 	SIG( "glScalef" );
2196 	dllScalef( x, y, z );
2197 }
2198 
logScissor(GLint x,GLint y,GLsizei width,GLsizei height)2199 static void APIENTRY logScissor(GLint x, GLint y, GLsizei width, GLsizei height)
2200 {
2201 	SIG( "glScissor" );
2202 	dllScissor( x, y, width, height );
2203 }
2204 
logSelectBuffer(GLsizei size,GLuint * buffer)2205 static void APIENTRY logSelectBuffer(GLsizei size, GLuint *buffer)
2206 {
2207 	SIG( "glSelectBuffer" );
2208 	dllSelectBuffer( size, buffer );
2209 }
2210 
logShadeModel(GLenum mode)2211 static void APIENTRY logShadeModel(GLenum mode)
2212 {
2213 	SIG( "glShadeModel" );
2214 	dllShadeModel( mode );
2215 }
2216 
logStencilFunc(GLenum func,GLint ref,GLuint mask)2217 static void APIENTRY logStencilFunc(GLenum func, GLint ref, GLuint mask)
2218 {
2219 	SIG( "glStencilFunc" );
2220 	dllStencilFunc( func, ref, mask );
2221 }
2222 
logStencilMask(GLuint mask)2223 static void APIENTRY logStencilMask(GLuint mask)
2224 {
2225 	SIG( "glStencilMask" );
2226 	dllStencilMask( mask );
2227 }
2228 
logStencilOp(GLenum fail,GLenum zfail,GLenum zpass)2229 static void APIENTRY logStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
2230 {
2231 	SIG( "glStencilOp" );
2232 	dllStencilOp( fail, zfail, zpass );
2233 }
2234 
logTexCoord1d(GLdouble s)2235 static void APIENTRY logTexCoord1d(GLdouble s)
2236 {
2237 	SIG( "glTexCoord1d" );
2238 	dllTexCoord1d( s );
2239 }
2240 
logTexCoord1dv(const GLdouble * v)2241 static void APIENTRY logTexCoord1dv(const GLdouble *v)
2242 {
2243 	SIG( "glTexCoord1dv" );
2244 	dllTexCoord1dv( v );
2245 }
2246 
logTexCoord1f(GLfloat s)2247 static void APIENTRY logTexCoord1f(GLfloat s)
2248 {
2249 	SIG( "glTexCoord1f" );
2250 	dllTexCoord1f( s );
2251 }
logTexCoord1fv(const GLfloat * v)2252 static void APIENTRY logTexCoord1fv(const GLfloat *v)
2253 {
2254 	SIG( "glTexCoord1fv" );
2255 	dllTexCoord1fv( v );
2256 }
logTexCoord1i(GLint s)2257 static void APIENTRY logTexCoord1i(GLint s)
2258 {
2259 	SIG( "glTexCoord1i" );
2260 	dllTexCoord1i( s );
2261 }
logTexCoord1iv(const GLint * v)2262 static void APIENTRY logTexCoord1iv(const GLint *v)
2263 {
2264 	SIG( "glTexCoord1iv" );
2265 	dllTexCoord1iv( v );
2266 }
logTexCoord1s(GLshort s)2267 static void APIENTRY logTexCoord1s(GLshort s)
2268 {
2269 	SIG( "glTexCoord1s" );
2270 	dllTexCoord1s( s );
2271 }
logTexCoord1sv(const GLshort * v)2272 static void APIENTRY logTexCoord1sv(const GLshort *v)
2273 {
2274 	SIG( "glTexCoord1sv" );
2275 	dllTexCoord1sv( v );
2276 }
logTexCoord2d(GLdouble s,GLdouble t)2277 static void APIENTRY logTexCoord2d(GLdouble s, GLdouble t)
2278 {
2279 	SIG( "glTexCoord2d" );
2280 	dllTexCoord2d( s, t );
2281 }
2282 
logTexCoord2dv(const GLdouble * v)2283 static void APIENTRY logTexCoord2dv(const GLdouble *v)
2284 {
2285 	SIG( "glTexCoord2dv" );
2286 	dllTexCoord2dv( v );
2287 }
logTexCoord2f(GLfloat s,GLfloat t)2288 static void APIENTRY logTexCoord2f(GLfloat s, GLfloat t)
2289 {
2290 	SIG( "glTexCoord2f" );
2291 	dllTexCoord2f( s, t );
2292 }
logTexCoord2fv(const GLfloat * v)2293 static void APIENTRY logTexCoord2fv(const GLfloat *v)
2294 {
2295 	SIG( "glTexCoord2fv" );
2296 	dllTexCoord2fv( v );
2297 }
logTexCoord2i(GLint s,GLint t)2298 static void APIENTRY logTexCoord2i(GLint s, GLint t)
2299 {
2300 	SIG( "glTexCoord2i" );
2301 	dllTexCoord2i( s, t );
2302 }
logTexCoord2iv(const GLint * v)2303 static void APIENTRY logTexCoord2iv(const GLint *v)
2304 {
2305 	SIG( "glTexCoord2iv" );
2306 	dllTexCoord2iv( v );
2307 }
logTexCoord2s(GLshort s,GLshort t)2308 static void APIENTRY logTexCoord2s(GLshort s, GLshort t)
2309 {
2310 	SIG( "glTexCoord2s" );
2311 	dllTexCoord2s( s, t );
2312 }
logTexCoord2sv(const GLshort * v)2313 static void APIENTRY logTexCoord2sv(const GLshort *v)
2314 {
2315 	SIG( "glTexCoord2sv" );
2316 	dllTexCoord2sv( v );
2317 }
logTexCoord3d(GLdouble s,GLdouble t,GLdouble r)2318 static void APIENTRY logTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
2319 {
2320 	SIG( "glTexCoord3d" );
2321 	dllTexCoord3d( s, t, r );
2322 }
logTexCoord3dv(const GLdouble * v)2323 static void APIENTRY logTexCoord3dv(const GLdouble *v)
2324 {
2325 	SIG( "glTexCoord3dv" );
2326 	dllTexCoord3dv( v );
2327 }
logTexCoord3f(GLfloat s,GLfloat t,GLfloat r)2328 static void APIENTRY logTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
2329 {
2330 	SIG( "glTexCoord3f" );
2331 	dllTexCoord3f( s, t, r );
2332 }
logTexCoord3fv(const GLfloat * v)2333 static void APIENTRY logTexCoord3fv(const GLfloat *v)
2334 {
2335 	SIG( "glTexCoord3fv" );
2336 	dllTexCoord3fv( v );
2337 }
logTexCoord3i(GLint s,GLint t,GLint r)2338 static void APIENTRY logTexCoord3i(GLint s, GLint t, GLint r)
2339 {
2340 	SIG( "glTexCoord3i" );
2341 	dllTexCoord3i( s, t, r );
2342 }
logTexCoord3iv(const GLint * v)2343 static void APIENTRY logTexCoord3iv(const GLint *v)
2344 {
2345 	SIG( "glTexCoord3iv" );
2346 	dllTexCoord3iv( v );
2347 }
logTexCoord3s(GLshort s,GLshort t,GLshort r)2348 static void APIENTRY logTexCoord3s(GLshort s, GLshort t, GLshort r)
2349 {
2350 	SIG( "glTexCoord3s" );
2351 	dllTexCoord3s( s, t, r );
2352 }
logTexCoord3sv(const GLshort * v)2353 static void APIENTRY logTexCoord3sv(const GLshort *v)
2354 {
2355 	SIG( "glTexCoord3sv" );
2356 	dllTexCoord3sv( v );
2357 }
logTexCoord4d(GLdouble s,GLdouble t,GLdouble r,GLdouble q)2358 static void APIENTRY logTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
2359 {
2360 	SIG( "glTexCoord4d" );
2361 	dllTexCoord4d( s, t, r, q );
2362 }
logTexCoord4dv(const GLdouble * v)2363 static void APIENTRY logTexCoord4dv(const GLdouble *v)
2364 {
2365 	SIG( "glTexCoord4dv" );
2366 	dllTexCoord4dv( v );
2367 }
logTexCoord4f(GLfloat s,GLfloat t,GLfloat r,GLfloat q)2368 static void APIENTRY logTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
2369 {
2370 	SIG( "glTexCoord4f" );
2371 	dllTexCoord4f( s, t, r, q );
2372 }
logTexCoord4fv(const GLfloat * v)2373 static void APIENTRY logTexCoord4fv(const GLfloat *v)
2374 {
2375 	SIG( "glTexCoord4fv" );
2376 	dllTexCoord4fv( v );
2377 }
logTexCoord4i(GLint s,GLint t,GLint r,GLint q)2378 static void APIENTRY logTexCoord4i(GLint s, GLint t, GLint r, GLint q)
2379 {
2380 	SIG( "glTexCoord4i" );
2381 	dllTexCoord4i( s, t, r, q );
2382 }
logTexCoord4iv(const GLint * v)2383 static void APIENTRY logTexCoord4iv(const GLint *v)
2384 {
2385 	SIG( "glTexCoord4iv" );
2386 	dllTexCoord4iv( v );
2387 }
logTexCoord4s(GLshort s,GLshort t,GLshort r,GLshort q)2388 static void APIENTRY logTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
2389 {
2390 	SIG( "glTexCoord4s" );
2391 	dllTexCoord4s( s, t, r, q );
2392 }
logTexCoord4sv(const GLshort * v)2393 static void APIENTRY logTexCoord4sv(const GLshort *v)
2394 {
2395 	SIG( "glTexCoord4sv" );
2396 	dllTexCoord4sv( v );
2397 }
logTexCoordPointer(GLint size,GLenum type,GLsizei stride,const void * pointer)2398 static void APIENTRY logTexCoordPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
2399 {
2400 	SIG( "glTexCoordPointer" );
2401 	dllTexCoordPointer( size, type, stride, pointer );
2402 }
2403 
logTexEnvf(GLenum target,GLenum pname,GLfloat param)2404 static void APIENTRY logTexEnvf(GLenum target, GLenum pname, GLfloat param)
2405 {
2406 	fprintf( glw_state.log_fp, "glTexEnvf( 0x%x, 0x%x, %f )\n", target, pname, param );
2407 	dllTexEnvf( target, pname, param );
2408 }
2409 
logTexEnvfv(GLenum target,GLenum pname,const GLfloat * params)2410 static void APIENTRY logTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
2411 {
2412 	SIG( "glTexEnvfv" );
2413 	dllTexEnvfv( target, pname, params );
2414 }
2415 
logTexEnvi(GLenum target,GLenum pname,GLint param)2416 static void APIENTRY logTexEnvi(GLenum target, GLenum pname, GLint param)
2417 {
2418 	fprintf( glw_state.log_fp, "glTexEnvi( 0x%x, 0x%x, 0x%x )\n", target, pname, param );
2419 	dllTexEnvi( target, pname, param );
2420 }
logTexEnviv(GLenum target,GLenum pname,const GLint * params)2421 static void APIENTRY logTexEnviv(GLenum target, GLenum pname, const GLint *params)
2422 {
2423 	SIG( "glTexEnviv" );
2424 	dllTexEnviv( target, pname, params );
2425 }
2426 
logTexGend(GLenum coord,GLenum pname,GLdouble param)2427 static void APIENTRY logTexGend(GLenum coord, GLenum pname, GLdouble param)
2428 {
2429 	SIG( "glTexGend" );
2430 	dllTexGend( coord, pname, param );
2431 }
2432 
logTexGendv(GLenum coord,GLenum pname,const GLdouble * params)2433 static void APIENTRY logTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
2434 {
2435 	SIG( "glTexGendv" );
2436 	dllTexGendv( coord, pname, params );
2437 }
2438 
logTexGenf(GLenum coord,GLenum pname,GLfloat param)2439 static void APIENTRY logTexGenf(GLenum coord, GLenum pname, GLfloat param)
2440 {
2441 	SIG( "glTexGenf" );
2442 	dllTexGenf( coord, pname, param );
2443 }
logTexGenfv(GLenum coord,GLenum pname,const GLfloat * params)2444 static void APIENTRY logTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
2445 {
2446 	SIG( "glTexGenfv" );
2447 	dllTexGenfv( coord, pname, params );
2448 }
logTexGeni(GLenum coord,GLenum pname,GLint param)2449 static void APIENTRY logTexGeni(GLenum coord, GLenum pname, GLint param)
2450 {
2451 	SIG( "glTexGeni" );
2452 	dllTexGeni( coord, pname, param );
2453 }
logTexGeniv(GLenum coord,GLenum pname,const GLint * params)2454 static void APIENTRY logTexGeniv(GLenum coord, GLenum pname, const GLint *params)
2455 {
2456 	SIG( "glTexGeniv" );
2457 	dllTexGeniv( coord, pname, params );
2458 }
logTexImage1D(GLenum target,GLint level,GLint internalformat,GLsizei width,GLint border,GLenum format,GLenum type,const void * pixels)2459 static void APIENTRY logTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels)
2460 {
2461 	SIG( "glTexImage1D" );
2462 	dllTexImage1D( target, level, internalformat, width, border, format, type, pixels );
2463 }
logTexImage2D(GLenum target,GLint level,GLint internalformat,GLsizei width,GLsizei height,GLint border,GLenum format,GLenum type,const void * pixels)2464 static void APIENTRY logTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)
2465 {
2466 	SIG( "glTexImage2D" );
2467 	dllTexImage2D( target, level, internalformat, width, height, border, format, type, pixels );
2468 }
2469 
logTexParameterf(GLenum target,GLenum pname,GLfloat param)2470 static void APIENTRY logTexParameterf(GLenum target, GLenum pname, GLfloat param)
2471 {
2472 	fprintf( glw_state.log_fp, "glTexParameterf( 0x%x, 0x%x, %f )\n", target, pname, param );
2473 	dllTexParameterf( target, pname, param );
2474 }
2475 
logTexParameterfv(GLenum target,GLenum pname,const GLfloat * params)2476 static void APIENTRY logTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
2477 {
2478 	SIG( "glTexParameterfv" );
2479 	dllTexParameterfv( target, pname, params );
2480 }
logTexParameteri(GLenum target,GLenum pname,GLint param)2481 static void APIENTRY logTexParameteri(GLenum target, GLenum pname, GLint param)
2482 {
2483 	fprintf( glw_state.log_fp, "glTexParameteri( 0x%x, 0x%x, 0x%x )\n", target, pname, param );
2484 	dllTexParameteri( target, pname, param );
2485 }
logTexParameteriv(GLenum target,GLenum pname,const GLint * params)2486 static void APIENTRY logTexParameteriv(GLenum target, GLenum pname, const GLint *params)
2487 {
2488 	SIG( "glTexParameteriv" );
2489 	dllTexParameteriv( target, pname, params );
2490 }
logTexSubImage1D(GLenum target,GLint level,GLint xoffset,GLsizei width,GLenum format,GLenum type,const void * pixels)2491 static void APIENTRY logTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels)
2492 {
2493 	SIG( "glTexSubImage1D" );
2494 	dllTexSubImage1D( target, level, xoffset, width, format, type, pixels );
2495 }
logTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLenum type,const void * pixels)2496 static void APIENTRY logTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
2497 {
2498 	SIG( "glTexSubImage2D" );
2499 	dllTexSubImage2D( target, level, xoffset, yoffset, width, height, format, type, pixels );
2500 }
logTranslated(GLdouble x,GLdouble y,GLdouble z)2501 static void APIENTRY logTranslated(GLdouble x, GLdouble y, GLdouble z)
2502 {
2503 	SIG( "glTranslated" );
2504 	dllTranslated( x, y, z );
2505 }
2506 
logTranslatef(GLfloat x,GLfloat y,GLfloat z)2507 static void APIENTRY logTranslatef(GLfloat x, GLfloat y, GLfloat z)
2508 {
2509 	SIG( "glTranslatef" );
2510 	dllTranslatef( x, y, z );
2511 }
2512 
logVertex2d(GLdouble x,GLdouble y)2513 static void APIENTRY logVertex2d(GLdouble x, GLdouble y)
2514 {
2515 	SIG( "glVertex2d" );
2516 	dllVertex2d( x, y );
2517 }
2518 
logVertex2dv(const GLdouble * v)2519 static void APIENTRY logVertex2dv(const GLdouble *v)
2520 {
2521 	SIG( "glVertex2dv" );
2522 	dllVertex2dv( v );
2523 }
logVertex2f(GLfloat x,GLfloat y)2524 static void APIENTRY logVertex2f(GLfloat x, GLfloat y)
2525 {
2526 	SIG( "glVertex2f" );
2527 	dllVertex2f( x, y );
2528 }
logVertex2fv(const GLfloat * v)2529 static void APIENTRY logVertex2fv(const GLfloat *v)
2530 {
2531 	SIG( "glVertex2fv" );
2532 	dllVertex2fv( v );
2533 }
logVertex2i(GLint x,GLint y)2534 static void APIENTRY logVertex2i(GLint x, GLint y)
2535 {
2536 	SIG( "glVertex2i" );
2537 	dllVertex2i( x, y );
2538 }
logVertex2iv(const GLint * v)2539 static void APIENTRY logVertex2iv(const GLint *v)
2540 {
2541 	SIG( "glVertex2iv" );
2542 	dllVertex2iv( v );
2543 }
logVertex2s(GLshort x,GLshort y)2544 static void APIENTRY logVertex2s(GLshort x, GLshort y)
2545 {
2546 	SIG( "glVertex2s" );
2547 	dllVertex2s( x, y );
2548 }
logVertex2sv(const GLshort * v)2549 static void APIENTRY logVertex2sv(const GLshort *v)
2550 {
2551 	SIG( "glVertex2sv" );
2552 	dllVertex2sv( v );
2553 }
logVertex3d(GLdouble x,GLdouble y,GLdouble z)2554 static void APIENTRY logVertex3d(GLdouble x, GLdouble y, GLdouble z)
2555 {
2556 	SIG( "glVertex3d" );
2557 	dllVertex3d( x, y, z );
2558 }
logVertex3dv(const GLdouble * v)2559 static void APIENTRY logVertex3dv(const GLdouble *v)
2560 {
2561 	SIG( "glVertex3dv" );
2562 	dllVertex3dv( v );
2563 }
logVertex3f(GLfloat x,GLfloat y,GLfloat z)2564 static void APIENTRY logVertex3f(GLfloat x, GLfloat y, GLfloat z)
2565 {
2566 	SIG( "glVertex3f" );
2567 	dllVertex3f( x, y, z );
2568 }
logVertex3fv(const GLfloat * v)2569 static void APIENTRY logVertex3fv(const GLfloat *v)
2570 {
2571 	SIG( "glVertex3fv" );
2572 	dllVertex3fv( v );
2573 }
logVertex3i(GLint x,GLint y,GLint z)2574 static void APIENTRY logVertex3i(GLint x, GLint y, GLint z)
2575 {
2576 	SIG( "glVertex3i" );
2577 	dllVertex3i( x, y, z );
2578 }
logVertex3iv(const GLint * v)2579 static void APIENTRY logVertex3iv(const GLint *v)
2580 {
2581 	SIG( "glVertex3iv" );
2582 	dllVertex3iv( v );
2583 }
logVertex3s(GLshort x,GLshort y,GLshort z)2584 static void APIENTRY logVertex3s(GLshort x, GLshort y, GLshort z)
2585 {
2586 	SIG( "glVertex3s" );
2587 	dllVertex3s( x, y, z );
2588 }
logVertex3sv(const GLshort * v)2589 static void APIENTRY logVertex3sv(const GLshort *v)
2590 {
2591 	SIG( "glVertex3sv" );
2592 	dllVertex3sv( v );
2593 }
logVertex4d(GLdouble x,GLdouble y,GLdouble z,GLdouble w)2594 static void APIENTRY logVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
2595 {
2596 	SIG( "glVertex4d" );
2597 	dllVertex4d( x, y, z, w );
2598 }
logVertex4dv(const GLdouble * v)2599 static void APIENTRY logVertex4dv(const GLdouble *v)
2600 {
2601 	SIG( "glVertex4dv" );
2602 	dllVertex4dv( v );
2603 }
logVertex4f(GLfloat x,GLfloat y,GLfloat z,GLfloat w)2604 static void APIENTRY logVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
2605 {
2606 	SIG( "glVertex4f" );
2607 	dllVertex4f( x, y, z, w );
2608 }
logVertex4fv(const GLfloat * v)2609 static void APIENTRY logVertex4fv(const GLfloat *v)
2610 {
2611 	SIG( "glVertex4fv" );
2612 	dllVertex4fv( v );
2613 }
logVertex4i(GLint x,GLint y,GLint z,GLint w)2614 static void APIENTRY logVertex4i(GLint x, GLint y, GLint z, GLint w)
2615 {
2616 	SIG( "glVertex4i" );
2617 	dllVertex4i( x, y, z, w );
2618 }
logVertex4iv(const GLint * v)2619 static void APIENTRY logVertex4iv(const GLint *v)
2620 {
2621 	SIG( "glVertex4iv" );
2622 	dllVertex4iv( v );
2623 }
logVertex4s(GLshort x,GLshort y,GLshort z,GLshort w)2624 static void APIENTRY logVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
2625 {
2626 	SIG( "glVertex4s" );
2627 	dllVertex4s( x, y, z, w );
2628 }
logVertex4sv(const GLshort * v)2629 static void APIENTRY logVertex4sv(const GLshort *v)
2630 {
2631 	SIG( "glVertex4sv" );
2632 	dllVertex4sv( v );
2633 }
logVertexPointer(GLint size,GLenum type,GLsizei stride,const void * pointer)2634 static void APIENTRY logVertexPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
2635 {
2636 	SIG( "glVertexPointer" );
2637 	dllVertexPointer( size, type, stride, pointer );
2638 }
logViewport(GLint x,GLint y,GLsizei width,GLsizei height)2639 static void APIENTRY logViewport(GLint x, GLint y, GLsizei width, GLsizei height)
2640 {
2641 	SIG( "glViewport" );
2642 	dllViewport( x, y, width, height );
2643 }
2644 
2645 /*
2646 ** QGL_Shutdown
2647 **
2648 ** Unloads the specified DLL then nulls out all the proc pointers.
2649 */
QGL_Shutdown(void)2650 void QGL_Shutdown( void )
2651 {
2652 	if ( glw_state.hinstOpenGL )
2653 	{
2654 		FreeLibrary( glw_state.hinstOpenGL );
2655 		glw_state.hinstOpenGL = NULL;
2656 	}
2657 
2658 	glw_state.hinstOpenGL = NULL;
2659 
2660 	qglAccum                     = NULL;
2661 	qglAlphaFunc                 = NULL;
2662 	qglAreTexturesResident       = NULL;
2663 	qglArrayElement              = NULL;
2664 	qglBegin                     = NULL;
2665 	qglBindTexture               = NULL;
2666 	qglBitmap                    = NULL;
2667 	qglBlendFunc                 = NULL;
2668 	qglCallList                  = NULL;
2669 	qglCallLists                 = NULL;
2670 	qglClear                     = NULL;
2671 	qglClearAccum                = NULL;
2672 	qglClearColor                = NULL;
2673 	qglClearDepth                = NULL;
2674 	qglClearIndex                = NULL;
2675 	qglClearStencil              = NULL;
2676 	qglClipPlane                 = NULL;
2677 	qglColor3b                   = NULL;
2678 	qglColor3bv                  = NULL;
2679 	qglColor3d                   = NULL;
2680 	qglColor3dv                  = NULL;
2681 	qglColor3f                   = NULL;
2682 	qglColor3fv                  = NULL;
2683 	qglColor3i                   = NULL;
2684 	qglColor3iv                  = NULL;
2685 	qglColor3s                   = NULL;
2686 	qglColor3sv                  = NULL;
2687 	qglColor3ub                  = NULL;
2688 	qglColor3ubv                 = NULL;
2689 	qglColor3ui                  = NULL;
2690 	qglColor3uiv                 = NULL;
2691 	qglColor3us                  = NULL;
2692 	qglColor3usv                 = NULL;
2693 	qglColor4b                   = NULL;
2694 	qglColor4bv                  = NULL;
2695 	qglColor4d                   = NULL;
2696 	qglColor4dv                  = NULL;
2697 	qglColor4f                   = NULL;
2698 	qglColor4fv                  = NULL;
2699 	qglColor4i                   = NULL;
2700 	qglColor4iv                  = NULL;
2701 	qglColor4s                   = NULL;
2702 	qglColor4sv                  = NULL;
2703 	qglColor4ub                  = NULL;
2704 	qglColor4ubv                 = NULL;
2705 	qglColor4ui                  = NULL;
2706 	qglColor4uiv                 = NULL;
2707 	qglColor4us                  = NULL;
2708 	qglColor4usv                 = NULL;
2709 	qglColorMask                 = NULL;
2710 	qglColorMaterial             = NULL;
2711 	qglColorPointer              = NULL;
2712 	qglCopyPixels                = NULL;
2713 	qglCopyTexImage1D            = NULL;
2714 	qglCopyTexImage2D            = NULL;
2715 	qglCopyTexSubImage1D         = NULL;
2716 	qglCopyTexSubImage2D         = NULL;
2717 	qglCullFace                  = NULL;
2718 	qglDeleteLists               = NULL;
2719 	qglDeleteTextures            = NULL;
2720 	qglDepthFunc                 = NULL;
2721 	qglDepthMask                 = NULL;
2722 	qglDepthRange                = NULL;
2723 	qglDisable                   = NULL;
2724 	qglDisableClientState        = NULL;
2725 	qglDrawArrays                = NULL;
2726 	qglDrawBuffer                = NULL;
2727 	qglDrawElements              = NULL;
2728 	qglDrawPixels                = NULL;
2729 	qglEdgeFlag                  = NULL;
2730 	qglEdgeFlagPointer           = NULL;
2731 	qglEdgeFlagv                 = NULL;
2732 	qglEnable                    = NULL;
2733 	qglEnableClientState         = NULL;
2734 	qglEnd                       = NULL;
2735 	qglEndList                   = NULL;
2736 	qglEvalCoord1d               = NULL;
2737 	qglEvalCoord1dv              = NULL;
2738 	qglEvalCoord1f               = NULL;
2739 	qglEvalCoord1fv              = NULL;
2740 	qglEvalCoord2d               = NULL;
2741 	qglEvalCoord2dv              = NULL;
2742 	qglEvalCoord2f               = NULL;
2743 	qglEvalCoord2fv              = NULL;
2744 	qglEvalMesh1                 = NULL;
2745 	qglEvalMesh2                 = NULL;
2746 	qglEvalPoint1                = NULL;
2747 	qglEvalPoint2                = NULL;
2748 	qglFeedbackBuffer            = NULL;
2749 	qglFinish                    = NULL;
2750 	qglFlush                     = NULL;
2751 	qglFogf                      = NULL;
2752 	qglFogfv                     = NULL;
2753 	qglFogi                      = NULL;
2754 	qglFogiv                     = NULL;
2755 	qglFrontFace                 = NULL;
2756 	qglFrustum                   = NULL;
2757 	qglGenLists                  = NULL;
2758 	qglGenTextures               = NULL;
2759 	qglGetBooleanv               = NULL;
2760 	qglGetClipPlane              = NULL;
2761 	qglGetDoublev                = NULL;
2762 	qglGetError                  = NULL;
2763 	qglGetFloatv                 = NULL;
2764 	qglGetIntegerv               = NULL;
2765 	qglGetLightfv                = NULL;
2766 	qglGetLightiv                = NULL;
2767 	qglGetMapdv                  = NULL;
2768 	qglGetMapfv                  = NULL;
2769 	qglGetMapiv                  = NULL;
2770 	qglGetMaterialfv             = NULL;
2771 	qglGetMaterialiv             = NULL;
2772 	qglGetPixelMapfv             = NULL;
2773 	qglGetPixelMapuiv            = NULL;
2774 	qglGetPixelMapusv            = NULL;
2775 	qglGetPointerv               = NULL;
2776 	qglGetPolygonStipple         = NULL;
2777 	qglGetString                 = NULL;
2778 	qglGetTexEnvfv               = NULL;
2779 	qglGetTexEnviv               = NULL;
2780 	qglGetTexGendv               = NULL;
2781 	qglGetTexGenfv               = NULL;
2782 	qglGetTexGeniv               = NULL;
2783 	qglGetTexImage               = NULL;
2784 	qglGetTexLevelParameterfv    = NULL;
2785 	qglGetTexLevelParameteriv    = NULL;
2786 	qglGetTexParameterfv         = NULL;
2787 	qglGetTexParameteriv         = NULL;
2788 	qglHint                      = NULL;
2789 	qglIndexMask                 = NULL;
2790 	qglIndexPointer              = NULL;
2791 	qglIndexd                    = NULL;
2792 	qglIndexdv                   = NULL;
2793 	qglIndexf                    = NULL;
2794 	qglIndexfv                   = NULL;
2795 	qglIndexi                    = NULL;
2796 	qglIndexiv                   = NULL;
2797 	qglIndexs                    = NULL;
2798 	qglIndexsv                   = NULL;
2799 	qglIndexub                   = NULL;
2800 	qglIndexubv                  = NULL;
2801 	qglInitNames                 = NULL;
2802 	qglInterleavedArrays         = NULL;
2803 	qglIsEnabled                 = NULL;
2804 	qglIsList                    = NULL;
2805 	qglIsTexture                 = NULL;
2806 	qglLightModelf               = NULL;
2807 	qglLightModelfv              = NULL;
2808 	qglLightModeli               = NULL;
2809 	qglLightModeliv              = NULL;
2810 	qglLightf                    = NULL;
2811 	qglLightfv                   = NULL;
2812 	qglLighti                    = NULL;
2813 	qglLightiv                   = NULL;
2814 	qglLineStipple               = NULL;
2815 	qglLineWidth                 = NULL;
2816 	qglListBase                  = NULL;
2817 	qglLoadIdentity              = NULL;
2818 	qglLoadMatrixd               = NULL;
2819 	qglLoadMatrixf               = NULL;
2820 	qglLoadName                  = NULL;
2821 	qglLogicOp                   = NULL;
2822 	qglMap1d                     = NULL;
2823 	qglMap1f                     = NULL;
2824 	qglMap2d                     = NULL;
2825 	qglMap2f                     = NULL;
2826 	qglMapGrid1d                 = NULL;
2827 	qglMapGrid1f                 = NULL;
2828 	qglMapGrid2d                 = NULL;
2829 	qglMapGrid2f                 = NULL;
2830 	qglMaterialf                 = NULL;
2831 	qglMaterialfv                = NULL;
2832 	qglMateriali                 = NULL;
2833 	qglMaterialiv                = NULL;
2834 	qglMatrixMode                = NULL;
2835 	qglMultMatrixd               = NULL;
2836 	qglMultMatrixf               = NULL;
2837 	qglNewList                   = NULL;
2838 	qglNormal3b                  = NULL;
2839 	qglNormal3bv                 = NULL;
2840 	qglNormal3d                  = NULL;
2841 	qglNormal3dv                 = NULL;
2842 	qglNormal3f                  = NULL;
2843 	qglNormal3fv                 = NULL;
2844 	qglNormal3i                  = NULL;
2845 	qglNormal3iv                 = NULL;
2846 	qglNormal3s                  = NULL;
2847 	qglNormal3sv                 = NULL;
2848 	qglNormalPointer             = NULL;
2849 	qglOrtho                     = NULL;
2850 	qglPassThrough               = NULL;
2851 	qglPixelMapfv                = NULL;
2852 	qglPixelMapuiv               = NULL;
2853 	qglPixelMapusv               = NULL;
2854 	qglPixelStoref               = NULL;
2855 	qglPixelStorei               = NULL;
2856 	qglPixelTransferf            = NULL;
2857 	qglPixelTransferi            = NULL;
2858 	qglPixelZoom                 = NULL;
2859 	qglPointSize                 = NULL;
2860 	qglPolygonMode               = NULL;
2861 	qglPolygonOffset             = NULL;
2862 	qglPolygonStipple            = NULL;
2863 	qglPopAttrib                 = NULL;
2864 	qglPopClientAttrib           = NULL;
2865 	qglPopMatrix                 = NULL;
2866 	qglPopName                   = NULL;
2867 	qglPrioritizeTextures        = NULL;
2868 	qglPushAttrib                = NULL;
2869 	qglPushClientAttrib          = NULL;
2870 	qglPushMatrix                = NULL;
2871 	qglPushName                  = NULL;
2872 	qglRasterPos2d               = NULL;
2873 	qglRasterPos2dv              = NULL;
2874 	qglRasterPos2f               = NULL;
2875 	qglRasterPos2fv              = NULL;
2876 	qglRasterPos2i               = NULL;
2877 	qglRasterPos2iv              = NULL;
2878 	qglRasterPos2s               = NULL;
2879 	qglRasterPos2sv              = NULL;
2880 	qglRasterPos3d               = NULL;
2881 	qglRasterPos3dv              = NULL;
2882 	qglRasterPos3f               = NULL;
2883 	qglRasterPos3fv              = NULL;
2884 	qglRasterPos3i               = NULL;
2885 	qglRasterPos3iv              = NULL;
2886 	qglRasterPos3s               = NULL;
2887 	qglRasterPos3sv              = NULL;
2888 	qglRasterPos4d               = NULL;
2889 	qglRasterPos4dv              = NULL;
2890 	qglRasterPos4f               = NULL;
2891 	qglRasterPos4fv              = NULL;
2892 	qglRasterPos4i               = NULL;
2893 	qglRasterPos4iv              = NULL;
2894 	qglRasterPos4s               = NULL;
2895 	qglRasterPos4sv              = NULL;
2896 	qglReadBuffer                = NULL;
2897 	qglReadPixels                = NULL;
2898 	qglRectd                     = NULL;
2899 	qglRectdv                    = NULL;
2900 	qglRectf                     = NULL;
2901 	qglRectfv                    = NULL;
2902 	qglRecti                     = NULL;
2903 	qglRectiv                    = NULL;
2904 	qglRects                     = NULL;
2905 	qglRectsv                    = NULL;
2906 	qglRenderMode                = NULL;
2907 	qglRotated                   = NULL;
2908 	qglRotatef                   = NULL;
2909 	qglScaled                    = NULL;
2910 	qglScalef                    = NULL;
2911 	qglScissor                   = NULL;
2912 	qglSelectBuffer              = NULL;
2913 	qglShadeModel                = NULL;
2914 	qglStencilFunc               = NULL;
2915 	qglStencilMask               = NULL;
2916 	qglStencilOp                 = NULL;
2917 	qglTexCoord1d                = NULL;
2918 	qglTexCoord1dv               = NULL;
2919 	qglTexCoord1f                = NULL;
2920 	qglTexCoord1fv               = NULL;
2921 	qglTexCoord1i                = NULL;
2922 	qglTexCoord1iv               = NULL;
2923 	qglTexCoord1s                = NULL;
2924 	qglTexCoord1sv               = NULL;
2925 	qglTexCoord2d                = NULL;
2926 	qglTexCoord2dv               = NULL;
2927 	qglTexCoord2f                = NULL;
2928 	qglTexCoord2fv               = NULL;
2929 	qglTexCoord2i                = NULL;
2930 	qglTexCoord2iv               = NULL;
2931 	qglTexCoord2s                = NULL;
2932 	qglTexCoord2sv               = NULL;
2933 	qglTexCoord3d                = NULL;
2934 	qglTexCoord3dv               = NULL;
2935 	qglTexCoord3f                = NULL;
2936 	qglTexCoord3fv               = NULL;
2937 	qglTexCoord3i                = NULL;
2938 	qglTexCoord3iv               = NULL;
2939 	qglTexCoord3s                = NULL;
2940 	qglTexCoord3sv               = NULL;
2941 	qglTexCoord4d                = NULL;
2942 	qglTexCoord4dv               = NULL;
2943 	qglTexCoord4f                = NULL;
2944 	qglTexCoord4fv               = NULL;
2945 	qglTexCoord4i                = NULL;
2946 	qglTexCoord4iv               = NULL;
2947 	qglTexCoord4s                = NULL;
2948 	qglTexCoord4sv               = NULL;
2949 	qglTexCoordPointer           = NULL;
2950 	qglTexEnvf                   = NULL;
2951 	qglTexEnvfv                  = NULL;
2952 	qglTexEnvi                   = NULL;
2953 	qglTexEnviv                  = NULL;
2954 	qglTexGend                   = NULL;
2955 	qglTexGendv                  = NULL;
2956 	qglTexGenf                   = NULL;
2957 	qglTexGenfv                  = NULL;
2958 	qglTexGeni                   = NULL;
2959 	qglTexGeniv                  = NULL;
2960 	qglTexImage1D                = NULL;
2961 	qglTexImage2D                = NULL;
2962 	qglTexParameterf             = NULL;
2963 	qglTexParameterfv            = NULL;
2964 	qglTexParameteri             = NULL;
2965 	qglTexParameteriv            = NULL;
2966 	qglTexSubImage1D             = NULL;
2967 	qglTexSubImage2D             = NULL;
2968 	qglTranslated                = NULL;
2969 	qglTranslatef                = NULL;
2970 	qglVertex2d                  = NULL;
2971 	qglVertex2dv                 = NULL;
2972 	qglVertex2f                  = NULL;
2973 	qglVertex2fv                 = NULL;
2974 	qglVertex2i                  = NULL;
2975 	qglVertex2iv                 = NULL;
2976 	qglVertex2s                  = NULL;
2977 	qglVertex2sv                 = NULL;
2978 	qglVertex3d                  = NULL;
2979 	qglVertex3dv                 = NULL;
2980 	qglVertex3f                  = NULL;
2981 	qglVertex3fv                 = NULL;
2982 	qglVertex3i                  = NULL;
2983 	qglVertex3iv                 = NULL;
2984 	qglVertex3s                  = NULL;
2985 	qglVertex3sv                 = NULL;
2986 	qglVertex4d                  = NULL;
2987 	qglVertex4dv                 = NULL;
2988 	qglVertex4f                  = NULL;
2989 	qglVertex4fv                 = NULL;
2990 	qglVertex4i                  = NULL;
2991 	qglVertex4iv                 = NULL;
2992 	qglVertex4s                  = NULL;
2993 	qglVertex4sv                 = NULL;
2994 	qglVertexPointer             = NULL;
2995 	qglViewport                  = NULL;
2996 
2997 	qwglCopyContext              = NULL;
2998 	qwglCreateContext            = NULL;
2999 	qwglCreateLayerContext       = NULL;
3000 	qwglDeleteContext            = NULL;
3001 	qwglDescribeLayerPlane       = NULL;
3002 	qwglGetCurrentContext        = NULL;
3003 	qwglGetCurrentDC             = NULL;
3004 	qwglGetLayerPaletteEntries   = NULL;
3005 	qwglGetProcAddress           = NULL;
3006 	qwglMakeCurrent              = NULL;
3007 	qwglRealizeLayerPalette      = NULL;
3008 	qwglSetLayerPaletteEntries   = NULL;
3009 	qwglShareLists               = NULL;
3010 	qwglSwapLayerBuffers         = NULL;
3011 	qwglUseFontBitmaps           = NULL;
3012 	qwglUseFontOutlines          = NULL;
3013 
3014 	qwglChoosePixelFormat        = NULL;
3015 	qwglDescribePixelFormat      = NULL;
3016 	qwglGetPixelFormat           = NULL;
3017 	qwglSetPixelFormat           = NULL;
3018 	qwglSwapBuffers              = NULL;
3019 
3020 	qwglSwapIntervalEXT	= NULL;
3021 
3022 	qwglGetDeviceGammaRampEXT = NULL;
3023 	qwglSetDeviceGammaRampEXT = NULL;
3024 }
3025 
3026 #	pragma warning (disable : 4113 4133 4047 )
3027 #	define GPA( a ) GetProcAddress( glw_state.hinstOpenGL, a )
3028 
3029 /*
3030 ** QGL_Init
3031 **
3032 ** This is responsible for binding our qgl function pointers to
3033 ** the appropriate GL stuff.  In Windows this means doing a
3034 ** LoadLibrary and a bunch of calls to GetProcAddress.  On other
3035 ** operating systems we need to do the right thing, whatever that
3036 ** might be.
3037 **
3038 */
QGL_Init(const char * dllname)3039 qboolean QGL_Init( const char *dllname )
3040 {
3041 	static int firsttime = TRUE;
3042 
3043 	// update 3Dfx gamma irrespective of underlying DLL
3044 	if ( firsttime )
3045 	{ // VC++ 2008 Express debugger memory checking failed on second entry.
3046 		// redoing putenv()'s on video restart probably not a good idea.
3047 		char envbuffer[1024];
3048 		float g;
3049 
3050 		g = 2.00 * ( 0.8 - ( vid_gamma->value - 0.5 ) ) + 1.0F;
3051 		Com_sprintf( envbuffer, sizeof(envbuffer), "SSTV2_GAMMA=%f", g );
3052 		_putenv( envbuffer );
3053 		Com_sprintf( envbuffer, sizeof(envbuffer), "SST_GAMMA=%f", g );
3054 		_putenv( envbuffer );
3055 
3056 		firsttime = FALSE;
3057 	}
3058 
3059 	if ( ( glw_state.hinstOpenGL = LoadLibrary( dllname ) ) == 0 )
3060 	{
3061 		char *buf = NULL;
3062 
3063 		FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &buf, 0, NULL);
3064 		Com_Printf ("%s\n", buf );
3065 		return false;
3066 	}
3067 
3068 	gl_config.allow_cds = true;
3069 
3070 	qglAccum                     = dllAccum = GPA( "glAccum" );
3071 	qglAlphaFunc                 = dllAlphaFunc = GPA( "glAlphaFunc" );
3072 	qglAreTexturesResident       = dllAreTexturesResident = GPA( "glAreTexturesResident" );
3073 	qglArrayElement              = dllArrayElement = GPA( "glArrayElement" );
3074 	qglBegin                     = dllBegin = GPA( "glBegin" );
3075 	qglBindTexture               = dllBindTexture = GPA( "glBindTexture" );
3076 	qglBitmap                    = dllBitmap = GPA( "glBitmap" );
3077 	qglBlendFunc                 = dllBlendFunc = GPA( "glBlendFunc" );
3078 	qglCallList                  = dllCallList = GPA( "glCallList" );
3079 	qglCallLists                 = dllCallLists = GPA( "glCallLists" );
3080 	qglClear                     = dllClear = GPA( "glClear" );
3081 	qglClearAccum                = dllClearAccum = GPA( "glClearAccum" );
3082 	qglClearColor                = dllClearColor = GPA( "glClearColor" );
3083 	qglClearDepth                = dllClearDepth = GPA( "glClearDepth" );
3084 	qglClearIndex                = dllClearIndex = GPA( "glClearIndex" );
3085 	qglClearStencil              = dllClearStencil = GPA( "glClearStencil" );
3086 	qglClipPlane                 = dllClipPlane = GPA( "glClipPlane" );
3087 	qglColor3b                   = dllColor3b = GPA( "glColor3b" );
3088 	qglColor3bv                  = dllColor3bv = GPA( "glColor3bv" );
3089 	qglColor3d                   = dllColor3d = GPA( "glColor3d" );
3090 	qglColor3dv                  = dllColor3dv = GPA( "glColor3dv" );
3091 	qglColor3f                   = dllColor3f = GPA( "glColor3f" );
3092 	qglColor3fv                  = dllColor3fv = GPA( "glColor3fv" );
3093 	qglColor3i                   = dllColor3i = GPA( "glColor3i" );
3094 	qglColor3iv                  = dllColor3iv = GPA( "glColor3iv" );
3095 	qglColor3s                   = dllColor3s = GPA( "glColor3s" );
3096 	qglColor3sv                  = dllColor3sv = GPA( "glColor3sv" );
3097 	qglColor3ub                  = dllColor3ub = GPA( "glColor3ub" );
3098 	qglColor3ubv                 = dllColor3ubv = GPA( "glColor3ubv" );
3099 	qglColor3ui                  = dllColor3ui = GPA( "glColor3ui" );
3100 	qglColor3uiv                 = dllColor3uiv = GPA( "glColor3uiv" );
3101 	qglColor3us                  = dllColor3us = GPA( "glColor3us" );
3102 	qglColor3usv                 = dllColor3usv = GPA( "glColor3usv" );
3103 	qglColor4b                   = dllColor4b = GPA( "glColor4b" );
3104 	qglColor4bv                  = dllColor4bv = GPA( "glColor4bv" );
3105 	qglColor4d                   = dllColor4d = GPA( "glColor4d" );
3106 	qglColor4dv                  = dllColor4dv = GPA( "glColor4dv" );
3107 	qglColor4f                   = dllColor4f = GPA( "glColor4f" );
3108 	qglColor4fv                  = dllColor4fv = GPA( "glColor4fv" );
3109 	qglColor4i                   = dllColor4i = GPA( "glColor4i" );
3110 	qglColor4iv                  = dllColor4iv = GPA( "glColor4iv" );
3111 	qglColor4s                   = dllColor4s = GPA( "glColor4s" );
3112 	qglColor4sv                  = dllColor4sv = GPA( "glColor4sv" );
3113 	qglColor4ub                  = dllColor4ub = GPA( "glColor4ub" );
3114 	qglColor4ubv                 = dllColor4ubv = GPA( "glColor4ubv" );
3115 	qglColor4ui                  = dllColor4ui = GPA( "glColor4ui" );
3116 	qglColor4uiv                 = dllColor4uiv = GPA( "glColor4uiv" );
3117 	qglColor4us                  = dllColor4us = GPA( "glColor4us" );
3118 	qglColor4usv                 = dllColor4usv = GPA( "glColor4usv" );
3119 	qglColorMask                 = dllColorMask = GPA( "glColorMask" );
3120 	qglColorMaterial             = dllColorMaterial = GPA( "glColorMaterial" );
3121 	qglColorPointer              = dllColorPointer = GPA( "glColorPointer" );
3122 	qglCopyPixels                = dllCopyPixels = GPA( "glCopyPixels" );
3123 	qglCopyTexImage1D            = dllCopyTexImage1D = GPA( "glCopyTexImage1D" );
3124 	qglCopyTexImage2D            = dllCopyTexImage2D = GPA( "glCopyTexImage2D" );
3125 	qglCopyTexSubImage1D         = dllCopyTexSubImage1D = GPA( "glCopyTexSubImage1D" );
3126 	qglCopyTexSubImage2D         = dllCopyTexSubImage2D = GPA( "glCopyTexSubImage2D" );
3127 	qglCullFace                  = dllCullFace = GPA( "glCullFace" );
3128 	qglDeleteLists               = dllDeleteLists = GPA( "glDeleteLists" );
3129 	qglDeleteTextures            = dllDeleteTextures = GPA( "glDeleteTextures" );
3130 	qglDepthFunc                 = dllDepthFunc = GPA( "glDepthFunc" );
3131 	qglDepthMask                 = dllDepthMask = GPA( "glDepthMask" );
3132 	qglDepthRange                = dllDepthRange = GPA( "glDepthRange" );
3133 	qglDisable                   = dllDisable = GPA( "glDisable" );
3134 	qglDisableClientState        = dllDisableClientState = GPA( "glDisableClientState" );
3135 	qglDrawArrays                = dllDrawArrays = GPA( "glDrawArrays" );
3136 	qglDrawBuffer                = dllDrawBuffer = GPA( "glDrawBuffer" );
3137 	qglDrawElements              = dllDrawElements = GPA( "glDrawElements" );
3138 	qglDrawPixels                = dllDrawPixels = GPA( "glDrawPixels" );
3139 	qglEdgeFlag                  = dllEdgeFlag = GPA( "glEdgeFlag" );
3140 	qglEdgeFlagPointer           = dllEdgeFlagPointer = GPA( "glEdgeFlagPointer" );
3141 	qglEdgeFlagv                 = dllEdgeFlagv = GPA( "glEdgeFlagv" );
3142 	qglEnable                    = 	dllEnable                    = GPA( "glEnable" );
3143 	qglEnableClientState         = 	dllEnableClientState         = GPA( "glEnableClientState" );
3144 	qglEnd                       = 	dllEnd                       = GPA( "glEnd" );
3145 	qglEndList                   = 	dllEndList                   = GPA( "glEndList" );
3146 	qglEvalCoord1d				 = 	dllEvalCoord1d				 = GPA( "glEvalCoord1d" );
3147 	qglEvalCoord1dv              = 	dllEvalCoord1dv              = GPA( "glEvalCoord1dv" );
3148 	qglEvalCoord1f               = 	dllEvalCoord1f               = GPA( "glEvalCoord1f" );
3149 	qglEvalCoord1fv              = 	dllEvalCoord1fv              = GPA( "glEvalCoord1fv" );
3150 	qglEvalCoord2d               = 	dllEvalCoord2d               = GPA( "glEvalCoord2d" );
3151 	qglEvalCoord2dv              = 	dllEvalCoord2dv              = GPA( "glEvalCoord2dv" );
3152 	qglEvalCoord2f               = 	dllEvalCoord2f               = GPA( "glEvalCoord2f" );
3153 	qglEvalCoord2fv              = 	dllEvalCoord2fv              = GPA( "glEvalCoord2fv" );
3154 	qglEvalMesh1                 = 	dllEvalMesh1                 = GPA( "glEvalMesh1" );
3155 	qglEvalMesh2                 = 	dllEvalMesh2                 = GPA( "glEvalMesh2" );
3156 	qglEvalPoint1                = 	dllEvalPoint1                = GPA( "glEvalPoint1" );
3157 	qglEvalPoint2                = 	dllEvalPoint2                = GPA( "glEvalPoint2" );
3158 	qglFeedbackBuffer            = 	dllFeedbackBuffer            = GPA( "glFeedbackBuffer" );
3159 	qglFinish                    = 	dllFinish                    = GPA( "glFinish" );
3160 	qglFlush                     = 	dllFlush                     = GPA( "glFlush" );
3161 	qglFogf                      = 	dllFogf                      = GPA( "glFogf" );
3162 	qglFogfv                     = 	dllFogfv                     = GPA( "glFogfv" );
3163 	qglFogi                      = 	dllFogi                      = GPA( "glFogi" );
3164 	qglFogiv                     = 	dllFogiv                     = GPA( "glFogiv" );
3165 	qglFrontFace                 = 	dllFrontFace                 = GPA( "glFrontFace" );
3166 	qglFrustum                   = 	dllFrustum                   = GPA( "glFrustum" );
3167 	qglGenLists                  = 	dllGenLists                  = GPA( "glGenLists" );
3168 	qglGenTextures               = 	dllGenTextures               = GPA( "glGenTextures" );
3169 	qglGetBooleanv               = 	dllGetBooleanv               = GPA( "glGetBooleanv" );
3170 	qglGetClipPlane              = 	dllGetClipPlane              = GPA( "glGetClipPlane" );
3171 	qglGetDoublev                = 	dllGetDoublev                = GPA( "glGetDoublev" );
3172 	qglGetError                  = 	dllGetError                  = GPA( "glGetError" );
3173 	qglGetFloatv                 = 	dllGetFloatv                 = GPA( "glGetFloatv" );
3174 	qglGetIntegerv               = 	dllGetIntegerv               = GPA( "glGetIntegerv" );
3175 	qglGetLightfv                = 	dllGetLightfv                = GPA( "glGetLightfv" );
3176 	qglGetLightiv                = 	dllGetLightiv                = GPA( "glGetLightiv" );
3177 	qglGetMapdv                  = 	dllGetMapdv                  = GPA( "glGetMapdv" );
3178 	qglGetMapfv                  = 	dllGetMapfv                  = GPA( "glGetMapfv" );
3179 	qglGetMapiv                  = 	dllGetMapiv                  = GPA( "glGetMapiv" );
3180 	qglGetMaterialfv             = 	dllGetMaterialfv             = GPA( "glGetMaterialfv" );
3181 	qglGetMaterialiv             = 	dllGetMaterialiv             = GPA( "glGetMaterialiv" );
3182 	qglGetPixelMapfv             = 	dllGetPixelMapfv             = GPA( "glGetPixelMapfv" );
3183 	qglGetPixelMapuiv            = 	dllGetPixelMapuiv            = GPA( "glGetPixelMapuiv" );
3184 	qglGetPixelMapusv            = 	dllGetPixelMapusv            = GPA( "glGetPixelMapusv" );
3185 	qglGetPointerv               = 	dllGetPointerv               = GPA( "glGetPointerv" );
3186 	qglGetPolygonStipple         = 	dllGetPolygonStipple         = GPA( "glGetPolygonStipple" );
3187 	qglGetString                 = 	dllGetString                 = GPA( "glGetString" );
3188 	qglGetTexEnvfv               = 	dllGetTexEnvfv               = GPA( "glGetTexEnvfv" );
3189 	qglGetTexEnviv               = 	dllGetTexEnviv               = GPA( "glGetTexEnviv" );
3190 	qglGetTexGendv               = 	dllGetTexGendv               = GPA( "glGetTexGendv" );
3191 	qglGetTexGenfv               = 	dllGetTexGenfv               = GPA( "glGetTexGenfv" );
3192 	qglGetTexGeniv               = 	dllGetTexGeniv               = GPA( "glGetTexGeniv" );
3193 	qglGetTexImage               = 	dllGetTexImage               = GPA( "glGetTexImage" );
3194 	qglGetTexLevelParameterfv    = 	dllGetTexLevelParameterfv    = GPA( "glGetLevelParameterfv" );
3195 	qglGetTexLevelParameteriv    = 	dllGetTexLevelParameteriv    = GPA( "glGetLevelParameteriv" );
3196 	qglGetTexParameterfv         = 	dllGetTexParameterfv         = GPA( "glGetTexParameterfv" );
3197 	qglGetTexParameteriv         = 	dllGetTexParameteriv         = GPA( "glGetTexParameteriv" );
3198 	qglHint                      = 	dllHint                      = GPA( "glHint" );
3199 	qglIndexMask                 = 	dllIndexMask                 = GPA( "glIndexMask" );
3200 	qglIndexPointer              = 	dllIndexPointer              = GPA( "glIndexPointer" );
3201 	qglIndexd                    = 	dllIndexd                    = GPA( "glIndexd" );
3202 	qglIndexdv                   = 	dllIndexdv                   = GPA( "glIndexdv" );
3203 	qglIndexf                    = 	dllIndexf                    = GPA( "glIndexf" );
3204 	qglIndexfv                   = 	dllIndexfv                   = GPA( "glIndexfv" );
3205 	qglIndexi                    = 	dllIndexi                    = GPA( "glIndexi" );
3206 	qglIndexiv                   = 	dllIndexiv                   = GPA( "glIndexiv" );
3207 	qglIndexs                    = 	dllIndexs                    = GPA( "glIndexs" );
3208 	qglIndexsv                   = 	dllIndexsv                   = GPA( "glIndexsv" );
3209 	qglIndexub                   = 	dllIndexub                   = GPA( "glIndexub" );
3210 	qglIndexubv                  = 	dllIndexubv                  = GPA( "glIndexubv" );
3211 	qglInitNames                 = 	dllInitNames                 = GPA( "glInitNames" );
3212 	qglInterleavedArrays         = 	dllInterleavedArrays         = GPA( "glInterleavedArrays" );
3213 	qglIsEnabled                 = 	dllIsEnabled                 = GPA( "glIsEnabled" );
3214 	qglIsList                    = 	dllIsList                    = GPA( "glIsList" );
3215 	qglIsTexture                 = 	dllIsTexture                 = GPA( "glIsTexture" );
3216 	qglLightModelf               = 	dllLightModelf               = GPA( "glLightModelf" );
3217 	qglLightModelfv              = 	dllLightModelfv              = GPA( "glLightModelfv" );
3218 	qglLightModeli               = 	dllLightModeli               = GPA( "glLightModeli" );
3219 	qglLightModeliv              = 	dllLightModeliv              = GPA( "glLightModeliv" );
3220 	qglLightf                    = 	dllLightf                    = GPA( "glLightf" );
3221 	qglLightfv                   = 	dllLightfv                   = GPA( "glLightfv" );
3222 	qglLighti                    = 	dllLighti                    = GPA( "glLighti" );
3223 	qglLightiv                   = 	dllLightiv                   = GPA( "glLightiv" );
3224 	qglLineStipple               = 	dllLineStipple               = GPA( "glLineStipple" );
3225 	qglLineWidth                 = 	dllLineWidth                 = GPA( "glLineWidth" );
3226 	qglListBase                  = 	dllListBase                  = GPA( "glListBase" );
3227 	qglLoadIdentity              = 	dllLoadIdentity              = GPA( "glLoadIdentity" );
3228 	qglLoadMatrixd               = 	dllLoadMatrixd               = GPA( "glLoadMatrixd" );
3229 	qglLoadMatrixf               = 	dllLoadMatrixf               = GPA( "glLoadMatrixf" );
3230 	qglLoadName                  = 	dllLoadName                  = GPA( "glLoadName" );
3231 	qglLogicOp                   = 	dllLogicOp                   = GPA( "glLogicOp" );
3232 	qglMap1d                     = 	dllMap1d                     = GPA( "glMap1d" );
3233 	qglMap1f                     = 	dllMap1f                     = GPA( "glMap1f" );
3234 	qglMap2d                     = 	dllMap2d                     = GPA( "glMap2d" );
3235 	qglMap2f                     = 	dllMap2f                     = GPA( "glMap2f" );
3236 	qglMapGrid1d                 = 	dllMapGrid1d                 = GPA( "glMapGrid1d" );
3237 	qglMapGrid1f                 = 	dllMapGrid1f                 = GPA( "glMapGrid1f" );
3238 	qglMapGrid2d                 = 	dllMapGrid2d                 = GPA( "glMapGrid2d" );
3239 	qglMapGrid2f                 = 	dllMapGrid2f                 = GPA( "glMapGrid2f" );
3240 	qglMaterialf                 = 	dllMaterialf                 = GPA( "glMaterialf" );
3241 	qglMaterialfv                = 	dllMaterialfv                = GPA( "glMaterialfv" );
3242 	qglMateriali                 = 	dllMateriali                 = GPA( "glMateriali" );
3243 	qglMaterialiv                = 	dllMaterialiv                = GPA( "glMaterialiv" );
3244 	qglMatrixMode                = 	dllMatrixMode                = GPA( "glMatrixMode" );
3245 	qglMultMatrixd               = 	dllMultMatrixd               = GPA( "glMultMatrixd" );
3246 	qglMultMatrixf               = 	dllMultMatrixf               = GPA( "glMultMatrixf" );
3247 	qglNewList                   = 	dllNewList                   = GPA( "glNewList" );
3248 	qglNormal3b                  = 	dllNormal3b                  = GPA( "glNormal3b" );
3249 	qglNormal3bv                 = 	dllNormal3bv                 = GPA( "glNormal3bv" );
3250 	qglNormal3d                  = 	dllNormal3d                  = GPA( "glNormal3d" );
3251 	qglNormal3dv                 = 	dllNormal3dv                 = GPA( "glNormal3dv" );
3252 	qglNormal3f                  = 	dllNormal3f                  = GPA( "glNormal3f" );
3253 	qglNormal3fv                 = 	dllNormal3fv                 = GPA( "glNormal3fv" );
3254 	qglNormal3i                  = 	dllNormal3i                  = GPA( "glNormal3i" );
3255 	qglNormal3iv                 = 	dllNormal3iv                 = GPA( "glNormal3iv" );
3256 	qglNormal3s                  = 	dllNormal3s                  = GPA( "glNormal3s" );
3257 	qglNormal3sv                 = 	dllNormal3sv                 = GPA( "glNormal3sv" );
3258 	qglNormalPointer             = 	dllNormalPointer             = GPA( "glNormalPointer" );
3259 	qglOrtho                     = 	dllOrtho                     = GPA( "glOrtho" );
3260 	qglPassThrough               = 	dllPassThrough               = GPA( "glPassThrough" );
3261 	qglPixelMapfv                = 	dllPixelMapfv                = GPA( "glPixelMapfv" );
3262 	qglPixelMapuiv               = 	dllPixelMapuiv               = GPA( "glPixelMapuiv" );
3263 	qglPixelMapusv               = 	dllPixelMapusv               = GPA( "glPixelMapusv" );
3264 	qglPixelStoref               = 	dllPixelStoref               = GPA( "glPixelStoref" );
3265 	qglPixelStorei               = 	dllPixelStorei               = GPA( "glPixelStorei" );
3266 	qglPixelTransferf            = 	dllPixelTransferf            = GPA( "glPixelTransferf" );
3267 	qglPixelTransferi            = 	dllPixelTransferi            = GPA( "glPixelTransferi" );
3268 	qglPixelZoom                 = 	dllPixelZoom                 = GPA( "glPixelZoom" );
3269 	qglPointSize                 = 	dllPointSize                 = GPA( "glPointSize" );
3270 	qglPolygonMode               = 	dllPolygonMode               = GPA( "glPolygonMode" );
3271 	qglPolygonOffset             = 	dllPolygonOffset             = GPA( "glPolygonOffset" );
3272 	qglPolygonStipple            = 	dllPolygonStipple            = GPA( "glPolygonStipple" );
3273 	qglPopAttrib                 = 	dllPopAttrib                 = GPA( "glPopAttrib" );
3274 	qglPopClientAttrib           = 	dllPopClientAttrib           = GPA( "glPopClientAttrib" );
3275 	qglPopMatrix                 = 	dllPopMatrix                 = GPA( "glPopMatrix" );
3276 	qglPopName                   = 	dllPopName                   = GPA( "glPopName" );
3277 	qglPrioritizeTextures        = 	dllPrioritizeTextures        = GPA( "glPrioritizeTextures" );
3278 	qglPushAttrib                = 	dllPushAttrib                = GPA( "glPushAttrib" );
3279 	qglPushClientAttrib          = 	dllPushClientAttrib          = GPA( "glPushClientAttrib" );
3280 	qglPushMatrix                = 	dllPushMatrix                = GPA( "glPushMatrix" );
3281 	qglPushName                  = 	dllPushName                  = GPA( "glPushName" );
3282 	qglRasterPos2d               = 	dllRasterPos2d               = GPA( "glRasterPos2d" );
3283 	qglRasterPos2dv              = 	dllRasterPos2dv              = GPA( "glRasterPos2dv" );
3284 	qglRasterPos2f               = 	dllRasterPos2f               = GPA( "glRasterPos2f" );
3285 	qglRasterPos2fv              = 	dllRasterPos2fv              = GPA( "glRasterPos2fv" );
3286 	qglRasterPos2i               = 	dllRasterPos2i               = GPA( "glRasterPos2i" );
3287 	qglRasterPos2iv              = 	dllRasterPos2iv              = GPA( "glRasterPos2iv" );
3288 	qglRasterPos2s               = 	dllRasterPos2s               = GPA( "glRasterPos2s" );
3289 	qglRasterPos2sv              = 	dllRasterPos2sv              = GPA( "glRasterPos2sv" );
3290 	qglRasterPos3d               = 	dllRasterPos3d               = GPA( "glRasterPos3d" );
3291 	qglRasterPos3dv              = 	dllRasterPos3dv              = GPA( "glRasterPos3dv" );
3292 	qglRasterPos3f               = 	dllRasterPos3f               = GPA( "glRasterPos3f" );
3293 	qglRasterPos3fv              = 	dllRasterPos3fv              = GPA( "glRasterPos3fv" );
3294 	qglRasterPos3i               = 	dllRasterPos3i               = GPA( "glRasterPos3i" );
3295 	qglRasterPos3iv              = 	dllRasterPos3iv              = GPA( "glRasterPos3iv" );
3296 	qglRasterPos3s               = 	dllRasterPos3s               = GPA( "glRasterPos3s" );
3297 	qglRasterPos3sv              = 	dllRasterPos3sv              = GPA( "glRasterPos3sv" );
3298 	qglRasterPos4d               = 	dllRasterPos4d               = GPA( "glRasterPos4d" );
3299 	qglRasterPos4dv              = 	dllRasterPos4dv              = GPA( "glRasterPos4dv" );
3300 	qglRasterPos4f               = 	dllRasterPos4f               = GPA( "glRasterPos4f" );
3301 	qglRasterPos4fv              = 	dllRasterPos4fv              = GPA( "glRasterPos4fv" );
3302 	qglRasterPos4i               = 	dllRasterPos4i               = GPA( "glRasterPos4i" );
3303 	qglRasterPos4iv              = 	dllRasterPos4iv              = GPA( "glRasterPos4iv" );
3304 	qglRasterPos4s               = 	dllRasterPos4s               = GPA( "glRasterPos4s" );
3305 	qglRasterPos4sv              = 	dllRasterPos4sv              = GPA( "glRasterPos4sv" );
3306 	qglReadBuffer                = 	dllReadBuffer                = GPA( "glReadBuffer" );
3307 	qglReadPixels                = 	dllReadPixels                = GPA( "glReadPixels" );
3308 	qglRectd                     = 	dllRectd                     = GPA( "glRectd" );
3309 	qglRectdv                    = 	dllRectdv                    = GPA( "glRectdv" );
3310 	qglRectf                     = 	dllRectf                     = GPA( "glRectf" );
3311 	qglRectfv                    = 	dllRectfv                    = GPA( "glRectfv" );
3312 	qglRecti                     = 	dllRecti                     = GPA( "glRecti" );
3313 	qglRectiv                    = 	dllRectiv                    = GPA( "glRectiv" );
3314 	qglRects                     = 	dllRects                     = GPA( "glRects" );
3315 	qglRectsv                    = 	dllRectsv                    = GPA( "glRectsv" );
3316 	qglRenderMode                = 	dllRenderMode                = GPA( "glRenderMode" );
3317 	qglRotated                   = 	dllRotated                   = GPA( "glRotated" );
3318 	qglRotatef                   = 	dllRotatef                   = GPA( "glRotatef" );
3319 	qglScaled                    = 	dllScaled                    = GPA( "glScaled" );
3320 	qglScalef                    = 	dllScalef                    = GPA( "glScalef" );
3321 	qglScissor                   = 	dllScissor                   = GPA( "glScissor" );
3322 	qglSelectBuffer              = 	dllSelectBuffer              = GPA( "glSelectBuffer" );
3323 	qglShadeModel                = 	dllShadeModel                = GPA( "glShadeModel" );
3324 	qglStencilFunc               = 	dllStencilFunc               = GPA( "glStencilFunc" );
3325 	qglStencilMask               = 	dllStencilMask               = GPA( "glStencilMask" );
3326 	qglStencilOp                 = 	dllStencilOp                 = GPA( "glStencilOp" );
3327 	qglTexCoord1d                = 	dllTexCoord1d                = GPA( "glTexCoord1d" );
3328 	qglTexCoord1dv               = 	dllTexCoord1dv               = GPA( "glTexCoord1dv" );
3329 	qglTexCoord1f                = 	dllTexCoord1f                = GPA( "glTexCoord1f" );
3330 	qglTexCoord1fv               = 	dllTexCoord1fv               = GPA( "glTexCoord1fv" );
3331 	qglTexCoord1i                = 	dllTexCoord1i                = GPA( "glTexCoord1i" );
3332 	qglTexCoord1iv               = 	dllTexCoord1iv               = GPA( "glTexCoord1iv" );
3333 	qglTexCoord1s                = 	dllTexCoord1s                = GPA( "glTexCoord1s" );
3334 	qglTexCoord1sv               = 	dllTexCoord1sv               = GPA( "glTexCoord1sv" );
3335 	qglTexCoord2d                = 	dllTexCoord2d                = GPA( "glTexCoord2d" );
3336 	qglTexCoord2dv               = 	dllTexCoord2dv               = GPA( "glTexCoord2dv" );
3337 	qglTexCoord2f                = 	dllTexCoord2f                = GPA( "glTexCoord2f" );
3338 	qglTexCoord2fv               = 	dllTexCoord2fv               = GPA( "glTexCoord2fv" );
3339 	qglTexCoord2i                = 	dllTexCoord2i                = GPA( "glTexCoord2i" );
3340 	qglTexCoord2iv               = 	dllTexCoord2iv               = GPA( "glTexCoord2iv" );
3341 	qglTexCoord2s                = 	dllTexCoord2s                = GPA( "glTexCoord2s" );
3342 	qglTexCoord2sv               = 	dllTexCoord2sv               = GPA( "glTexCoord2sv" );
3343 	qglTexCoord3d                = 	dllTexCoord3d                = GPA( "glTexCoord3d" );
3344 	qglTexCoord3dv               = 	dllTexCoord3dv               = GPA( "glTexCoord3dv" );
3345 	qglTexCoord3f                = 	dllTexCoord3f                = GPA( "glTexCoord3f" );
3346 	qglTexCoord3fv               = 	dllTexCoord3fv               = GPA( "glTexCoord3fv" );
3347 	qglTexCoord3i                = 	dllTexCoord3i                = GPA( "glTexCoord3i" );
3348 	qglTexCoord3iv               = 	dllTexCoord3iv               = GPA( "glTexCoord3iv" );
3349 	qglTexCoord3s                = 	dllTexCoord3s                = GPA( "glTexCoord3s" );
3350 	qglTexCoord3sv               = 	dllTexCoord3sv               = GPA( "glTexCoord3sv" );
3351 	qglTexCoord4d                = 	dllTexCoord4d                = GPA( "glTexCoord4d" );
3352 	qglTexCoord4dv               = 	dllTexCoord4dv               = GPA( "glTexCoord4dv" );
3353 	qglTexCoord4f                = 	dllTexCoord4f                = GPA( "glTexCoord4f" );
3354 	qglTexCoord4fv               = 	dllTexCoord4fv               = GPA( "glTexCoord4fv" );
3355 	qglTexCoord4i                = 	dllTexCoord4i                = GPA( "glTexCoord4i" );
3356 	qglTexCoord4iv               = 	dllTexCoord4iv               = GPA( "glTexCoord4iv" );
3357 	qglTexCoord4s                = 	dllTexCoord4s                = GPA( "glTexCoord4s" );
3358 	qglTexCoord4sv               = 	dllTexCoord4sv               = GPA( "glTexCoord4sv" );
3359 	qglTexCoordPointer           = 	dllTexCoordPointer           = GPA( "glTexCoordPointer" );
3360 	qglTexEnvf                   = 	dllTexEnvf                   = GPA( "glTexEnvf" );
3361 	qglTexEnvfv                  = 	dllTexEnvfv                  = GPA( "glTexEnvfv" );
3362 	qglTexEnvi                   = 	dllTexEnvi                   = GPA( "glTexEnvi" );
3363 	qglTexEnviv                  = 	dllTexEnviv                  = GPA( "glTexEnviv" );
3364 	qglTexGend                   = 	dllTexGend                   = GPA( "glTexGend" );
3365 	qglTexGendv                  = 	dllTexGendv                  = GPA( "glTexGendv" );
3366 	qglTexGenf                   = 	dllTexGenf                   = GPA( "glTexGenf" );
3367 	qglTexGenfv                  = 	dllTexGenfv                  = GPA( "glTexGenfv" );
3368 	qglTexGeni                   = 	dllTexGeni                   = GPA( "glTexGeni" );
3369 	qglTexGeniv                  = 	dllTexGeniv                  = GPA( "glTexGeniv" );
3370 	qglTexImage1D                = 	dllTexImage1D                = GPA( "glTexImage1D" );
3371 	qglTexImage2D                = 	dllTexImage2D                = GPA( "glTexImage2D" );
3372 	qglTexParameterf             = 	dllTexParameterf             = GPA( "glTexParameterf" );
3373 	qglTexParameterfv            = 	dllTexParameterfv            = GPA( "glTexParameterfv" );
3374 	qglTexParameteri             = 	dllTexParameteri             = GPA( "glTexParameteri" );
3375 	qglTexParameteriv            = 	dllTexParameteriv            = GPA( "glTexParameteriv" );
3376 	qglTexSubImage1D             = 	dllTexSubImage1D             = GPA( "glTexSubImage1D" );
3377 	qglTexSubImage2D             = 	dllTexSubImage2D             = GPA( "glTexSubImage2D" );
3378 	qglTranslated                = 	dllTranslated                = GPA( "glTranslated" );
3379 	qglTranslatef                = 	dllTranslatef                = GPA( "glTranslatef" );
3380 	qglVertex2d                  = 	dllVertex2d                  = GPA( "glVertex2d" );
3381 	qglVertex2dv                 = 	dllVertex2dv                 = GPA( "glVertex2dv" );
3382 	qglVertex2f                  = 	dllVertex2f                  = GPA( "glVertex2f" );
3383 	qglVertex2fv                 = 	dllVertex2fv                 = GPA( "glVertex2fv" );
3384 	qglVertex2i                  = 	dllVertex2i                  = GPA( "glVertex2i" );
3385 	qglVertex2iv                 = 	dllVertex2iv                 = GPA( "glVertex2iv" );
3386 	qglVertex2s                  = 	dllVertex2s                  = GPA( "glVertex2s" );
3387 	qglVertex2sv                 = 	dllVertex2sv                 = GPA( "glVertex2sv" );
3388 	qglVertex3d                  = 	dllVertex3d                  = GPA( "glVertex3d" );
3389 	qglVertex3dv                 = 	dllVertex3dv                 = GPA( "glVertex3dv" );
3390 	qglVertex3f                  = 	dllVertex3f                  = GPA( "glVertex3f" );
3391 	qglVertex3fv                 = 	dllVertex3fv                 = GPA( "glVertex3fv" );
3392 	qglVertex3i                  = 	dllVertex3i                  = GPA( "glVertex3i" );
3393 	qglVertex3iv                 = 	dllVertex3iv                 = GPA( "glVertex3iv" );
3394 	qglVertex3s                  = 	dllVertex3s                  = GPA( "glVertex3s" );
3395 	qglVertex3sv                 = 	dllVertex3sv                 = GPA( "glVertex3sv" );
3396 	qglVertex4d                  = 	dllVertex4d                  = GPA( "glVertex4d" );
3397 	qglVertex4dv                 = 	dllVertex4dv                 = GPA( "glVertex4dv" );
3398 	qglVertex4f                  = 	dllVertex4f                  = GPA( "glVertex4f" );
3399 	qglVertex4fv                 = 	dllVertex4fv                 = GPA( "glVertex4fv" );
3400 	qglVertex4i                  = 	dllVertex4i                  = GPA( "glVertex4i" );
3401 	qglVertex4iv                 = 	dllVertex4iv                 = GPA( "glVertex4iv" );
3402 	qglVertex4s                  = 	dllVertex4s                  = GPA( "glVertex4s" );
3403 	qglVertex4sv                 = 	dllVertex4sv                 = GPA( "glVertex4sv" );
3404 	qglVertexPointer             = 	dllVertexPointer             = GPA( "glVertexPointer" );
3405 	qglViewport                  = 	dllViewport                  = GPA( "glViewport" );
3406 
3407 	qwglCopyContext              = GPA( "wglCopyContext" );
3408 	qwglCreateContext            = GPA( "wglCreateContext" );
3409 	qwglCreateLayerContext       = GPA( "wglCreateLayerContext" );
3410 	qwglDeleteContext            = GPA( "wglDeleteContext" );
3411 	qwglDescribeLayerPlane       = GPA( "wglDescribeLayerPlane" );
3412 	qwglGetCurrentContext        = GPA( "wglGetCurrentContext" );
3413 	qwglGetCurrentDC             = GPA( "wglGetCurrentDC" );
3414 	qwglGetLayerPaletteEntries   = GPA( "wglGetLayerPaletteEntries" );
3415 	qwglGetProcAddress           = GPA( "wglGetProcAddress" );
3416 	qwglMakeCurrent              = GPA( "wglMakeCurrent" );
3417 	qwglRealizeLayerPalette      = GPA( "wglRealizeLayerPalette" );
3418 	qwglSetLayerPaletteEntries   = GPA( "wglSetLayerPaletteEntries" );
3419 	qwglShareLists               = GPA( "wglShareLists" );
3420 	qwglSwapLayerBuffers         = GPA( "wglSwapLayerBuffers" );
3421 	qwglUseFontBitmaps           = GPA( "wglUseFontBitmapsA" );
3422 	qwglUseFontOutlines          = GPA( "wglUseFontOutlinesA" );
3423 
3424 	qwglChoosePixelFormat        = GPA( "wglChoosePixelFormat" );
3425 	qwglDescribePixelFormat      = GPA( "wglDescribePixelFormat" );
3426 	qwglGetPixelFormat           = GPA( "wglGetPixelFormat" );
3427 	qwglSetPixelFormat           = GPA( "wglSetPixelFormat" );
3428 	qwglSwapBuffers              = GPA( "wglSwapBuffers" );
3429 
3430 	qwglSwapIntervalEXT = 0;
3431 	qglPointParameterfEXT = 0;
3432 	qglPointParameterfvEXT = 0;
3433 	qglColorTableEXT = 0;
3434 	qglSelectTextureARB = 0;
3435 	qglMTexCoord2fARB = 0;
3436 	qglMTexCoord3fARB = 0;
3437 	qglMultiTexCoord3fvARB = 0;
3438 
3439 	return true;
3440 }
3441 
GLimp_EnableLogging(qboolean enable)3442 void GLimp_EnableLogging( qboolean enable )
3443 {
3444 	if ( enable )
3445 	{
3446 		if ( !glw_state.log_fp )
3447 		{
3448 			struct tm *newtime;
3449 			time_t aclock;
3450 			char buffer[1024];
3451 
3452 			time( &aclock );
3453 			newtime = localtime( &aclock );
3454 
3455 			asctime( newtime );
3456 
3457 			Com_sprintf( buffer, sizeof(buffer), "%s/gl.log", FS_Gamedir() );
3458 			glw_state.log_fp = fopen( buffer, "wt" );
3459 
3460 			fprintf( glw_state.log_fp, "%s\n", asctime( newtime ) );
3461 		}
3462 
3463 		qglAccum                     = logAccum;
3464 		qglAlphaFunc                 = logAlphaFunc;
3465 		qglAreTexturesResident       = logAreTexturesResident;
3466 		qglArrayElement              = logArrayElement;
3467 		qglBegin                     = logBegin;
3468 		qglBindTexture               = logBindTexture;
3469 		qglBitmap                    = logBitmap;
3470 		qglBlendFunc                 = logBlendFunc;
3471 		qglCallList                  = logCallList;
3472 		qglCallLists                 = logCallLists;
3473 		qglClear                     = logClear;
3474 		qglClearAccum                = logClearAccum;
3475 		qglClearColor                = logClearColor;
3476 		qglClearDepth                = logClearDepth;
3477 		qglClearIndex                = logClearIndex;
3478 		qglClearStencil              = logClearStencil;
3479 		qglClipPlane                 = logClipPlane;
3480 		qglColor3b                   = logColor3b;
3481 		qglColor3bv                  = logColor3bv;
3482 		qglColor3d                   = logColor3d;
3483 		qglColor3dv                  = logColor3dv;
3484 		qglColor3f                   = logColor3f;
3485 		qglColor3fv                  = logColor3fv;
3486 		qglColor3i                   = logColor3i;
3487 		qglColor3iv                  = logColor3iv;
3488 		qglColor3s                   = logColor3s;
3489 		qglColor3sv                  = logColor3sv;
3490 		qglColor3ub                  = logColor3ub;
3491 		qglColor3ubv                 = logColor3ubv;
3492 		qglColor3ui                  = logColor3ui;
3493 		qglColor3uiv                 = logColor3uiv;
3494 		qglColor3us                  = logColor3us;
3495 		qglColor3usv                 = logColor3usv;
3496 		qglColor4b                   = logColor4b;
3497 		qglColor4bv                  = logColor4bv;
3498 		qglColor4d                   = logColor4d;
3499 		qglColor4dv                  = logColor4dv;
3500 		qglColor4f                   = logColor4f;
3501 		qglColor4fv                  = logColor4fv;
3502 		qglColor4i                   = logColor4i;
3503 		qglColor4iv                  = logColor4iv;
3504 		qglColor4s                   = logColor4s;
3505 		qglColor4sv                  = logColor4sv;
3506 		qglColor4ub                  = logColor4ub;
3507 		qglColor4ubv                 = logColor4ubv;
3508 		qglColor4ui                  = logColor4ui;
3509 		qglColor4uiv                 = logColor4uiv;
3510 		qglColor4us                  = logColor4us;
3511 		qglColor4usv                 = logColor4usv;
3512 		qglColorMask                 = logColorMask;
3513 		qglColorMaterial             = logColorMaterial;
3514 		qglColorPointer              = logColorPointer;
3515 		qglCopyPixels                = logCopyPixels;
3516 		qglCopyTexImage1D            = logCopyTexImage1D;
3517 		qglCopyTexImage2D            = logCopyTexImage2D;
3518 		qglCopyTexSubImage1D         = logCopyTexSubImage1D;
3519 		qglCopyTexSubImage2D         = logCopyTexSubImage2D;
3520 		qglCullFace                  = logCullFace;
3521 		qglDeleteLists               = logDeleteLists ;
3522 		qglDeleteTextures            = logDeleteTextures ;
3523 		qglDepthFunc                 = logDepthFunc ;
3524 		qglDepthMask                 = logDepthMask ;
3525 		qglDepthRange                = logDepthRange ;
3526 		qglDisable                   = logDisable ;
3527 		qglDisableClientState        = logDisableClientState ;
3528 		qglDrawArrays                = logDrawArrays ;
3529 		qglDrawBuffer                = logDrawBuffer ;
3530 		qglDrawElements              = logDrawElements ;
3531 		qglDrawPixels                = logDrawPixels ;
3532 		qglEdgeFlag                  = logEdgeFlag ;
3533 		qglEdgeFlagPointer           = logEdgeFlagPointer ;
3534 		qglEdgeFlagv                 = logEdgeFlagv ;
3535 		qglEnable                    = 	logEnable                    ;
3536 		qglEnableClientState         = 	logEnableClientState         ;
3537 		qglEnd                       = 	logEnd                       ;
3538 		qglEndList                   = 	logEndList                   ;
3539 		qglEvalCoord1d				 = 	logEvalCoord1d				 ;
3540 		qglEvalCoord1dv              = 	logEvalCoord1dv              ;
3541 		qglEvalCoord1f               = 	logEvalCoord1f               ;
3542 		qglEvalCoord1fv              = 	logEvalCoord1fv              ;
3543 		qglEvalCoord2d               = 	logEvalCoord2d               ;
3544 		qglEvalCoord2dv              = 	logEvalCoord2dv              ;
3545 		qglEvalCoord2f               = 	logEvalCoord2f               ;
3546 		qglEvalCoord2fv              = 	logEvalCoord2fv              ;
3547 		qglEvalMesh1                 = 	logEvalMesh1                 ;
3548 		qglEvalMesh2                 = 	logEvalMesh2                 ;
3549 		qglEvalPoint1                = 	logEvalPoint1                ;
3550 		qglEvalPoint2                = 	logEvalPoint2                ;
3551 		qglFeedbackBuffer            = 	logFeedbackBuffer            ;
3552 		qglFinish                    = 	logFinish                    ;
3553 		qglFlush                     = 	logFlush                     ;
3554 		qglFogf                      = 	logFogf                      ;
3555 		qglFogfv                     = 	logFogfv                     ;
3556 		qglFogi                      = 	logFogi                      ;
3557 		qglFogiv                     = 	logFogiv                     ;
3558 		qglFrontFace                 = 	logFrontFace                 ;
3559 		qglFrustum                   = 	logFrustum                   ;
3560 		qglGenLists                  = 	logGenLists                  ;
3561 		qglGenTextures               = 	logGenTextures               ;
3562 		qglGetBooleanv               = 	logGetBooleanv               ;
3563 		qglGetClipPlane              = 	logGetClipPlane              ;
3564 		qglGetDoublev                = 	logGetDoublev                ;
3565 		qglGetError                  = 	logGetError                  ;
3566 		qglGetFloatv                 = 	logGetFloatv                 ;
3567 		qglGetIntegerv               = 	logGetIntegerv               ;
3568 		qglGetLightfv                = 	logGetLightfv                ;
3569 		qglGetLightiv                = 	logGetLightiv                ;
3570 		qglGetMapdv                  = 	logGetMapdv                  ;
3571 		qglGetMapfv                  = 	logGetMapfv                  ;
3572 		qglGetMapiv                  = 	logGetMapiv                  ;
3573 		qglGetMaterialfv             = 	logGetMaterialfv             ;
3574 		qglGetMaterialiv             = 	logGetMaterialiv             ;
3575 		qglGetPixelMapfv             = 	logGetPixelMapfv             ;
3576 		qglGetPixelMapuiv            = 	logGetPixelMapuiv            ;
3577 		qglGetPixelMapusv            = 	logGetPixelMapusv            ;
3578 		qglGetPointerv               = 	logGetPointerv               ;
3579 		qglGetPolygonStipple         = 	logGetPolygonStipple         ;
3580 		qglGetString                 = 	logGetString                 ;
3581 		qglGetTexEnvfv               = 	logGetTexEnvfv               ;
3582 		qglGetTexEnviv               = 	logGetTexEnviv               ;
3583 		qglGetTexGendv               = 	logGetTexGendv               ;
3584 		qglGetTexGenfv               = 	logGetTexGenfv               ;
3585 		qglGetTexGeniv               = 	logGetTexGeniv               ;
3586 		qglGetTexImage               = 	logGetTexImage               ;
3587 		qglGetTexLevelParameterfv    = 	logGetTexLevelParameterfv    ;
3588 		qglGetTexLevelParameteriv    = 	logGetTexLevelParameteriv    ;
3589 		qglGetTexParameterfv         = 	logGetTexParameterfv         ;
3590 		qglGetTexParameteriv         = 	logGetTexParameteriv         ;
3591 		qglHint                      = 	logHint                      ;
3592 		qglIndexMask                 = 	logIndexMask                 ;
3593 		qglIndexPointer              = 	logIndexPointer              ;
3594 		qglIndexd                    = 	logIndexd                    ;
3595 		qglIndexdv                   = 	logIndexdv                   ;
3596 		qglIndexf                    = 	logIndexf                    ;
3597 		qglIndexfv                   = 	logIndexfv                   ;
3598 		qglIndexi                    = 	logIndexi                    ;
3599 		qglIndexiv                   = 	logIndexiv                   ;
3600 		qglIndexs                    = 	logIndexs                    ;
3601 		qglIndexsv                   = 	logIndexsv                   ;
3602 		qglIndexub                   = 	logIndexub                   ;
3603 		qglIndexubv                  = 	logIndexubv                  ;
3604 		qglInitNames                 = 	logInitNames                 ;
3605 		qglInterleavedArrays         = 	logInterleavedArrays         ;
3606 		qglIsEnabled                 = 	logIsEnabled                 ;
3607 		qglIsList                    = 	logIsList                    ;
3608 		qglIsTexture                 = 	logIsTexture                 ;
3609 		qglLightModelf               = 	logLightModelf               ;
3610 		qglLightModelfv              = 	logLightModelfv              ;
3611 		qglLightModeli               = 	logLightModeli               ;
3612 		qglLightModeliv              = 	logLightModeliv              ;
3613 		qglLightf                    = 	logLightf                    ;
3614 		qglLightfv                   = 	logLightfv                   ;
3615 		qglLighti                    = 	logLighti                    ;
3616 		qglLightiv                   = 	logLightiv                   ;
3617 		qglLineStipple               = 	logLineStipple               ;
3618 		qglLineWidth                 = 	logLineWidth                 ;
3619 		qglListBase                  = 	logListBase                  ;
3620 		qglLoadIdentity              = 	logLoadIdentity              ;
3621 		qglLoadMatrixd               = 	logLoadMatrixd               ;
3622 		qglLoadMatrixf               = 	logLoadMatrixf               ;
3623 		qglLoadName                  = 	logLoadName                  ;
3624 		qglLogicOp                   = 	logLogicOp                   ;
3625 		qglMap1d                     = 	logMap1d                     ;
3626 		qglMap1f                     = 	logMap1f                     ;
3627 		qglMap2d                     = 	logMap2d                     ;
3628 		qglMap2f                     = 	logMap2f                     ;
3629 		qglMapGrid1d                 = 	logMapGrid1d                 ;
3630 		qglMapGrid1f                 = 	logMapGrid1f                 ;
3631 		qglMapGrid2d                 = 	logMapGrid2d                 ;
3632 		qglMapGrid2f                 = 	logMapGrid2f                 ;
3633 		qglMaterialf                 = 	logMaterialf                 ;
3634 		qglMaterialfv                = 	logMaterialfv                ;
3635 		qglMateriali                 = 	logMateriali                 ;
3636 		qglMaterialiv                = 	logMaterialiv                ;
3637 		qglMatrixMode                = 	logMatrixMode                ;
3638 		qglMultMatrixd               = 	logMultMatrixd               ;
3639 		qglMultMatrixf               = 	logMultMatrixf               ;
3640 		qglNewList                   = 	logNewList                   ;
3641 		qglNormal3b                  = 	logNormal3b                  ;
3642 		qglNormal3bv                 = 	logNormal3bv                 ;
3643 		qglNormal3d                  = 	logNormal3d                  ;
3644 		qglNormal3dv                 = 	logNormal3dv                 ;
3645 		qglNormal3f                  = 	logNormal3f                  ;
3646 		qglNormal3fv                 = 	logNormal3fv                 ;
3647 		qglNormal3i                  = 	logNormal3i                  ;
3648 		qglNormal3iv                 = 	logNormal3iv                 ;
3649 		qglNormal3s                  = 	logNormal3s                  ;
3650 		qglNormal3sv                 = 	logNormal3sv                 ;
3651 		qglNormalPointer             = 	logNormalPointer             ;
3652 		qglOrtho                     = 	logOrtho                     ;
3653 		qglPassThrough               = 	logPassThrough               ;
3654 		qglPixelMapfv                = 	logPixelMapfv                ;
3655 		qglPixelMapuiv               = 	logPixelMapuiv               ;
3656 		qglPixelMapusv               = 	logPixelMapusv               ;
3657 		qglPixelStoref               = 	logPixelStoref               ;
3658 		qglPixelStorei               = 	logPixelStorei               ;
3659 		qglPixelTransferf            = 	logPixelTransferf            ;
3660 		qglPixelTransferi            = 	logPixelTransferi            ;
3661 		qglPixelZoom                 = 	logPixelZoom                 ;
3662 		qglPointSize                 = 	logPointSize                 ;
3663 		qglPolygonMode               = 	logPolygonMode               ;
3664 		qglPolygonOffset             = 	logPolygonOffset             ;
3665 		qglPolygonStipple            = 	logPolygonStipple            ;
3666 		qglPopAttrib                 = 	logPopAttrib                 ;
3667 		qglPopClientAttrib           = 	logPopClientAttrib           ;
3668 		qglPopMatrix                 = 	logPopMatrix                 ;
3669 		qglPopName                   = 	logPopName                   ;
3670 		qglPrioritizeTextures        = 	logPrioritizeTextures        ;
3671 		qglPushAttrib                = 	logPushAttrib                ;
3672 		qglPushClientAttrib          = 	logPushClientAttrib          ;
3673 		qglPushMatrix                = 	logPushMatrix                ;
3674 		qglPushName                  = 	logPushName                  ;
3675 		qglRasterPos2d               = 	logRasterPos2d               ;
3676 		qglRasterPos2dv              = 	logRasterPos2dv              ;
3677 		qglRasterPos2f               = 	logRasterPos2f               ;
3678 		qglRasterPos2fv              = 	logRasterPos2fv              ;
3679 		qglRasterPos2i               = 	logRasterPos2i               ;
3680 		qglRasterPos2iv              = 	logRasterPos2iv              ;
3681 		qglRasterPos2s               = 	logRasterPos2s               ;
3682 		qglRasterPos2sv              = 	logRasterPos2sv              ;
3683 		qglRasterPos3d               = 	logRasterPos3d               ;
3684 		qglRasterPos3dv              = 	logRasterPos3dv              ;
3685 		qglRasterPos3f               = 	logRasterPos3f               ;
3686 		qglRasterPos3fv              = 	logRasterPos3fv              ;
3687 		qglRasterPos3i               = 	logRasterPos3i               ;
3688 		qglRasterPos3iv              = 	logRasterPos3iv              ;
3689 		qglRasterPos3s               = 	logRasterPos3s               ;
3690 		qglRasterPos3sv              = 	logRasterPos3sv              ;
3691 		qglRasterPos4d               = 	logRasterPos4d               ;
3692 		qglRasterPos4dv              = 	logRasterPos4dv              ;
3693 		qglRasterPos4f               = 	logRasterPos4f               ;
3694 		qglRasterPos4fv              = 	logRasterPos4fv              ;
3695 		qglRasterPos4i               = 	logRasterPos4i               ;
3696 		qglRasterPos4iv              = 	logRasterPos4iv              ;
3697 		qglRasterPos4s               = 	logRasterPos4s               ;
3698 		qglRasterPos4sv              = 	logRasterPos4sv              ;
3699 		qglReadBuffer                = 	logReadBuffer                ;
3700 		qglReadPixels                = 	logReadPixels                ;
3701 		qglRectd                     = 	logRectd                     ;
3702 		qglRectdv                    = 	logRectdv                    ;
3703 		qglRectf                     = 	logRectf                     ;
3704 		qglRectfv                    = 	logRectfv                    ;
3705 		qglRecti                     = 	logRecti                     ;
3706 		qglRectiv                    = 	logRectiv                    ;
3707 		qglRects                     = 	logRects                     ;
3708 		qglRectsv                    = 	logRectsv                    ;
3709 		qglRenderMode                = 	logRenderMode                ;
3710 		qglRotated                   = 	logRotated                   ;
3711 		qglRotatef                   = 	logRotatef                   ;
3712 		qglScaled                    = 	logScaled                    ;
3713 		qglScalef                    = 	logScalef                    ;
3714 		qglScissor                   = 	logScissor                   ;
3715 		qglSelectBuffer              = 	logSelectBuffer              ;
3716 		qglShadeModel                = 	logShadeModel                ;
3717 		qglStencilFunc               = 	logStencilFunc               ;
3718 		qglStencilMask               = 	logStencilMask               ;
3719 		qglStencilOp                 = 	logStencilOp                 ;
3720 		qglTexCoord1d                = 	logTexCoord1d                ;
3721 		qglTexCoord1dv               = 	logTexCoord1dv               ;
3722 		qglTexCoord1f                = 	logTexCoord1f                ;
3723 		qglTexCoord1fv               = 	logTexCoord1fv               ;
3724 		qglTexCoord1i                = 	logTexCoord1i                ;
3725 		qglTexCoord1iv               = 	logTexCoord1iv               ;
3726 		qglTexCoord1s                = 	logTexCoord1s                ;
3727 		qglTexCoord1sv               = 	logTexCoord1sv               ;
3728 		qglTexCoord2d                = 	logTexCoord2d                ;
3729 		qglTexCoord2dv               = 	logTexCoord2dv               ;
3730 		qglTexCoord2f                = 	logTexCoord2f                ;
3731 		qglTexCoord2fv               = 	logTexCoord2fv               ;
3732 		qglTexCoord2i                = 	logTexCoord2i                ;
3733 		qglTexCoord2iv               = 	logTexCoord2iv               ;
3734 		qglTexCoord2s                = 	logTexCoord2s                ;
3735 		qglTexCoord2sv               = 	logTexCoord2sv               ;
3736 		qglTexCoord3d                = 	logTexCoord3d                ;
3737 		qglTexCoord3dv               = 	logTexCoord3dv               ;
3738 		qglTexCoord3f                = 	logTexCoord3f                ;
3739 		qglTexCoord3fv               = 	logTexCoord3fv               ;
3740 		qglTexCoord3i                = 	logTexCoord3i                ;
3741 		qglTexCoord3iv               = 	logTexCoord3iv               ;
3742 		qglTexCoord3s                = 	logTexCoord3s                ;
3743 		qglTexCoord3sv               = 	logTexCoord3sv               ;
3744 		qglTexCoord4d                = 	logTexCoord4d                ;
3745 		qglTexCoord4dv               = 	logTexCoord4dv               ;
3746 		qglTexCoord4f                = 	logTexCoord4f                ;
3747 		qglTexCoord4fv               = 	logTexCoord4fv               ;
3748 		qglTexCoord4i                = 	logTexCoord4i                ;
3749 		qglTexCoord4iv               = 	logTexCoord4iv               ;
3750 		qglTexCoord4s                = 	logTexCoord4s                ;
3751 		qglTexCoord4sv               = 	logTexCoord4sv               ;
3752 		qglTexCoordPointer           = 	logTexCoordPointer           ;
3753 		qglTexEnvf                   = 	logTexEnvf                   ;
3754 		qglTexEnvfv                  = 	logTexEnvfv                  ;
3755 		qglTexEnvi                   = 	logTexEnvi                   ;
3756 		qglTexEnviv                  = 	logTexEnviv                  ;
3757 		qglTexGend                   = 	logTexGend                   ;
3758 		qglTexGendv                  = 	logTexGendv                  ;
3759 		qglTexGenf                   = 	logTexGenf                   ;
3760 		qglTexGenfv                  = 	logTexGenfv                  ;
3761 		qglTexGeni                   = 	logTexGeni                   ;
3762 		qglTexGeniv                  = 	logTexGeniv                  ;
3763 		qglTexImage1D                = 	logTexImage1D                ;
3764 		qglTexImage2D                = 	logTexImage2D                ;
3765 		qglTexParameterf             = 	logTexParameterf             ;
3766 		qglTexParameterfv            = 	logTexParameterfv            ;
3767 		qglTexParameteri             = 	logTexParameteri             ;
3768 		qglTexParameteriv            = 	logTexParameteriv            ;
3769 		qglTexSubImage1D             = 	logTexSubImage1D             ;
3770 		qglTexSubImage2D             = 	logTexSubImage2D             ;
3771 		qglTranslated                = 	logTranslated                ;
3772 		qglTranslatef                = 	logTranslatef                ;
3773 		qglVertex2d                  = 	logVertex2d                  ;
3774 		qglVertex2dv                 = 	logVertex2dv                 ;
3775 		qglVertex2f                  = 	logVertex2f                  ;
3776 		qglVertex2fv                 = 	logVertex2fv                 ;
3777 		qglVertex2i                  = 	logVertex2i                  ;
3778 		qglVertex2iv                 = 	logVertex2iv                 ;
3779 		qglVertex2s                  = 	logVertex2s                  ;
3780 		qglVertex2sv                 = 	logVertex2sv                 ;
3781 		qglVertex3d                  = 	logVertex3d                  ;
3782 		qglVertex3dv                 = 	logVertex3dv                 ;
3783 		qglVertex3f                  = 	logVertex3f                  ;
3784 		qglVertex3fv                 = 	logVertex3fv                 ;
3785 		qglVertex3i                  = 	logVertex3i                  ;
3786 		qglVertex3iv                 = 	logVertex3iv                 ;
3787 		qglVertex3s                  = 	logVertex3s                  ;
3788 		qglVertex3sv                 = 	logVertex3sv                 ;
3789 		qglVertex4d                  = 	logVertex4d                  ;
3790 		qglVertex4dv                 = 	logVertex4dv                 ;
3791 		qglVertex4f                  = 	logVertex4f                  ;
3792 		qglVertex4fv                 = 	logVertex4fv                 ;
3793 		qglVertex4i                  = 	logVertex4i                  ;
3794 		qglVertex4iv                 = 	logVertex4iv                 ;
3795 		qglVertex4s                  = 	logVertex4s                  ;
3796 		qglVertex4sv                 = 	logVertex4sv                 ;
3797 		qglVertexPointer             = 	logVertexPointer             ;
3798 		qglViewport                  = 	logViewport                  ;
3799 	}
3800 	else
3801 	{
3802 		qglAccum                     = dllAccum;
3803 		qglAlphaFunc                 = dllAlphaFunc;
3804 		qglAreTexturesResident       = dllAreTexturesResident;
3805 		qglArrayElement              = dllArrayElement;
3806 		qglBegin                     = dllBegin;
3807 		qglBindTexture               = dllBindTexture;
3808 		qglBitmap                    = dllBitmap;
3809 		qglBlendFunc                 = dllBlendFunc;
3810 		qglCallList                  = dllCallList;
3811 		qglCallLists                 = dllCallLists;
3812 		qglClear                     = dllClear;
3813 		qglClearAccum                = dllClearAccum;
3814 		qglClearColor                = dllClearColor;
3815 		qglClearDepth                = dllClearDepth;
3816 		qglClearIndex                = dllClearIndex;
3817 		qglClearStencil              = dllClearStencil;
3818 		qglClipPlane                 = dllClipPlane;
3819 		qglColor3b                   = dllColor3b;
3820 		qglColor3bv                  = dllColor3bv;
3821 		qglColor3d                   = dllColor3d;
3822 		qglColor3dv                  = dllColor3dv;
3823 		qglColor3f                   = dllColor3f;
3824 		qglColor3fv                  = dllColor3fv;
3825 		qglColor3i                   = dllColor3i;
3826 		qglColor3iv                  = dllColor3iv;
3827 		qglColor3s                   = dllColor3s;
3828 		qglColor3sv                  = dllColor3sv;
3829 		qglColor3ub                  = dllColor3ub;
3830 		qglColor3ubv                 = dllColor3ubv;
3831 		qglColor3ui                  = dllColor3ui;
3832 		qglColor3uiv                 = dllColor3uiv;
3833 		qglColor3us                  = dllColor3us;
3834 		qglColor3usv                 = dllColor3usv;
3835 		qglColor4b                   = dllColor4b;
3836 		qglColor4bv                  = dllColor4bv;
3837 		qglColor4d                   = dllColor4d;
3838 		qglColor4dv                  = dllColor4dv;
3839 		qglColor4f                   = dllColor4f;
3840 		qglColor4fv                  = dllColor4fv;
3841 		qglColor4i                   = dllColor4i;
3842 		qglColor4iv                  = dllColor4iv;
3843 		qglColor4s                   = dllColor4s;
3844 		qglColor4sv                  = dllColor4sv;
3845 		qglColor4ub                  = dllColor4ub;
3846 		qglColor4ubv                 = dllColor4ubv;
3847 		qglColor4ui                  = dllColor4ui;
3848 		qglColor4uiv                 = dllColor4uiv;
3849 		qglColor4us                  = dllColor4us;
3850 		qglColor4usv                 = dllColor4usv;
3851 		qglColorMask                 = dllColorMask;
3852 		qglColorMaterial             = dllColorMaterial;
3853 		qglColorPointer              = dllColorPointer;
3854 		qglCopyPixels                = dllCopyPixels;
3855 		qglCopyTexImage1D            = dllCopyTexImage1D;
3856 		qglCopyTexImage2D            = dllCopyTexImage2D;
3857 		qglCopyTexSubImage1D         = dllCopyTexSubImage1D;
3858 		qglCopyTexSubImage2D         = dllCopyTexSubImage2D;
3859 		qglCullFace                  = dllCullFace;
3860 		qglDeleteLists               = dllDeleteLists ;
3861 		qglDeleteTextures            = dllDeleteTextures ;
3862 		qglDepthFunc                 = dllDepthFunc ;
3863 		qglDepthMask                 = dllDepthMask ;
3864 		qglDepthRange                = dllDepthRange ;
3865 		qglDisable                   = dllDisable ;
3866 		qglDisableClientState        = dllDisableClientState ;
3867 		qglDrawArrays                = dllDrawArrays ;
3868 		qglDrawBuffer                = dllDrawBuffer ;
3869 		qglDrawElements              = dllDrawElements ;
3870 		qglDrawPixels                = dllDrawPixels ;
3871 		qglEdgeFlag                  = dllEdgeFlag ;
3872 		qglEdgeFlagPointer           = dllEdgeFlagPointer ;
3873 		qglEdgeFlagv                 = dllEdgeFlagv ;
3874 		qglEnable                    = 	dllEnable                    ;
3875 		qglEnableClientState         = 	dllEnableClientState         ;
3876 		qglEnd                       = 	dllEnd                       ;
3877 		qglEndList                   = 	dllEndList                   ;
3878 		qglEvalCoord1d				 = 	dllEvalCoord1d				 ;
3879 		qglEvalCoord1dv              = 	dllEvalCoord1dv              ;
3880 		qglEvalCoord1f               = 	dllEvalCoord1f               ;
3881 		qglEvalCoord1fv              = 	dllEvalCoord1fv              ;
3882 		qglEvalCoord2d               = 	dllEvalCoord2d               ;
3883 		qglEvalCoord2dv              = 	dllEvalCoord2dv              ;
3884 		qglEvalCoord2f               = 	dllEvalCoord2f               ;
3885 		qglEvalCoord2fv              = 	dllEvalCoord2fv              ;
3886 		qglEvalMesh1                 = 	dllEvalMesh1                 ;
3887 		qglEvalMesh2                 = 	dllEvalMesh2                 ;
3888 		qglEvalPoint1                = 	dllEvalPoint1                ;
3889 		qglEvalPoint2                = 	dllEvalPoint2                ;
3890 		qglFeedbackBuffer            = 	dllFeedbackBuffer            ;
3891 		qglFinish                    = 	dllFinish                    ;
3892 		qglFlush                     = 	dllFlush                     ;
3893 		qglFogf                      = 	dllFogf                      ;
3894 		qglFogfv                     = 	dllFogfv                     ;
3895 		qglFogi                      = 	dllFogi                      ;
3896 		qglFogiv                     = 	dllFogiv                     ;
3897 		qglFrontFace                 = 	dllFrontFace                 ;
3898 		qglFrustum                   = 	dllFrustum                   ;
3899 		qglGenLists                  = 	dllGenLists                  ;
3900 		qglGenTextures               = 	dllGenTextures               ;
3901 		qglGetBooleanv               = 	dllGetBooleanv               ;
3902 		qglGetClipPlane              = 	dllGetClipPlane              ;
3903 		qglGetDoublev                = 	dllGetDoublev                ;
3904 		qglGetError                  = 	dllGetError                  ;
3905 		qglGetFloatv                 = 	dllGetFloatv                 ;
3906 		qglGetIntegerv               = 	dllGetIntegerv               ;
3907 		qglGetLightfv                = 	dllGetLightfv                ;
3908 		qglGetLightiv                = 	dllGetLightiv                ;
3909 		qglGetMapdv                  = 	dllGetMapdv                  ;
3910 		qglGetMapfv                  = 	dllGetMapfv                  ;
3911 		qglGetMapiv                  = 	dllGetMapiv                  ;
3912 		qglGetMaterialfv             = 	dllGetMaterialfv             ;
3913 		qglGetMaterialiv             = 	dllGetMaterialiv             ;
3914 		qglGetPixelMapfv             = 	dllGetPixelMapfv             ;
3915 		qglGetPixelMapuiv            = 	dllGetPixelMapuiv            ;
3916 		qglGetPixelMapusv            = 	dllGetPixelMapusv            ;
3917 		qglGetPointerv               = 	dllGetPointerv               ;
3918 		qglGetPolygonStipple         = 	dllGetPolygonStipple         ;
3919 		qglGetString                 = 	dllGetString                 ;
3920 		qglGetTexEnvfv               = 	dllGetTexEnvfv               ;
3921 		qglGetTexEnviv               = 	dllGetTexEnviv               ;
3922 		qglGetTexGendv               = 	dllGetTexGendv               ;
3923 		qglGetTexGenfv               = 	dllGetTexGenfv               ;
3924 		qglGetTexGeniv               = 	dllGetTexGeniv               ;
3925 		qglGetTexImage               = 	dllGetTexImage               ;
3926 		qglGetTexLevelParameterfv    = 	dllGetTexLevelParameterfv    ;
3927 		qglGetTexLevelParameteriv    = 	dllGetTexLevelParameteriv    ;
3928 		qglGetTexParameterfv         = 	dllGetTexParameterfv         ;
3929 		qglGetTexParameteriv         = 	dllGetTexParameteriv         ;
3930 		qglHint                      = 	dllHint                      ;
3931 		qglIndexMask                 = 	dllIndexMask                 ;
3932 		qglIndexPointer              = 	dllIndexPointer              ;
3933 		qglIndexd                    = 	dllIndexd                    ;
3934 		qglIndexdv                   = 	dllIndexdv                   ;
3935 		qglIndexf                    = 	dllIndexf                    ;
3936 		qglIndexfv                   = 	dllIndexfv                   ;
3937 		qglIndexi                    = 	dllIndexi                    ;
3938 		qglIndexiv                   = 	dllIndexiv                   ;
3939 		qglIndexs                    = 	dllIndexs                    ;
3940 		qglIndexsv                   = 	dllIndexsv                   ;
3941 		qglIndexub                   = 	dllIndexub                   ;
3942 		qglIndexubv                  = 	dllIndexubv                  ;
3943 		qglInitNames                 = 	dllInitNames                 ;
3944 		qglInterleavedArrays         = 	dllInterleavedArrays         ;
3945 		qglIsEnabled                 = 	dllIsEnabled                 ;
3946 		qglIsList                    = 	dllIsList                    ;
3947 		qglIsTexture                 = 	dllIsTexture                 ;
3948 		qglLightModelf               = 	dllLightModelf               ;
3949 		qglLightModelfv              = 	dllLightModelfv              ;
3950 		qglLightModeli               = 	dllLightModeli               ;
3951 		qglLightModeliv              = 	dllLightModeliv              ;
3952 		qglLightf                    = 	dllLightf                    ;
3953 		qglLightfv                   = 	dllLightfv                   ;
3954 		qglLighti                    = 	dllLighti                    ;
3955 		qglLightiv                   = 	dllLightiv                   ;
3956 		qglLineStipple               = 	dllLineStipple               ;
3957 		qglLineWidth                 = 	dllLineWidth                 ;
3958 		qglListBase                  = 	dllListBase                  ;
3959 		qglLoadIdentity              = 	dllLoadIdentity              ;
3960 		qglLoadMatrixd               = 	dllLoadMatrixd               ;
3961 		qglLoadMatrixf               = 	dllLoadMatrixf               ;
3962 		qglLoadName                  = 	dllLoadName                  ;
3963 		qglLogicOp                   = 	dllLogicOp                   ;
3964 		qglMap1d                     = 	dllMap1d                     ;
3965 		qglMap1f                     = 	dllMap1f                     ;
3966 		qglMap2d                     = 	dllMap2d                     ;
3967 		qglMap2f                     = 	dllMap2f                     ;
3968 		qglMapGrid1d                 = 	dllMapGrid1d                 ;
3969 		qglMapGrid1f                 = 	dllMapGrid1f                 ;
3970 		qglMapGrid2d                 = 	dllMapGrid2d                 ;
3971 		qglMapGrid2f                 = 	dllMapGrid2f                 ;
3972 		qglMaterialf                 = 	dllMaterialf                 ;
3973 		qglMaterialfv                = 	dllMaterialfv                ;
3974 		qglMateriali                 = 	dllMateriali                 ;
3975 		qglMaterialiv                = 	dllMaterialiv                ;
3976 		qglMatrixMode                = 	dllMatrixMode                ;
3977 		qglMultMatrixd               = 	dllMultMatrixd               ;
3978 		qglMultMatrixf               = 	dllMultMatrixf               ;
3979 		qglNewList                   = 	dllNewList                   ;
3980 		qglNormal3b                  = 	dllNormal3b                  ;
3981 		qglNormal3bv                 = 	dllNormal3bv                 ;
3982 		qglNormal3d                  = 	dllNormal3d                  ;
3983 		qglNormal3dv                 = 	dllNormal3dv                 ;
3984 		qglNormal3f                  = 	dllNormal3f                  ;
3985 		qglNormal3fv                 = 	dllNormal3fv                 ;
3986 		qglNormal3i                  = 	dllNormal3i                  ;
3987 		qglNormal3iv                 = 	dllNormal3iv                 ;
3988 		qglNormal3s                  = 	dllNormal3s                  ;
3989 		qglNormal3sv                 = 	dllNormal3sv                 ;
3990 		qglNormalPointer             = 	dllNormalPointer             ;
3991 		qglOrtho                     = 	dllOrtho                     ;
3992 		qglPassThrough               = 	dllPassThrough               ;
3993 		qglPixelMapfv                = 	dllPixelMapfv                ;
3994 		qglPixelMapuiv               = 	dllPixelMapuiv               ;
3995 		qglPixelMapusv               = 	dllPixelMapusv               ;
3996 		qglPixelStoref               = 	dllPixelStoref               ;
3997 		qglPixelStorei               = 	dllPixelStorei               ;
3998 		qglPixelTransferf            = 	dllPixelTransferf            ;
3999 		qglPixelTransferi            = 	dllPixelTransferi            ;
4000 		qglPixelZoom                 = 	dllPixelZoom                 ;
4001 		qglPointSize                 = 	dllPointSize                 ;
4002 		qglPolygonMode               = 	dllPolygonMode               ;
4003 		qglPolygonOffset             = 	dllPolygonOffset             ;
4004 		qglPolygonStipple            = 	dllPolygonStipple            ;
4005 		qglPopAttrib                 = 	dllPopAttrib                 ;
4006 		qglPopClientAttrib           = 	dllPopClientAttrib           ;
4007 		qglPopMatrix                 = 	dllPopMatrix                 ;
4008 		qglPopName                   = 	dllPopName                   ;
4009 		qglPrioritizeTextures        = 	dllPrioritizeTextures        ;
4010 		qglPushAttrib                = 	dllPushAttrib                ;
4011 		qglPushClientAttrib          = 	dllPushClientAttrib          ;
4012 		qglPushMatrix                = 	dllPushMatrix                ;
4013 		qglPushName                  = 	dllPushName                  ;
4014 		qglRasterPos2d               = 	dllRasterPos2d               ;
4015 		qglRasterPos2dv              = 	dllRasterPos2dv              ;
4016 		qglRasterPos2f               = 	dllRasterPos2f               ;
4017 		qglRasterPos2fv              = 	dllRasterPos2fv              ;
4018 		qglRasterPos2i               = 	dllRasterPos2i               ;
4019 		qglRasterPos2iv              = 	dllRasterPos2iv              ;
4020 		qglRasterPos2s               = 	dllRasterPos2s               ;
4021 		qglRasterPos2sv              = 	dllRasterPos2sv              ;
4022 		qglRasterPos3d               = 	dllRasterPos3d               ;
4023 		qglRasterPos3dv              = 	dllRasterPos3dv              ;
4024 		qglRasterPos3f               = 	dllRasterPos3f               ;
4025 		qglRasterPos3fv              = 	dllRasterPos3fv              ;
4026 		qglRasterPos3i               = 	dllRasterPos3i               ;
4027 		qglRasterPos3iv              = 	dllRasterPos3iv              ;
4028 		qglRasterPos3s               = 	dllRasterPos3s               ;
4029 		qglRasterPos3sv              = 	dllRasterPos3sv              ;
4030 		qglRasterPos4d               = 	dllRasterPos4d               ;
4031 		qglRasterPos4dv              = 	dllRasterPos4dv              ;
4032 		qglRasterPos4f               = 	dllRasterPos4f               ;
4033 		qglRasterPos4fv              = 	dllRasterPos4fv              ;
4034 		qglRasterPos4i               = 	dllRasterPos4i               ;
4035 		qglRasterPos4iv              = 	dllRasterPos4iv              ;
4036 		qglRasterPos4s               = 	dllRasterPos4s               ;
4037 		qglRasterPos4sv              = 	dllRasterPos4sv              ;
4038 		qglReadBuffer                = 	dllReadBuffer                ;
4039 		qglReadPixels                = 	dllReadPixels                ;
4040 		qglRectd                     = 	dllRectd                     ;
4041 		qglRectdv                    = 	dllRectdv                    ;
4042 		qglRectf                     = 	dllRectf                     ;
4043 		qglRectfv                    = 	dllRectfv                    ;
4044 		qglRecti                     = 	dllRecti                     ;
4045 		qglRectiv                    = 	dllRectiv                    ;
4046 		qglRects                     = 	dllRects                     ;
4047 		qglRectsv                    = 	dllRectsv                    ;
4048 		qglRenderMode                = 	dllRenderMode                ;
4049 		qglRotated                   = 	dllRotated                   ;
4050 		qglRotatef                   = 	dllRotatef                   ;
4051 		qglScaled                    = 	dllScaled                    ;
4052 		qglScalef                    = 	dllScalef                    ;
4053 		qglScissor                   = 	dllScissor                   ;
4054 		qglSelectBuffer              = 	dllSelectBuffer              ;
4055 		qglShadeModel                = 	dllShadeModel                ;
4056 		qglStencilFunc               = 	dllStencilFunc               ;
4057 		qglStencilMask               = 	dllStencilMask               ;
4058 		qglStencilOp                 = 	dllStencilOp                 ;
4059 		qglTexCoord1d                = 	dllTexCoord1d                ;
4060 		qglTexCoord1dv               = 	dllTexCoord1dv               ;
4061 		qglTexCoord1f                = 	dllTexCoord1f                ;
4062 		qglTexCoord1fv               = 	dllTexCoord1fv               ;
4063 		qglTexCoord1i                = 	dllTexCoord1i                ;
4064 		qglTexCoord1iv               = 	dllTexCoord1iv               ;
4065 		qglTexCoord1s                = 	dllTexCoord1s                ;
4066 		qglTexCoord1sv               = 	dllTexCoord1sv               ;
4067 		qglTexCoord2d                = 	dllTexCoord2d                ;
4068 		qglTexCoord2dv               = 	dllTexCoord2dv               ;
4069 		qglTexCoord2f                = 	dllTexCoord2f                ;
4070 		qglTexCoord2fv               = 	dllTexCoord2fv               ;
4071 		qglTexCoord2i                = 	dllTexCoord2i                ;
4072 		qglTexCoord2iv               = 	dllTexCoord2iv               ;
4073 		qglTexCoord2s                = 	dllTexCoord2s                ;
4074 		qglTexCoord2sv               = 	dllTexCoord2sv               ;
4075 		qglTexCoord3d                = 	dllTexCoord3d                ;
4076 		qglTexCoord3dv               = 	dllTexCoord3dv               ;
4077 		qglTexCoord3f                = 	dllTexCoord3f                ;
4078 		qglTexCoord3fv               = 	dllTexCoord3fv               ;
4079 		qglTexCoord3i                = 	dllTexCoord3i                ;
4080 		qglTexCoord3iv               = 	dllTexCoord3iv               ;
4081 		qglTexCoord3s                = 	dllTexCoord3s                ;
4082 		qglTexCoord3sv               = 	dllTexCoord3sv               ;
4083 		qglTexCoord4d                = 	dllTexCoord4d                ;
4084 		qglTexCoord4dv               = 	dllTexCoord4dv               ;
4085 		qglTexCoord4f                = 	dllTexCoord4f                ;
4086 		qglTexCoord4fv               = 	dllTexCoord4fv               ;
4087 		qglTexCoord4i                = 	dllTexCoord4i                ;
4088 		qglTexCoord4iv               = 	dllTexCoord4iv               ;
4089 		qglTexCoord4s                = 	dllTexCoord4s                ;
4090 		qglTexCoord4sv               = 	dllTexCoord4sv               ;
4091 		qglTexCoordPointer           = 	dllTexCoordPointer           ;
4092 		qglTexEnvf                   = 	dllTexEnvf                   ;
4093 		qglTexEnvfv                  = 	dllTexEnvfv                  ;
4094 		qglTexEnvi                   = 	dllTexEnvi                   ;
4095 		qglTexEnviv                  = 	dllTexEnviv                  ;
4096 		qglTexGend                   = 	dllTexGend                   ;
4097 		qglTexGendv                  = 	dllTexGendv                  ;
4098 		qglTexGenf                   = 	dllTexGenf                   ;
4099 		qglTexGenfv                  = 	dllTexGenfv                  ;
4100 		qglTexGeni                   = 	dllTexGeni                   ;
4101 		qglTexGeniv                  = 	dllTexGeniv                  ;
4102 		qglTexImage1D                = 	dllTexImage1D                ;
4103 		qglTexImage2D                = 	dllTexImage2D                ;
4104 		qglTexParameterf             = 	dllTexParameterf             ;
4105 		qglTexParameterfv            = 	dllTexParameterfv            ;
4106 		qglTexParameteri             = 	dllTexParameteri             ;
4107 		qglTexParameteriv            = 	dllTexParameteriv            ;
4108 		qglTexSubImage1D             = 	dllTexSubImage1D             ;
4109 		qglTexSubImage2D             = 	dllTexSubImage2D             ;
4110 		qglTranslated                = 	dllTranslated                ;
4111 		qglTranslatef                = 	dllTranslatef                ;
4112 		qglVertex2d                  = 	dllVertex2d                  ;
4113 		qglVertex2dv                 = 	dllVertex2dv                 ;
4114 		qglVertex2f                  = 	dllVertex2f                  ;
4115 		qglVertex2fv                 = 	dllVertex2fv                 ;
4116 		qglVertex2i                  = 	dllVertex2i                  ;
4117 		qglVertex2iv                 = 	dllVertex2iv                 ;
4118 		qglVertex2s                  = 	dllVertex2s                  ;
4119 		qglVertex2sv                 = 	dllVertex2sv                 ;
4120 		qglVertex3d                  = 	dllVertex3d                  ;
4121 		qglVertex3dv                 = 	dllVertex3dv                 ;
4122 		qglVertex3f                  = 	dllVertex3f                  ;
4123 		qglVertex3fv                 = 	dllVertex3fv                 ;
4124 		qglVertex3i                  = 	dllVertex3i                  ;
4125 		qglVertex3iv                 = 	dllVertex3iv                 ;
4126 		qglVertex3s                  = 	dllVertex3s                  ;
4127 		qglVertex3sv                 = 	dllVertex3sv                 ;
4128 		qglVertex4d                  = 	dllVertex4d                  ;
4129 		qglVertex4dv                 = 	dllVertex4dv                 ;
4130 		qglVertex4f                  = 	dllVertex4f                  ;
4131 		qglVertex4fv                 = 	dllVertex4fv                 ;
4132 		qglVertex4i                  = 	dllVertex4i                  ;
4133 		qglVertex4iv                 = 	dllVertex4iv                 ;
4134 		qglVertex4s                  = 	dllVertex4s                  ;
4135 		qglVertex4sv                 = 	dllVertex4sv                 ;
4136 		qglVertexPointer             = 	dllVertexPointer             ;
4137 		qglViewport                  = 	dllViewport                  ;
4138 	}
4139 }
4140 
4141 
GLimp_LogNewFrame(void)4142 void GLimp_LogNewFrame( void )
4143 {
4144 	fprintf( glw_state.log_fp, "*** R_BeginFrame ***\n" );
4145 }
4146 
4147 #pragma warning (default : 4113 4133 4047 )
4148 
4149 
4150 
4151