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