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