Quake-2

Quake 2 GPL Source Release
Log | Files | Refs

qgl_win.c (181848B)


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