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