QGL_WIN.CPP (98563B)
1 /* 2 =========================================================================== 3 Copyright (C) 1999-2005 Id Software, Inc. 4 5 This file is part of Quake III Arena source code. 6 7 Quake III Arena source code is free software; you can redistribute it 8 and/or modify it under the terms of the GNU General Public License as 9 published by the Free Software Foundation; either version 2 of the License, 10 or (at your option) any later version. 11 12 Quake III Arena source code is distributed in the hope that it will be 13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with Foobar; if not, write to the Free Software 19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 =========================================================================== 21 */ 22 /* 23 ** QGL_WIN.C 24 ** 25 ** This file implements the operating system binding of GL to QGL function 26 ** pointers. When doing a port of Quake2 you must implement the following 27 ** two functions: 28 ** 29 ** QGL_Init() - loads libraries, assigns function pointers, etc. 30 ** QGL_Shutdown() - unloads libraries, NULLs function pointers 31 */ 32 #include "stdafx.h" 33 #include <float.h> 34 35 HMODULE g_hGLDLL = NULL; 36 37 # pragma warning (disable : 4113 4133 4047 ) 38 39 int ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *); 40 int ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR); 41 int ( WINAPI * qwglGetPixelFormat)(HDC); 42 BOOL ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *); 43 BOOL ( WINAPI * qwglSwapBuffers)(HDC); 44 45 BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT); 46 HGLRC ( WINAPI * qwglCreateContext)(HDC); 47 HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int); 48 BOOL ( WINAPI * qwglDeleteContext)(HGLRC); 49 HGLRC ( WINAPI * qwglGetCurrentContext)(VOID); 50 HDC ( WINAPI * qwglGetCurrentDC)(VOID); 51 PROC ( WINAPI * qwglGetProcAddress)(LPCSTR); 52 BOOL ( WINAPI * qwglMakeCurrent)(HDC, HGLRC); 53 BOOL ( WINAPI * qwglShareLists)(HGLRC, HGLRC); 54 BOOL ( WINAPI * qwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD); 55 56 BOOL ( WINAPI * qwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT, 57 FLOAT, int, LPGLYPHMETRICSFLOAT); 58 59 BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT, 60 LPLAYERPLANEDESCRIPTOR); 61 int ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int, 62 CONST COLORREF *); 63 int ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int, 64 COLORREF *); 65 BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL); 66 BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT); 67 68 void ( APIENTRY * qglAccum )(GLenum op, GLfloat value); 69 void ( APIENTRY * qglAlphaFunc )(GLenum func, GLclampf ref); 70 GLboolean ( APIENTRY * qglAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences); 71 void ( APIENTRY * qglArrayElement )(GLint i); 72 void ( APIENTRY * qglBegin )(GLenum mode); 73 void ( APIENTRY * qglBindTexture )(GLenum target, GLuint texture); 74 void ( APIENTRY * qglBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); 75 void ( APIENTRY * qglBlendFunc )(GLenum sfactor, GLenum dfactor); 76 void ( APIENTRY * qglCallList )(GLuint list); 77 void ( APIENTRY * qglCallLists )(GLsizei n, GLenum type, const GLvoid *lists); 78 void ( APIENTRY * qglClear )(GLbitfield mask); 79 void ( APIENTRY * qglClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 80 void ( APIENTRY * qglClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 81 void ( APIENTRY * qglClearDepth )(GLclampd depth); 82 void ( APIENTRY * qglClearIndex )(GLfloat c); 83 void ( APIENTRY * qglClearStencil )(GLint s); 84 void ( APIENTRY * qglClipPlane )(GLenum plane, const GLdouble *equation); 85 void ( APIENTRY * qglColor3b )(GLbyte red, GLbyte green, GLbyte blue); 86 void ( APIENTRY * qglColor3bv )(const GLbyte *v); 87 void ( APIENTRY * qglColor3d )(GLdouble red, GLdouble green, GLdouble blue); 88 void ( APIENTRY * qglColor3dv )(const GLdouble *v); 89 void ( APIENTRY * qglColor3f )(GLfloat red, GLfloat green, GLfloat blue); 90 void ( APIENTRY * qglColor3fv )(const GLfloat *v); 91 void ( APIENTRY * qglColor3i )(GLint red, GLint green, GLint blue); 92 void ( APIENTRY * qglColor3iv )(const GLint *v); 93 void ( APIENTRY * qglColor3s )(GLshort red, GLshort green, GLshort blue); 94 void ( APIENTRY * qglColor3sv )(const GLshort *v); 95 void ( APIENTRY * qglColor3ub )(GLubyte red, GLubyte green, GLubyte blue); 96 void ( APIENTRY * qglColor3ubv )(const GLubyte *v); 97 void ( APIENTRY * qglColor3ui )(GLuint red, GLuint green, GLuint blue); 98 void ( APIENTRY * qglColor3uiv )(const GLuint *v); 99 void ( APIENTRY * qglColor3us )(GLushort red, GLushort green, GLushort blue); 100 void ( APIENTRY * qglColor3usv )(const GLushort *v); 101 void ( APIENTRY * qglColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); 102 void ( APIENTRY * qglColor4bv )(const GLbyte *v); 103 void ( APIENTRY * qglColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); 104 void ( APIENTRY * qglColor4dv )(const GLdouble *v); 105 void ( APIENTRY * qglColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 106 void ( APIENTRY * qglColor4fv )(const GLfloat *v); 107 void ( APIENTRY * qglColor4i )(GLint red, GLint green, GLint blue, GLint alpha); 108 void ( APIENTRY * qglColor4iv )(const GLint *v); 109 void ( APIENTRY * qglColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha); 110 void ( APIENTRY * qglColor4sv )(const GLshort *v); 111 void ( APIENTRY * qglColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); 112 void ( APIENTRY * qglColor4ubv )(const GLubyte *v); 113 void ( APIENTRY * qglColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha); 114 void ( APIENTRY * qglColor4uiv )(const GLuint *v); 115 void ( APIENTRY * qglColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha); 116 void ( APIENTRY * qglColor4usv )(const GLushort *v); 117 void ( APIENTRY * qglColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); 118 void ( APIENTRY * qglColorMaterial )(GLenum face, GLenum mode); 119 void ( APIENTRY * qglColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 120 void ( APIENTRY * qglCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); 121 void ( APIENTRY * qglCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); 122 void ( APIENTRY * qglCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); 123 void ( APIENTRY * qglCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); 124 void ( APIENTRY * qglCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); 125 void ( APIENTRY * qglCullFace )(GLenum mode); 126 void ( APIENTRY * qglDeleteLists )(GLuint list, GLsizei range); 127 void ( APIENTRY * qglDeleteTextures )(GLsizei n, const GLuint *textures); 128 void ( APIENTRY * qglDepthFunc )(GLenum func); 129 void ( APIENTRY * qglDepthMask )(GLboolean flag); 130 void ( APIENTRY * qglDepthRange )(GLclampd zNear, GLclampd zFar); 131 void ( APIENTRY * qglDisable )(GLenum cap); 132 void ( APIENTRY * qglDisableClientState )(GLenum array); 133 void ( APIENTRY * qglDrawArrays )(GLenum mode, GLint first, GLsizei count); 134 void ( APIENTRY * qglDrawBuffer )(GLenum mode); 135 void ( APIENTRY * qglDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); 136 void ( APIENTRY * qglDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); 137 void ( APIENTRY * qglEdgeFlag )(GLboolean flag); 138 void ( APIENTRY * qglEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer); 139 void ( APIENTRY * qglEdgeFlagv )(const GLboolean *flag); 140 void ( APIENTRY * qglEnable )(GLenum cap); 141 void ( APIENTRY * qglEnableClientState )(GLenum array); 142 void ( APIENTRY * qglEnd )(void); 143 void ( APIENTRY * qglEndList )(void); 144 void ( APIENTRY * qglEvalCoord1d )(GLdouble u); 145 void ( APIENTRY * qglEvalCoord1dv )(const GLdouble *u); 146 void ( APIENTRY * qglEvalCoord1f )(GLfloat u); 147 void ( APIENTRY * qglEvalCoord1fv )(const GLfloat *u); 148 void ( APIENTRY * qglEvalCoord2d )(GLdouble u, GLdouble v); 149 void ( APIENTRY * qglEvalCoord2dv )(const GLdouble *u); 150 void ( APIENTRY * qglEvalCoord2f )(GLfloat u, GLfloat v); 151 void ( APIENTRY * qglEvalCoord2fv )(const GLfloat *u); 152 void ( APIENTRY * qglEvalMesh1 )(GLenum mode, GLint i1, GLint i2); 153 void ( APIENTRY * qglEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); 154 void ( APIENTRY * qglEvalPoint1 )(GLint i); 155 void ( APIENTRY * qglEvalPoint2 )(GLint i, GLint j); 156 void ( APIENTRY * qglFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer); 157 void ( APIENTRY * qglFinish )(void); 158 void ( APIENTRY * qglFlush )(void); 159 void ( APIENTRY * qglFogf )(GLenum pname, GLfloat param); 160 void ( APIENTRY * qglFogfv )(GLenum pname, const GLfloat *params); 161 void ( APIENTRY * qglFogi )(GLenum pname, GLint param); 162 void ( APIENTRY * qglFogiv )(GLenum pname, const GLint *params); 163 void ( APIENTRY * qglFrontFace )(GLenum mode); 164 void ( APIENTRY * qglFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); 165 GLuint ( APIENTRY * qglGenLists )(GLsizei range); 166 void ( APIENTRY * qglGenTextures )(GLsizei n, GLuint *textures); 167 void ( APIENTRY * qglGetBooleanv )(GLenum pname, GLboolean *params); 168 void ( APIENTRY * qglGetClipPlane )(GLenum plane, GLdouble *equation); 169 void ( APIENTRY * qglGetDoublev )(GLenum pname, GLdouble *params); 170 GLenum ( APIENTRY * qglGetError )(void); 171 void ( APIENTRY * qglGetFloatv )(GLenum pname, GLfloat *params); 172 void ( APIENTRY * qglGetIntegerv )(GLenum pname, GLint *params); 173 void ( APIENTRY * qglGetLightfv )(GLenum light, GLenum pname, GLfloat *params); 174 void ( APIENTRY * qglGetLightiv )(GLenum light, GLenum pname, GLint *params); 175 void ( APIENTRY * qglGetMapdv )(GLenum target, GLenum query, GLdouble *v); 176 void ( APIENTRY * qglGetMapfv )(GLenum target, GLenum query, GLfloat *v); 177 void ( APIENTRY * qglGetMapiv )(GLenum target, GLenum query, GLint *v); 178 void ( APIENTRY * qglGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params); 179 void ( APIENTRY * qglGetMaterialiv )(GLenum face, GLenum pname, GLint *params); 180 void ( APIENTRY * qglGetPixelMapfv )(GLenum map, GLfloat *values); 181 void ( APIENTRY * qglGetPixelMapuiv )(GLenum map, GLuint *values); 182 void ( APIENTRY * qglGetPixelMapusv )(GLenum map, GLushort *values); 183 void ( APIENTRY * qglGetPointerv )(GLenum pname, GLvoid* *params); 184 void ( APIENTRY * qglGetPolygonStipple )(GLubyte *mask); 185 const GLubyte * ( APIENTRY * qglGetString )(GLenum name); 186 void ( APIENTRY * qglGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params); 187 void ( APIENTRY * qglGetTexEnviv )(GLenum target, GLenum pname, GLint *params); 188 void ( APIENTRY * qglGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params); 189 void ( APIENTRY * qglGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params); 190 void ( APIENTRY * qglGetTexGeniv )(GLenum coord, GLenum pname, GLint *params); 191 void ( APIENTRY * qglGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); 192 void ( APIENTRY * qglGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params); 193 void ( APIENTRY * qglGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params); 194 void ( APIENTRY * qglGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params); 195 void ( APIENTRY * qglGetTexParameteriv )(GLenum target, GLenum pname, GLint *params); 196 void ( APIENTRY * qglHint )(GLenum target, GLenum mode); 197 void ( APIENTRY * qglIndexMask )(GLuint mask); 198 void ( APIENTRY * qglIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer); 199 void ( APIENTRY * qglIndexd )(GLdouble c); 200 void ( APIENTRY * qglIndexdv )(const GLdouble *c); 201 void ( APIENTRY * qglIndexf )(GLfloat c); 202 void ( APIENTRY * qglIndexfv )(const GLfloat *c); 203 void ( APIENTRY * qglIndexi )(GLint c); 204 void ( APIENTRY * qglIndexiv )(const GLint *c); 205 void ( APIENTRY * qglIndexs )(GLshort c); 206 void ( APIENTRY * qglIndexsv )(const GLshort *c); 207 void ( APIENTRY * qglIndexub )(GLubyte c); 208 void ( APIENTRY * qglIndexubv )(const GLubyte *c); 209 void ( APIENTRY * qglInitNames )(void); 210 void ( APIENTRY * qglInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer); 211 GLboolean ( APIENTRY * qglIsEnabled )(GLenum cap); 212 GLboolean ( APIENTRY * qglIsList )(GLuint list); 213 GLboolean ( APIENTRY * qglIsTexture )(GLuint texture); 214 void ( APIENTRY * qglLightModelf )(GLenum pname, GLfloat param); 215 void ( APIENTRY * qglLightModelfv )(GLenum pname, const GLfloat *params); 216 void ( APIENTRY * qglLightModeli )(GLenum pname, GLint param); 217 void ( APIENTRY * qglLightModeliv )(GLenum pname, const GLint *params); 218 void ( APIENTRY * qglLightf )(GLenum light, GLenum pname, GLfloat param); 219 void ( APIENTRY * qglLightfv )(GLenum light, GLenum pname, const GLfloat *params); 220 void ( APIENTRY * qglLighti )(GLenum light, GLenum pname, GLint param); 221 void ( APIENTRY * qglLightiv )(GLenum light, GLenum pname, const GLint *params); 222 void ( APIENTRY * qglLineStipple )(GLint factor, GLushort pattern); 223 void ( APIENTRY * qglLineWidth )(GLfloat width); 224 void ( APIENTRY * qglListBase )(GLuint base); 225 void ( APIENTRY * qglLoadIdentity )(void); 226 void ( APIENTRY * qglLoadMatrixd )(const GLdouble *m); 227 void ( APIENTRY * qglLoadMatrixf )(const GLfloat *m); 228 void ( APIENTRY * qglLoadName )(GLuint name); 229 void ( APIENTRY * qglLogicOp )(GLenum opcode); 230 void ( APIENTRY * qglMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); 231 void ( APIENTRY * qglMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); 232 void ( APIENTRY * qglMap2d )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); 233 void ( APIENTRY * qglMap2f )(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); 234 void ( APIENTRY * qglMapGrid1d )(GLint un, GLdouble u1, GLdouble u2); 235 void ( APIENTRY * qglMapGrid1f )(GLint un, GLfloat u1, GLfloat u2); 236 void ( APIENTRY * qglMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); 237 void ( APIENTRY * qglMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); 238 void ( APIENTRY * qglMaterialf )(GLenum face, GLenum pname, GLfloat param); 239 void ( APIENTRY * qglMaterialfv )(GLenum face, GLenum pname, const GLfloat *params); 240 void ( APIENTRY * qglMateriali )(GLenum face, GLenum pname, GLint param); 241 void ( APIENTRY * qglMaterialiv )(GLenum face, GLenum pname, const GLint *params); 242 void ( APIENTRY * qglMatrixMode )(GLenum mode); 243 void ( APIENTRY * qglMultMatrixd )(const GLdouble *m); 244 void ( APIENTRY * qglMultMatrixf )(const GLfloat *m); 245 void ( APIENTRY * qglNewList )(GLuint list, GLenum mode); 246 void ( APIENTRY * qglNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz); 247 void ( APIENTRY * qglNormal3bv )(const GLbyte *v); 248 void ( APIENTRY * qglNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz); 249 void ( APIENTRY * qglNormal3dv )(const GLdouble *v); 250 void ( APIENTRY * qglNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz); 251 void ( APIENTRY * qglNormal3fv )(const GLfloat *v); 252 void ( APIENTRY * qglNormal3i )(GLint nx, GLint ny, GLint nz); 253 void ( APIENTRY * qglNormal3iv )(const GLint *v); 254 void ( APIENTRY * qglNormal3s )(GLshort nx, GLshort ny, GLshort nz); 255 void ( APIENTRY * qglNormal3sv )(const GLshort *v); 256 void ( APIENTRY * qglNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer); 257 void ( APIENTRY * qglOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); 258 void ( APIENTRY * qglPassThrough )(GLfloat token); 259 void ( APIENTRY * qglPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values); 260 void ( APIENTRY * qglPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values); 261 void ( APIENTRY * qglPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values); 262 void ( APIENTRY * qglPixelStoref )(GLenum pname, GLfloat param); 263 void ( APIENTRY * qglPixelStorei )(GLenum pname, GLint param); 264 void ( APIENTRY * qglPixelTransferf )(GLenum pname, GLfloat param); 265 void ( APIENTRY * qglPixelTransferi )(GLenum pname, GLint param); 266 void ( APIENTRY * qglPixelZoom )(GLfloat xfactor, GLfloat yfactor); 267 void ( APIENTRY * qglPointSize )(GLfloat size); 268 void ( APIENTRY * qglPolygonMode )(GLenum face, GLenum mode); 269 void ( APIENTRY * qglPolygonOffset )(GLfloat factor, GLfloat units); 270 void ( APIENTRY * qglPolygonStipple )(const GLubyte *mask); 271 void ( APIENTRY * qglPopAttrib )(void); 272 void ( APIENTRY * qglPopClientAttrib )(void); 273 void ( APIENTRY * qglPopMatrix )(void); 274 void ( APIENTRY * qglPopName )(void); 275 void ( APIENTRY * qglPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities); 276 void ( APIENTRY * qglPushAttrib )(GLbitfield mask); 277 void ( APIENTRY * qglPushClientAttrib )(GLbitfield mask); 278 void ( APIENTRY * qglPushMatrix )(void); 279 void ( APIENTRY * qglPushName )(GLuint name); 280 void ( APIENTRY * qglRasterPos2d )(GLdouble x, GLdouble y); 281 void ( APIENTRY * qglRasterPos2dv )(const GLdouble *v); 282 void ( APIENTRY * qglRasterPos2f )(GLfloat x, GLfloat y); 283 void ( APIENTRY * qglRasterPos2fv )(const GLfloat *v); 284 void ( APIENTRY * qglRasterPos2i )(GLint x, GLint y); 285 void ( APIENTRY * qglRasterPos2iv )(const GLint *v); 286 void ( APIENTRY * qglRasterPos2s )(GLshort x, GLshort y); 287 void ( APIENTRY * qglRasterPos2sv )(const GLshort *v); 288 void ( APIENTRY * qglRasterPos3d )(GLdouble x, GLdouble y, GLdouble z); 289 void ( APIENTRY * qglRasterPos3dv )(const GLdouble *v); 290 void ( APIENTRY * qglRasterPos3f )(GLfloat x, GLfloat y, GLfloat z); 291 void ( APIENTRY * qglRasterPos3fv )(const GLfloat *v); 292 void ( APIENTRY * qglRasterPos3i )(GLint x, GLint y, GLint z); 293 void ( APIENTRY * qglRasterPos3iv )(const GLint *v); 294 void ( APIENTRY * qglRasterPos3s )(GLshort x, GLshort y, GLshort z); 295 void ( APIENTRY * qglRasterPos3sv )(const GLshort *v); 296 void ( APIENTRY * qglRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w); 297 void ( APIENTRY * qglRasterPos4dv )(const GLdouble *v); 298 void ( APIENTRY * qglRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w); 299 void ( APIENTRY * qglRasterPos4fv )(const GLfloat *v); 300 void ( APIENTRY * qglRasterPos4i )(GLint x, GLint y, GLint z, GLint w); 301 void ( APIENTRY * qglRasterPos4iv )(const GLint *v); 302 void ( APIENTRY * qglRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w); 303 void ( APIENTRY * qglRasterPos4sv )(const GLshort *v); 304 void ( APIENTRY * qglReadBuffer )(GLenum mode); 305 void ( APIENTRY * qglReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); 306 void ( APIENTRY * qglRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); 307 void ( APIENTRY * qglRectdv )(const GLdouble *v1, const GLdouble *v2); 308 void ( APIENTRY * qglRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); 309 void ( APIENTRY * qglRectfv )(const GLfloat *v1, const GLfloat *v2); 310 void ( APIENTRY * qglRecti )(GLint x1, GLint y1, GLint x2, GLint y2); 311 void ( APIENTRY * qglRectiv )(const GLint *v1, const GLint *v2); 312 void ( APIENTRY * qglRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2); 313 void ( APIENTRY * qglRectsv )(const GLshort *v1, const GLshort *v2); 314 GLint ( APIENTRY * qglRenderMode )(GLenum mode); 315 void ( APIENTRY * qglRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); 316 void ( APIENTRY * qglRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); 317 void ( APIENTRY * qglScaled )(GLdouble x, GLdouble y, GLdouble z); 318 void ( APIENTRY * qglScalef )(GLfloat x, GLfloat y, GLfloat z); 319 void ( APIENTRY * qglScissor )(GLint x, GLint y, GLsizei width, GLsizei height); 320 void ( APIENTRY * qglSelectBuffer )(GLsizei size, GLuint *buffer); 321 void ( APIENTRY * qglShadeModel )(GLenum mode); 322 void ( APIENTRY * qglStencilFunc )(GLenum func, GLint ref, GLuint mask); 323 void ( APIENTRY * qglStencilMask )(GLuint mask); 324 void ( APIENTRY * qglStencilOp )(GLenum fail, GLenum zfail, GLenum zpass); 325 void ( APIENTRY * qglTexCoord1d )(GLdouble s); 326 void ( APIENTRY * qglTexCoord1dv )(const GLdouble *v); 327 void ( APIENTRY * qglTexCoord1f )(GLfloat s); 328 void ( APIENTRY * qglTexCoord1fv )(const GLfloat *v); 329 void ( APIENTRY * qglTexCoord1i )(GLint s); 330 void ( APIENTRY * qglTexCoord1iv )(const GLint *v); 331 void ( APIENTRY * qglTexCoord1s )(GLshort s); 332 void ( APIENTRY * qglTexCoord1sv )(const GLshort *v); 333 void ( APIENTRY * qglTexCoord2d )(GLdouble s, GLdouble t); 334 void ( APIENTRY * qglTexCoord2dv )(const GLdouble *v); 335 void ( APIENTRY * qglTexCoord2f )(GLfloat s, GLfloat t); 336 void ( APIENTRY * qglTexCoord2fv )(const GLfloat *v); 337 void ( APIENTRY * qglTexCoord2i )(GLint s, GLint t); 338 void ( APIENTRY * qglTexCoord2iv )(const GLint *v); 339 void ( APIENTRY * qglTexCoord2s )(GLshort s, GLshort t); 340 void ( APIENTRY * qglTexCoord2sv )(const GLshort *v); 341 void ( APIENTRY * qglTexCoord3d )(GLdouble s, GLdouble t, GLdouble r); 342 void ( APIENTRY * qglTexCoord3dv )(const GLdouble *v); 343 void ( APIENTRY * qglTexCoord3f )(GLfloat s, GLfloat t, GLfloat r); 344 void ( APIENTRY * qglTexCoord3fv )(const GLfloat *v); 345 void ( APIENTRY * qglTexCoord3i )(GLint s, GLint t, GLint r); 346 void ( APIENTRY * qglTexCoord3iv )(const GLint *v); 347 void ( APIENTRY * qglTexCoord3s )(GLshort s, GLshort t, GLshort r); 348 void ( APIENTRY * qglTexCoord3sv )(const GLshort *v); 349 void ( APIENTRY * qglTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q); 350 void ( APIENTRY * qglTexCoord4dv )(const GLdouble *v); 351 void ( APIENTRY * qglTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q); 352 void ( APIENTRY * qglTexCoord4fv )(const GLfloat *v); 353 void ( APIENTRY * qglTexCoord4i )(GLint s, GLint t, GLint r, GLint q); 354 void ( APIENTRY * qglTexCoord4iv )(const GLint *v); 355 void ( APIENTRY * qglTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q); 356 void ( APIENTRY * qglTexCoord4sv )(const GLshort *v); 357 void ( APIENTRY * qglTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 358 void ( APIENTRY * qglTexEnvf )(GLenum target, GLenum pname, GLfloat param); 359 void ( APIENTRY * qglTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params); 360 void ( APIENTRY * qglTexEnvi )(GLenum target, GLenum pname, GLint param); 361 void ( APIENTRY * qglTexEnviv )(GLenum target, GLenum pname, const GLint *params); 362 void ( APIENTRY * qglTexGend )(GLenum coord, GLenum pname, GLdouble param); 363 void ( APIENTRY * qglTexGendv )(GLenum coord, GLenum pname, const GLdouble *params); 364 void ( APIENTRY * qglTexGenf )(GLenum coord, GLenum pname, GLfloat param); 365 void ( APIENTRY * qglTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params); 366 void ( APIENTRY * qglTexGeni )(GLenum coord, GLenum pname, GLint param); 367 void ( APIENTRY * qglTexGeniv )(GLenum coord, GLenum pname, const GLint *params); 368 void ( APIENTRY * qglTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 369 void ( APIENTRY * qglTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 370 void ( APIENTRY * qglTexParameterf )(GLenum target, GLenum pname, GLfloat param); 371 void ( APIENTRY * qglTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params); 372 void ( APIENTRY * qglTexParameteri )(GLenum target, GLenum pname, GLint param); 373 void ( APIENTRY * qglTexParameteriv )(GLenum target, GLenum pname, const GLint *params); 374 void ( APIENTRY * qglTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); 375 void ( APIENTRY * qglTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); 376 void ( APIENTRY * qglTranslated )(GLdouble x, GLdouble y, GLdouble z); 377 void ( APIENTRY * qglTranslatef )(GLfloat x, GLfloat y, GLfloat z); 378 void ( APIENTRY * qglVertex2d )(GLdouble x, GLdouble y); 379 void ( APIENTRY * qglVertex2dv )(const GLdouble *v); 380 void ( APIENTRY * qglVertex2f )(GLfloat x, GLfloat y); 381 void ( APIENTRY * qglVertex2fv )(const GLfloat *v); 382 void ( APIENTRY * qglVertex2i )(GLint x, GLint y); 383 void ( APIENTRY * qglVertex2iv )(const GLint *v); 384 void ( APIENTRY * qglVertex2s )(GLshort x, GLshort y); 385 void ( APIENTRY * qglVertex2sv )(const GLshort *v); 386 void ( APIENTRY * qglVertex3d )(GLdouble x, GLdouble y, GLdouble z); 387 void ( APIENTRY * qglVertex3dv )(const GLdouble *v); 388 void ( APIENTRY * qglVertex3f )(GLfloat x, GLfloat y, GLfloat z); 389 void ( APIENTRY * qglVertex3fv )(const GLfloat *v); 390 void ( APIENTRY * qglVertex3i )(GLint x, GLint y, GLint z); 391 void ( APIENTRY * qglVertex3iv )(const GLint *v); 392 void ( APIENTRY * qglVertex3s )(GLshort x, GLshort y, GLshort z); 393 void ( APIENTRY * qglVertex3sv )(const GLshort *v); 394 void ( APIENTRY * qglVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w); 395 void ( APIENTRY * qglVertex4dv )(const GLdouble *v); 396 void ( APIENTRY * qglVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w); 397 void ( APIENTRY * qglVertex4fv )(const GLfloat *v); 398 void ( APIENTRY * qglVertex4i )(GLint x, GLint y, GLint z, GLint w); 399 void ( APIENTRY * qglVertex4iv )(const GLint *v); 400 void ( APIENTRY * qglVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w); 401 void ( APIENTRY * qglVertex4sv )(const GLshort *v); 402 void ( APIENTRY * qglVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 403 void ( APIENTRY * qglViewport )(GLint x, GLint y, GLsizei width, GLsizei height); 404 405 BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval ); 406 BOOL ( WINAPI * qwglGetDeviceGammaRampEXT)( unsigned char *, unsigned char *, unsigned char * ); 407 BOOL ( WINAPI * qwglSetDeviceGammaRampEXT)( const unsigned char *, const unsigned char *, const unsigned char * ); 408 void ( APIENTRY * qglPointParameterfEXT)( GLenum param, GLfloat value ); 409 void ( APIENTRY * qglPointParameterfvEXT)( GLenum param, const GLfloat *value ); 410 void ( APIENTRY * qglColorTableEXT)( int, int, int, int, int, const void * ); 411 void ( APIENTRY * qglSelectTextureSGIS)( GLenum ); 412 void ( APIENTRY * qglMTexCoord2fSGIS)( GLenum, GLfloat, GLfloat ); 413 414 static void ( APIENTRY * dllAccum )(GLenum op, GLfloat value); 415 static void ( APIENTRY * dllAlphaFunc )(GLenum func, GLclampf ref); 416 GLboolean ( APIENTRY * dllAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences); 417 static void ( APIENTRY * dllArrayElement )(GLint i); 418 static void ( APIENTRY * dllBegin )(GLenum mode); 419 static void ( APIENTRY * dllBindTexture )(GLenum target, GLuint texture); 420 static void ( APIENTRY * dllBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); 421 static void ( APIENTRY * dllBlendFunc )(GLenum sfactor, GLenum dfactor); 422 static void ( APIENTRY * dllCallList )(GLuint list); 423 static void ( APIENTRY * dllCallLists )(GLsizei n, GLenum type, const GLvoid *lists); 424 static void ( APIENTRY * dllClear )(GLbitfield mask); 425 static void ( APIENTRY * dllClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 426 static void ( APIENTRY * dllClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 427 static void ( APIENTRY * dllClearDepth )(GLclampd depth); 428 static void ( APIENTRY * dllClearIndex )(GLfloat c); 429 static void ( APIENTRY * dllClearStencil )(GLint s); 430 static void ( APIENTRY * dllClipPlane )(GLenum plane, const GLdouble *equation); 431 static void ( APIENTRY * dllColor3b )(GLbyte red, GLbyte green, GLbyte blue); 432 static void ( APIENTRY * dllColor3bv )(const GLbyte *v); 433 static void ( APIENTRY * dllColor3d )(GLdouble red, GLdouble green, GLdouble blue); 434 static void ( APIENTRY * dllColor3dv )(const GLdouble *v); 435 static void ( APIENTRY * dllColor3f )(GLfloat red, GLfloat green, GLfloat blue); 436 static void ( APIENTRY * dllColor3fv )(const GLfloat *v); 437 static void ( APIENTRY * dllColor3i )(GLint red, GLint green, GLint blue); 438 static void ( APIENTRY * dllColor3iv )(const GLint *v); 439 static void ( APIENTRY * dllColor3s )(GLshort red, GLshort green, GLshort blue); 440 static void ( APIENTRY * dllColor3sv )(const GLshort *v); 441 static void ( APIENTRY * dllColor3ub )(GLubyte red, GLubyte green, GLubyte blue); 442 static void ( APIENTRY * dllColor3ubv )(const GLubyte *v); 443 static void ( APIENTRY * dllColor3ui )(GLuint red, GLuint green, GLuint blue); 444 static void ( APIENTRY * dllColor3uiv )(const GLuint *v); 445 static void ( APIENTRY * dllColor3us )(GLushort red, GLushort green, GLushort blue); 446 static void ( APIENTRY * dllColor3usv )(const GLushort *v); 447 static void ( APIENTRY * dllColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); 448 static void ( APIENTRY * dllColor4bv )(const GLbyte *v); 449 static void ( APIENTRY * dllColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); 450 static void ( APIENTRY * dllColor4dv )(const GLdouble *v); 451 static void ( APIENTRY * dllColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); 452 static void ( APIENTRY * dllColor4fv )(const GLfloat *v); 453 static void ( APIENTRY * dllColor4i )(GLint red, GLint green, GLint blue, GLint alpha); 454 static void ( APIENTRY * dllColor4iv )(const GLint *v); 455 static void ( APIENTRY * dllColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha); 456 static void ( APIENTRY * dllColor4sv )(const GLshort *v); 457 static void ( APIENTRY * dllColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); 458 static void ( APIENTRY * dllColor4ubv )(const GLubyte *v); 459 static void ( APIENTRY * dllColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha); 460 static void ( APIENTRY * dllColor4uiv )(const GLuint *v); 461 static void ( APIENTRY * dllColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha); 462 static void ( APIENTRY * dllColor4usv )(const GLushort *v); 463 static void ( APIENTRY * dllColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); 464 static void ( APIENTRY * dllColorMaterial )(GLenum face, GLenum mode); 465 static void ( APIENTRY * dllColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 466 static void ( APIENTRY * dllCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); 467 static void ( APIENTRY * dllCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); 468 static void ( APIENTRY * dllCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); 469 static void ( APIENTRY * dllCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); 470 static void ( APIENTRY * dllCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); 471 static void ( APIENTRY * dllCullFace )(GLenum mode); 472 static void ( APIENTRY * dllDeleteLists )(GLuint list, GLsizei range); 473 static void ( APIENTRY * dllDeleteTextures )(GLsizei n, const GLuint *textures); 474 static void ( APIENTRY * dllDepthFunc )(GLenum func); 475 static void ( APIENTRY * dllDepthMask )(GLboolean flag); 476 static void ( APIENTRY * dllDepthRange )(GLclampd zNear, GLclampd zFar); 477 static void ( APIENTRY * dllDisable )(GLenum cap); 478 static void ( APIENTRY * dllDisableClientState )(GLenum array); 479 static void ( APIENTRY * dllDrawArrays )(GLenum mode, GLint first, GLsizei count); 480 static void ( APIENTRY * dllDrawBuffer )(GLenum mode); 481 static void ( APIENTRY * dllDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); 482 static void ( APIENTRY * dllDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); 483 static void ( APIENTRY * dllEdgeFlag )(GLboolean flag); 484 static void ( APIENTRY * dllEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer); 485 static void ( APIENTRY * dllEdgeFlagv )(const GLboolean *flag); 486 static void ( APIENTRY * dllEnable )(GLenum cap); 487 static void ( APIENTRY * dllEnableClientState )(GLenum array); 488 static void ( APIENTRY * dllEnd )(void); 489 static void ( APIENTRY * dllEndList )(void); 490 static void ( APIENTRY * dllEvalCoord1d )(GLdouble u); 491 static void ( APIENTRY * dllEvalCoord1dv )(const GLdouble *u); 492 static void ( APIENTRY * dllEvalCoord1f )(GLfloat u); 493 static void ( APIENTRY * dllEvalCoord1fv )(const GLfloat *u); 494 static void ( APIENTRY * dllEvalCoord2d )(GLdouble u, GLdouble v); 495 static void ( APIENTRY * dllEvalCoord2dv )(const GLdouble *u); 496 static void ( APIENTRY * dllEvalCoord2f )(GLfloat u, GLfloat v); 497 static void ( APIENTRY * dllEvalCoord2fv )(const GLfloat *u); 498 static void ( APIENTRY * dllEvalMesh1 )(GLenum mode, GLint i1, GLint i2); 499 static void ( APIENTRY * dllEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); 500 static void ( APIENTRY * dllEvalPoint1 )(GLint i); 501 static void ( APIENTRY * dllEvalPoint2 )(GLint i, GLint j); 502 static void ( APIENTRY * dllFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer); 503 static void ( APIENTRY * dllFinish )(void); 504 static void ( APIENTRY * dllFlush )(void); 505 static void ( APIENTRY * dllFogf )(GLenum pname, GLfloat param); 506 static void ( APIENTRY * dllFogfv )(GLenum pname, const GLfloat *params); 507 static void ( APIENTRY * dllFogi )(GLenum pname, GLint param); 508 static void ( APIENTRY * dllFogiv )(GLenum pname, const GLint *params); 509 static void ( APIENTRY * dllFrontFace )(GLenum mode); 510 static void ( APIENTRY * dllFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); 511 GLuint ( APIENTRY * dllGenLists )(GLsizei range); 512 static void ( APIENTRY * dllGenTextures )(GLsizei n, GLuint *textures); 513 static void ( APIENTRY * dllGetBooleanv )(GLenum pname, GLboolean *params); 514 static void ( APIENTRY * dllGetClipPlane )(GLenum plane, GLdouble *equation); 515 static void ( APIENTRY * dllGetDoublev )(GLenum pname, GLdouble *params); 516 GLenum ( APIENTRY * dllGetError )(void); 517 static void ( APIENTRY * dllGetFloatv )(GLenum pname, GLfloat *params); 518 static void ( APIENTRY * dllGetIntegerv )(GLenum pname, GLint *params); 519 static void ( APIENTRY * dllGetLightfv )(GLenum light, GLenum pname, GLfloat *params); 520 static void ( APIENTRY * dllGetLightiv )(GLenum light, GLenum pname, GLint *params); 521 static void ( APIENTRY * dllGetMapdv )(GLenum target, GLenum query, GLdouble *v); 522 static void ( APIENTRY * dllGetMapfv )(GLenum target, GLenum query, GLfloat *v); 523 static void ( APIENTRY * dllGetMapiv )(GLenum target, GLenum query, GLint *v); 524 static void ( APIENTRY * dllGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params); 525 static void ( APIENTRY * dllGetMaterialiv )(GLenum face, GLenum pname, GLint *params); 526 static void ( APIENTRY * dllGetPixelMapfv )(GLenum map, GLfloat *values); 527 static void ( APIENTRY * dllGetPixelMapuiv )(GLenum map, GLuint *values); 528 static void ( APIENTRY * dllGetPixelMapusv )(GLenum map, GLushort *values); 529 static void ( APIENTRY * dllGetPointerv )(GLenum pname, GLvoid* *params); 530 static void ( APIENTRY * dllGetPolygonStipple )(GLubyte *mask); 531 const GLubyte * ( APIENTRY * dllGetString )(GLenum name); 532 static void ( APIENTRY * dllGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params); 533 static void ( APIENTRY * dllGetTexEnviv )(GLenum target, GLenum pname, GLint *params); 534 static void ( APIENTRY * dllGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params); 535 static void ( APIENTRY * dllGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params); 536 static void ( APIENTRY * dllGetTexGeniv )(GLenum coord, GLenum pname, GLint *params); 537 static void ( APIENTRY * dllGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); 538 static void ( APIENTRY * dllGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params); 539 static void ( APIENTRY * dllGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params); 540 static void ( APIENTRY * dllGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params); 541 static void ( APIENTRY * dllGetTexParameteriv )(GLenum target, GLenum pname, GLint *params); 542 static void ( APIENTRY * dllHint )(GLenum target, GLenum mode); 543 static void ( APIENTRY * dllIndexMask )(GLuint mask); 544 static void ( APIENTRY * dllIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer); 545 static void ( APIENTRY * dllIndexd )(GLdouble c); 546 static void ( APIENTRY * dllIndexdv )(const GLdouble *c); 547 static void ( APIENTRY * dllIndexf )(GLfloat c); 548 static void ( APIENTRY * dllIndexfv )(const GLfloat *c); 549 static void ( APIENTRY * dllIndexi )(GLint c); 550 static void ( APIENTRY * dllIndexiv )(const GLint *c); 551 static void ( APIENTRY * dllIndexs )(GLshort c); 552 static void ( APIENTRY * dllIndexsv )(const GLshort *c); 553 static void ( APIENTRY * dllIndexub )(GLubyte c); 554 static void ( APIENTRY * dllIndexubv )(const GLubyte *c); 555 static void ( APIENTRY * dllInitNames )(void); 556 static void ( APIENTRY * dllInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer); 557 GLboolean ( APIENTRY * dllIsEnabled )(GLenum cap); 558 GLboolean ( APIENTRY * dllIsList )(GLuint list); 559 GLboolean ( APIENTRY * dllIsTexture )(GLuint texture); 560 static void ( APIENTRY * dllLightModelf )(GLenum pname, GLfloat param); 561 static void ( APIENTRY * dllLightModelfv )(GLenum pname, const GLfloat *params); 562 static void ( APIENTRY * dllLightModeli )(GLenum pname, GLint param); 563 static void ( APIENTRY * dllLightModeliv )(GLenum pname, const GLint *params); 564 static void ( APIENTRY * dllLightf )(GLenum light, GLenum pname, GLfloat param); 565 static void ( APIENTRY * dllLightfv )(GLenum light, GLenum pname, const GLfloat *params); 566 static void ( APIENTRY * dllLighti )(GLenum light, GLenum pname, GLint param); 567 static void ( APIENTRY * dllLightiv )(GLenum light, GLenum pname, const GLint *params); 568 static void ( APIENTRY * dllLineStipple )(GLint factor, GLushort pattern); 569 static void ( APIENTRY * dllLineWidth )(GLfloat width); 570 static void ( APIENTRY * dllListBase )(GLuint base); 571 static void ( APIENTRY * dllLoadIdentity )(void); 572 static void ( APIENTRY * dllLoadMatrixd )(const GLdouble *m); 573 static void ( APIENTRY * dllLoadMatrixf )(const GLfloat *m); 574 static void ( APIENTRY * dllLoadName )(GLuint name); 575 static void ( APIENTRY * dllLogicOp )(GLenum opcode); 576 static void ( APIENTRY * dllMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); 577 static void ( APIENTRY * dllMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); 578 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); 579 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); 580 static void ( APIENTRY * dllMapGrid1d )(GLint un, GLdouble u1, GLdouble u2); 581 static void ( APIENTRY * dllMapGrid1f )(GLint un, GLfloat u1, GLfloat u2); 582 static void ( APIENTRY * dllMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); 583 static void ( APIENTRY * dllMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); 584 static void ( APIENTRY * dllMaterialf )(GLenum face, GLenum pname, GLfloat param); 585 static void ( APIENTRY * dllMaterialfv )(GLenum face, GLenum pname, const GLfloat *params); 586 static void ( APIENTRY * dllMateriali )(GLenum face, GLenum pname, GLint param); 587 static void ( APIENTRY * dllMaterialiv )(GLenum face, GLenum pname, const GLint *params); 588 static void ( APIENTRY * dllMatrixMode )(GLenum mode); 589 static void ( APIENTRY * dllMultMatrixd )(const GLdouble *m); 590 static void ( APIENTRY * dllMultMatrixf )(const GLfloat *m); 591 static void ( APIENTRY * dllNewList )(GLuint list, GLenum mode); 592 static void ( APIENTRY * dllNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz); 593 static void ( APIENTRY * dllNormal3bv )(const GLbyte *v); 594 static void ( APIENTRY * dllNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz); 595 static void ( APIENTRY * dllNormal3dv )(const GLdouble *v); 596 static void ( APIENTRY * dllNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz); 597 static void ( APIENTRY * dllNormal3fv )(const GLfloat *v); 598 static void ( APIENTRY * dllNormal3i )(GLint nx, GLint ny, GLint nz); 599 static void ( APIENTRY * dllNormal3iv )(const GLint *v); 600 static void ( APIENTRY * dllNormal3s )(GLshort nx, GLshort ny, GLshort nz); 601 static void ( APIENTRY * dllNormal3sv )(const GLshort *v); 602 static void ( APIENTRY * dllNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer); 603 static void ( APIENTRY * dllOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); 604 static void ( APIENTRY * dllPassThrough )(GLfloat token); 605 static void ( APIENTRY * dllPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values); 606 static void ( APIENTRY * dllPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values); 607 static void ( APIENTRY * dllPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values); 608 static void ( APIENTRY * dllPixelStoref )(GLenum pname, GLfloat param); 609 static void ( APIENTRY * dllPixelStorei )(GLenum pname, GLint param); 610 static void ( APIENTRY * dllPixelTransferf )(GLenum pname, GLfloat param); 611 static void ( APIENTRY * dllPixelTransferi )(GLenum pname, GLint param); 612 static void ( APIENTRY * dllPixelZoom )(GLfloat xfactor, GLfloat yfactor); 613 static void ( APIENTRY * dllPointSize )(GLfloat size); 614 static void ( APIENTRY * dllPolygonMode )(GLenum face, GLenum mode); 615 static void ( APIENTRY * dllPolygonOffset )(GLfloat factor, GLfloat units); 616 static void ( APIENTRY * dllPolygonStipple )(const GLubyte *mask); 617 static void ( APIENTRY * dllPopAttrib )(void); 618 static void ( APIENTRY * dllPopClientAttrib )(void); 619 static void ( APIENTRY * dllPopMatrix )(void); 620 static void ( APIENTRY * dllPopName )(void); 621 static void ( APIENTRY * dllPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities); 622 static void ( APIENTRY * dllPushAttrib )(GLbitfield mask); 623 static void ( APIENTRY * dllPushClientAttrib )(GLbitfield mask); 624 static void ( APIENTRY * dllPushMatrix )(void); 625 static void ( APIENTRY * dllPushName )(GLuint name); 626 static void ( APIENTRY * dllRasterPos2d )(GLdouble x, GLdouble y); 627 static void ( APIENTRY * dllRasterPos2dv )(const GLdouble *v); 628 static void ( APIENTRY * dllRasterPos2f )(GLfloat x, GLfloat y); 629 static void ( APIENTRY * dllRasterPos2fv )(const GLfloat *v); 630 static void ( APIENTRY * dllRasterPos2i )(GLint x, GLint y); 631 static void ( APIENTRY * dllRasterPos2iv )(const GLint *v); 632 static void ( APIENTRY * dllRasterPos2s )(GLshort x, GLshort y); 633 static void ( APIENTRY * dllRasterPos2sv )(const GLshort *v); 634 static void ( APIENTRY * dllRasterPos3d )(GLdouble x, GLdouble y, GLdouble z); 635 static void ( APIENTRY * dllRasterPos3dv )(const GLdouble *v); 636 static void ( APIENTRY * dllRasterPos3f )(GLfloat x, GLfloat y, GLfloat z); 637 static void ( APIENTRY * dllRasterPos3fv )(const GLfloat *v); 638 static void ( APIENTRY * dllRasterPos3i )(GLint x, GLint y, GLint z); 639 static void ( APIENTRY * dllRasterPos3iv )(const GLint *v); 640 static void ( APIENTRY * dllRasterPos3s )(GLshort x, GLshort y, GLshort z); 641 static void ( APIENTRY * dllRasterPos3sv )(const GLshort *v); 642 static void ( APIENTRY * dllRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w); 643 static void ( APIENTRY * dllRasterPos4dv )(const GLdouble *v); 644 static void ( APIENTRY * dllRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w); 645 static void ( APIENTRY * dllRasterPos4fv )(const GLfloat *v); 646 static void ( APIENTRY * dllRasterPos4i )(GLint x, GLint y, GLint z, GLint w); 647 static void ( APIENTRY * dllRasterPos4iv )(const GLint *v); 648 static void ( APIENTRY * dllRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w); 649 static void ( APIENTRY * dllRasterPos4sv )(const GLshort *v); 650 static void ( APIENTRY * dllReadBuffer )(GLenum mode); 651 static void ( APIENTRY * dllReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); 652 static void ( APIENTRY * dllRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); 653 static void ( APIENTRY * dllRectdv )(const GLdouble *v1, const GLdouble *v2); 654 static void ( APIENTRY * dllRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); 655 static void ( APIENTRY * dllRectfv )(const GLfloat *v1, const GLfloat *v2); 656 static void ( APIENTRY * dllRecti )(GLint x1, GLint y1, GLint x2, GLint y2); 657 static void ( APIENTRY * dllRectiv )(const GLint *v1, const GLint *v2); 658 static void ( APIENTRY * dllRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2); 659 static void ( APIENTRY * dllRectsv )(const GLshort *v1, const GLshort *v2); 660 GLint ( APIENTRY * dllRenderMode )(GLenum mode); 661 static void ( APIENTRY * dllRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); 662 static void ( APIENTRY * dllRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); 663 static void ( APIENTRY * dllScaled )(GLdouble x, GLdouble y, GLdouble z); 664 static void ( APIENTRY * dllScalef )(GLfloat x, GLfloat y, GLfloat z); 665 static void ( APIENTRY * dllScissor )(GLint x, GLint y, GLsizei width, GLsizei height); 666 static void ( APIENTRY * dllSelectBuffer )(GLsizei size, GLuint *buffer); 667 static void ( APIENTRY * dllShadeModel )(GLenum mode); 668 static void ( APIENTRY * dllStencilFunc )(GLenum func, GLint ref, GLuint mask); 669 static void ( APIENTRY * dllStencilMask )(GLuint mask); 670 static void ( APIENTRY * dllStencilOp )(GLenum fail, GLenum zfail, GLenum zpass); 671 static void ( APIENTRY * dllTexCoord1d )(GLdouble s); 672 static void ( APIENTRY * dllTexCoord1dv )(const GLdouble *v); 673 static void ( APIENTRY * dllTexCoord1f )(GLfloat s); 674 static void ( APIENTRY * dllTexCoord1fv )(const GLfloat *v); 675 static void ( APIENTRY * dllTexCoord1i )(GLint s); 676 static void ( APIENTRY * dllTexCoord1iv )(const GLint *v); 677 static void ( APIENTRY * dllTexCoord1s )(GLshort s); 678 static void ( APIENTRY * dllTexCoord1sv )(const GLshort *v); 679 static void ( APIENTRY * dllTexCoord2d )(GLdouble s, GLdouble t); 680 static void ( APIENTRY * dllTexCoord2dv )(const GLdouble *v); 681 static void ( APIENTRY * dllTexCoord2f )(GLfloat s, GLfloat t); 682 static void ( APIENTRY * dllTexCoord2fv )(const GLfloat *v); 683 static void ( APIENTRY * dllTexCoord2i )(GLint s, GLint t); 684 static void ( APIENTRY * dllTexCoord2iv )(const GLint *v); 685 static void ( APIENTRY * dllTexCoord2s )(GLshort s, GLshort t); 686 static void ( APIENTRY * dllTexCoord2sv )(const GLshort *v); 687 static void ( APIENTRY * dllTexCoord3d )(GLdouble s, GLdouble t, GLdouble r); 688 static void ( APIENTRY * dllTexCoord3dv )(const GLdouble *v); 689 static void ( APIENTRY * dllTexCoord3f )(GLfloat s, GLfloat t, GLfloat r); 690 static void ( APIENTRY * dllTexCoord3fv )(const GLfloat *v); 691 static void ( APIENTRY * dllTexCoord3i )(GLint s, GLint t, GLint r); 692 static void ( APIENTRY * dllTexCoord3iv )(const GLint *v); 693 static void ( APIENTRY * dllTexCoord3s )(GLshort s, GLshort t, GLshort r); 694 static void ( APIENTRY * dllTexCoord3sv )(const GLshort *v); 695 static void ( APIENTRY * dllTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q); 696 static void ( APIENTRY * dllTexCoord4dv )(const GLdouble *v); 697 static void ( APIENTRY * dllTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q); 698 static void ( APIENTRY * dllTexCoord4fv )(const GLfloat *v); 699 static void ( APIENTRY * dllTexCoord4i )(GLint s, GLint t, GLint r, GLint q); 700 static void ( APIENTRY * dllTexCoord4iv )(const GLint *v); 701 static void ( APIENTRY * dllTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q); 702 static void ( APIENTRY * dllTexCoord4sv )(const GLshort *v); 703 static void ( APIENTRY * dllTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 704 static void ( APIENTRY * dllTexEnvf )(GLenum target, GLenum pname, GLfloat param); 705 static void ( APIENTRY * dllTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params); 706 static void ( APIENTRY * dllTexEnvi )(GLenum target, GLenum pname, GLint param); 707 static void ( APIENTRY * dllTexEnviv )(GLenum target, GLenum pname, const GLint *params); 708 static void ( APIENTRY * dllTexGend )(GLenum coord, GLenum pname, GLdouble param); 709 static void ( APIENTRY * dllTexGendv )(GLenum coord, GLenum pname, const GLdouble *params); 710 static void ( APIENTRY * dllTexGenf )(GLenum coord, GLenum pname, GLfloat param); 711 static void ( APIENTRY * dllTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params); 712 static void ( APIENTRY * dllTexGeni )(GLenum coord, GLenum pname, GLint param); 713 static void ( APIENTRY * dllTexGeniv )(GLenum coord, GLenum pname, const GLint *params); 714 static void ( APIENTRY * dllTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 715 static void ( APIENTRY * dllTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); 716 static void ( APIENTRY * dllTexParameterf )(GLenum target, GLenum pname, GLfloat param); 717 static void ( APIENTRY * dllTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params); 718 static void ( APIENTRY * dllTexParameteri )(GLenum target, GLenum pname, GLint param); 719 static void ( APIENTRY * dllTexParameteriv )(GLenum target, GLenum pname, const GLint *params); 720 static void ( APIENTRY * dllTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); 721 static void ( APIENTRY * dllTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); 722 static void ( APIENTRY * dllTranslated )(GLdouble x, GLdouble y, GLdouble z); 723 static void ( APIENTRY * dllTranslatef )(GLfloat x, GLfloat y, GLfloat z); 724 static void ( APIENTRY * dllVertex2d )(GLdouble x, GLdouble y); 725 static void ( APIENTRY * dllVertex2dv )(const GLdouble *v); 726 static void ( APIENTRY * dllVertex2f )(GLfloat x, GLfloat y); 727 static void ( APIENTRY * dllVertex2fv )(const GLfloat *v); 728 static void ( APIENTRY * dllVertex2i )(GLint x, GLint y); 729 static void ( APIENTRY * dllVertex2iv )(const GLint *v); 730 static void ( APIENTRY * dllVertex2s )(GLshort x, GLshort y); 731 static void ( APIENTRY * dllVertex2sv )(const GLshort *v); 732 static void ( APIENTRY * dllVertex3d )(GLdouble x, GLdouble y, GLdouble z); 733 static void ( APIENTRY * dllVertex3dv )(const GLdouble *v); 734 static void ( APIENTRY * dllVertex3f )(GLfloat x, GLfloat y, GLfloat z); 735 static void ( APIENTRY * dllVertex3fv )(const GLfloat *v); 736 static void ( APIENTRY * dllVertex3i )(GLint x, GLint y, GLint z); 737 static void ( APIENTRY * dllVertex3iv )(const GLint *v); 738 static void ( APIENTRY * dllVertex3s )(GLshort x, GLshort y, GLshort z); 739 static void ( APIENTRY * dllVertex3sv )(const GLshort *v); 740 static void ( APIENTRY * dllVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w); 741 static void ( APIENTRY * dllVertex4dv )(const GLdouble *v); 742 static void ( APIENTRY * dllVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w); 743 static void ( APIENTRY * dllVertex4fv )(const GLfloat *v); 744 static void ( APIENTRY * dllVertex4i )(GLint x, GLint y, GLint z, GLint w); 745 static void ( APIENTRY * dllVertex4iv )(const GLint *v); 746 static void ( APIENTRY * dllVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w); 747 static void ( APIENTRY * dllVertex4sv )(const GLshort *v); 748 static void ( APIENTRY * dllVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); 749 static void ( APIENTRY * dllViewport )(GLint x, GLint y, GLsizei width, GLsizei height); 750 751 /* 752 ** QGL_Shutdown 753 ** 754 ** Unloads the specified DLL then nulls out all the proc pointers. 755 */ 756 void QGL_Shutdown( void ) 757 { 758 if (g_hGLDLL) 759 { 760 ::FreeLibrary(g_hGLDLL); 761 g_hGLDLL = NULL; 762 } 763 764 qglAccum = NULL; 765 qglAlphaFunc = NULL; 766 qglAreTexturesResident = NULL; 767 qglArrayElement = NULL; 768 qglBegin = NULL; 769 qglBindTexture = NULL; 770 qglBitmap = NULL; 771 qglBlendFunc = NULL; 772 qglCallList = NULL; 773 qglCallLists = NULL; 774 qglClear = NULL; 775 qglClearAccum = NULL; 776 qglClearColor = NULL; 777 qglClearDepth = NULL; 778 qglClearIndex = NULL; 779 qglClearStencil = NULL; 780 qglClipPlane = NULL; 781 qglColor3b = NULL; 782 qglColor3bv = NULL; 783 qglColor3d = NULL; 784 qglColor3dv = NULL; 785 qglColor3f = NULL; 786 qglColor3fv = NULL; 787 qglColor3i = NULL; 788 qglColor3iv = NULL; 789 qglColor3s = NULL; 790 qglColor3sv = NULL; 791 qglColor3ub = NULL; 792 qglColor3ubv = NULL; 793 qglColor3ui = NULL; 794 qglColor3uiv = NULL; 795 qglColor3us = NULL; 796 qglColor3usv = NULL; 797 qglColor4b = NULL; 798 qglColor4bv = NULL; 799 qglColor4d = NULL; 800 qglColor4dv = NULL; 801 qglColor4f = NULL; 802 qglColor4fv = NULL; 803 qglColor4i = NULL; 804 qglColor4iv = NULL; 805 qglColor4s = NULL; 806 qglColor4sv = NULL; 807 qglColor4ub = NULL; 808 qglColor4ubv = NULL; 809 qglColor4ui = NULL; 810 qglColor4uiv = NULL; 811 qglColor4us = NULL; 812 qglColor4usv = NULL; 813 qglColorMask = NULL; 814 qglColorMaterial = NULL; 815 qglColorPointer = NULL; 816 qglCopyPixels = NULL; 817 qglCopyTexImage1D = NULL; 818 qglCopyTexImage2D = NULL; 819 qglCopyTexSubImage1D = NULL; 820 qglCopyTexSubImage2D = NULL; 821 qglCullFace = NULL; 822 qglDeleteLists = NULL; 823 qglDeleteTextures = NULL; 824 qglDepthFunc = NULL; 825 qglDepthMask = NULL; 826 qglDepthRange = NULL; 827 qglDisable = NULL; 828 qglDisableClientState = NULL; 829 qglDrawArrays = NULL; 830 qglDrawBuffer = NULL; 831 qglDrawElements = NULL; 832 qglDrawPixels = NULL; 833 qglEdgeFlag = NULL; 834 qglEdgeFlagPointer = NULL; 835 qglEdgeFlagv = NULL; 836 qglEnable = NULL; 837 qglEnableClientState = NULL; 838 qglEnd = NULL; 839 qglEndList = NULL; 840 qglEvalCoord1d = NULL; 841 qglEvalCoord1dv = NULL; 842 qglEvalCoord1f = NULL; 843 qglEvalCoord1fv = NULL; 844 qglEvalCoord2d = NULL; 845 qglEvalCoord2dv = NULL; 846 qglEvalCoord2f = NULL; 847 qglEvalCoord2fv = NULL; 848 qglEvalMesh1 = NULL; 849 qglEvalMesh2 = NULL; 850 qglEvalPoint1 = NULL; 851 qglEvalPoint2 = NULL; 852 qglFeedbackBuffer = NULL; 853 qglFinish = NULL; 854 qglFlush = NULL; 855 qglFogf = NULL; 856 qglFogfv = NULL; 857 qglFogi = NULL; 858 qglFogiv = NULL; 859 qglFrontFace = NULL; 860 qglFrustum = NULL; 861 qglGenLists = NULL; 862 qglGenTextures = NULL; 863 qglGetBooleanv = NULL; 864 qglGetClipPlane = NULL; 865 qglGetDoublev = NULL; 866 qglGetError = NULL; 867 qglGetFloatv = NULL; 868 qglGetIntegerv = NULL; 869 qglGetLightfv = NULL; 870 qglGetLightiv = NULL; 871 qglGetMapdv = NULL; 872 qglGetMapfv = NULL; 873 qglGetMapiv = NULL; 874 qglGetMaterialfv = NULL; 875 qglGetMaterialiv = NULL; 876 qglGetPixelMapfv = NULL; 877 qglGetPixelMapuiv = NULL; 878 qglGetPixelMapusv = NULL; 879 qglGetPointerv = NULL; 880 qglGetPolygonStipple = NULL; 881 qglGetString = NULL; 882 qglGetTexEnvfv = NULL; 883 qglGetTexEnviv = NULL; 884 qglGetTexGendv = NULL; 885 qglGetTexGenfv = NULL; 886 qglGetTexGeniv = NULL; 887 qglGetTexImage = NULL; 888 qglGetTexLevelParameterfv = NULL; 889 qglGetTexLevelParameteriv = NULL; 890 qglGetTexParameterfv = NULL; 891 qglGetTexParameteriv = NULL; 892 qglHint = NULL; 893 qglIndexMask = NULL; 894 qglIndexPointer = NULL; 895 qglIndexd = NULL; 896 qglIndexdv = NULL; 897 qglIndexf = NULL; 898 qglIndexfv = NULL; 899 qglIndexi = NULL; 900 qglIndexiv = NULL; 901 qglIndexs = NULL; 902 qglIndexsv = NULL; 903 qglIndexub = NULL; 904 qglIndexubv = NULL; 905 qglInitNames = NULL; 906 qglInterleavedArrays = NULL; 907 qglIsEnabled = NULL; 908 qglIsList = NULL; 909 qglIsTexture = NULL; 910 qglLightModelf = NULL; 911 qglLightModelfv = NULL; 912 qglLightModeli = NULL; 913 qglLightModeliv = NULL; 914 qglLightf = NULL; 915 qglLightfv = NULL; 916 qglLighti = NULL; 917 qglLightiv = NULL; 918 qglLineStipple = NULL; 919 qglLineWidth = NULL; 920 qglListBase = NULL; 921 qglLoadIdentity = NULL; 922 qglLoadMatrixd = NULL; 923 qglLoadMatrixf = NULL; 924 qglLoadName = NULL; 925 qglLogicOp = NULL; 926 qglMap1d = NULL; 927 qglMap1f = NULL; 928 qglMap2d = NULL; 929 qglMap2f = NULL; 930 qglMapGrid1d = NULL; 931 qglMapGrid1f = NULL; 932 qglMapGrid2d = NULL; 933 qglMapGrid2f = NULL; 934 qglMaterialf = NULL; 935 qglMaterialfv = NULL; 936 qglMateriali = NULL; 937 qglMaterialiv = NULL; 938 qglMatrixMode = NULL; 939 qglMultMatrixd = NULL; 940 qglMultMatrixf = NULL; 941 qglNewList = NULL; 942 qglNormal3b = NULL; 943 qglNormal3bv = NULL; 944 qglNormal3d = NULL; 945 qglNormal3dv = NULL; 946 qglNormal3f = NULL; 947 qglNormal3fv = NULL; 948 qglNormal3i = NULL; 949 qglNormal3iv = NULL; 950 qglNormal3s = NULL; 951 qglNormal3sv = NULL; 952 qglNormalPointer = NULL; 953 qglOrtho = NULL; 954 qglPassThrough = NULL; 955 qglPixelMapfv = NULL; 956 qglPixelMapuiv = NULL; 957 qglPixelMapusv = NULL; 958 qglPixelStoref = NULL; 959 qglPixelStorei = NULL; 960 qglPixelTransferf = NULL; 961 qglPixelTransferi = NULL; 962 qglPixelZoom = NULL; 963 qglPointSize = NULL; 964 qglPolygonMode = NULL; 965 qglPolygonOffset = NULL; 966 qglPolygonStipple = NULL; 967 qglPopAttrib = NULL; 968 qglPopClientAttrib = NULL; 969 qglPopMatrix = NULL; 970 qglPopName = NULL; 971 qglPrioritizeTextures = NULL; 972 qglPushAttrib = NULL; 973 qglPushClientAttrib = NULL; 974 qglPushMatrix = NULL; 975 qglPushName = NULL; 976 qglRasterPos2d = NULL; 977 qglRasterPos2dv = NULL; 978 qglRasterPos2f = NULL; 979 qglRasterPos2fv = NULL; 980 qglRasterPos2i = NULL; 981 qglRasterPos2iv = NULL; 982 qglRasterPos2s = NULL; 983 qglRasterPos2sv = NULL; 984 qglRasterPos3d = NULL; 985 qglRasterPos3dv = NULL; 986 qglRasterPos3f = NULL; 987 qglRasterPos3fv = NULL; 988 qglRasterPos3i = NULL; 989 qglRasterPos3iv = NULL; 990 qglRasterPos3s = NULL; 991 qglRasterPos3sv = NULL; 992 qglRasterPos4d = NULL; 993 qglRasterPos4dv = NULL; 994 qglRasterPos4f = NULL; 995 qglRasterPos4fv = NULL; 996 qglRasterPos4i = NULL; 997 qglRasterPos4iv = NULL; 998 qglRasterPos4s = NULL; 999 qglRasterPos4sv = NULL; 1000 qglReadBuffer = NULL; 1001 qglReadPixels = NULL; 1002 qglRectd = NULL; 1003 qglRectdv = NULL; 1004 qglRectf = NULL; 1005 qglRectfv = NULL; 1006 qglRecti = NULL; 1007 qglRectiv = NULL; 1008 qglRects = NULL; 1009 qglRectsv = NULL; 1010 qglRenderMode = NULL; 1011 qglRotated = NULL; 1012 qglRotatef = NULL; 1013 qglScaled = NULL; 1014 qglScalef = NULL; 1015 qglScissor = NULL; 1016 qglSelectBuffer = NULL; 1017 qglShadeModel = NULL; 1018 qglStencilFunc = NULL; 1019 qglStencilMask = NULL; 1020 qglStencilOp = NULL; 1021 qglTexCoord1d = NULL; 1022 qglTexCoord1dv = NULL; 1023 qglTexCoord1f = NULL; 1024 qglTexCoord1fv = NULL; 1025 qglTexCoord1i = NULL; 1026 qglTexCoord1iv = NULL; 1027 qglTexCoord1s = NULL; 1028 qglTexCoord1sv = NULL; 1029 qglTexCoord2d = NULL; 1030 qglTexCoord2dv = NULL; 1031 qglTexCoord2f = NULL; 1032 qglTexCoord2fv = NULL; 1033 qglTexCoord2i = NULL; 1034 qglTexCoord2iv = NULL; 1035 qglTexCoord2s = NULL; 1036 qglTexCoord2sv = NULL; 1037 qglTexCoord3d = NULL; 1038 qglTexCoord3dv = NULL; 1039 qglTexCoord3f = NULL; 1040 qglTexCoord3fv = NULL; 1041 qglTexCoord3i = NULL; 1042 qglTexCoord3iv = NULL; 1043 qglTexCoord3s = NULL; 1044 qglTexCoord3sv = NULL; 1045 qglTexCoord4d = NULL; 1046 qglTexCoord4dv = NULL; 1047 qglTexCoord4f = NULL; 1048 qglTexCoord4fv = NULL; 1049 qglTexCoord4i = NULL; 1050 qglTexCoord4iv = NULL; 1051 qglTexCoord4s = NULL; 1052 qglTexCoord4sv = NULL; 1053 qglTexCoordPointer = NULL; 1054 qglTexEnvf = NULL; 1055 qglTexEnvfv = NULL; 1056 qglTexEnvi = NULL; 1057 qglTexEnviv = NULL; 1058 qglTexGend = NULL; 1059 qglTexGendv = NULL; 1060 qglTexGenf = NULL; 1061 qglTexGenfv = NULL; 1062 qglTexGeni = NULL; 1063 qglTexGeniv = NULL; 1064 qglTexImage1D = NULL; 1065 qglTexImage2D = NULL; 1066 qglTexParameterf = NULL; 1067 qglTexParameterfv = NULL; 1068 qglTexParameteri = NULL; 1069 qglTexParameteriv = NULL; 1070 qglTexSubImage1D = NULL; 1071 qglTexSubImage2D = NULL; 1072 qglTranslated = NULL; 1073 qglTranslatef = NULL; 1074 qglVertex2d = NULL; 1075 qglVertex2dv = NULL; 1076 qglVertex2f = NULL; 1077 qglVertex2fv = NULL; 1078 qglVertex2i = NULL; 1079 qglVertex2iv = NULL; 1080 qglVertex2s = NULL; 1081 qglVertex2sv = NULL; 1082 qglVertex3d = NULL; 1083 qglVertex3dv = NULL; 1084 qglVertex3f = NULL; 1085 qglVertex3fv = NULL; 1086 qglVertex3i = NULL; 1087 qglVertex3iv = NULL; 1088 qglVertex3s = NULL; 1089 qglVertex3sv = NULL; 1090 qglVertex4d = NULL; 1091 qglVertex4dv = NULL; 1092 qglVertex4f = NULL; 1093 qglVertex4fv = NULL; 1094 qglVertex4i = NULL; 1095 qglVertex4iv = NULL; 1096 qglVertex4s = NULL; 1097 qglVertex4sv = NULL; 1098 qglVertexPointer = NULL; 1099 qglViewport = NULL; 1100 1101 qwglCopyContext = NULL; 1102 qwglCreateContext = NULL; 1103 qwglCreateLayerContext = NULL; 1104 qwglDeleteContext = NULL; 1105 qwglDescribeLayerPlane = NULL; 1106 qwglGetCurrentContext = NULL; 1107 qwglGetCurrentDC = NULL; 1108 qwglGetLayerPaletteEntries = NULL; 1109 qwglGetProcAddress = NULL; 1110 qwglMakeCurrent = NULL; 1111 qwglRealizeLayerPalette = NULL; 1112 qwglSetLayerPaletteEntries = NULL; 1113 qwglShareLists = NULL; 1114 qwglSwapLayerBuffers = NULL; 1115 qwglUseFontBitmaps = NULL; 1116 qwglUseFontOutlines = NULL; 1117 1118 qwglChoosePixelFormat = NULL; 1119 qwglDescribePixelFormat = NULL; 1120 qwglGetPixelFormat = NULL; 1121 qwglSetPixelFormat = NULL; 1122 qwglSwapBuffers = NULL; 1123 1124 qwglSwapIntervalEXT = NULL; 1125 1126 qwglGetDeviceGammaRampEXT = NULL; 1127 qwglSetDeviceGammaRampEXT = NULL; 1128 } 1129 1130 # define GPA(h, a ) GetProcAddress( h, a ) 1131 1132 /* 1133 ** QGL_Init 1134 ** 1135 ** This is responsible for binding our qgl function pointers to 1136 ** the appropriate GL stuff. In Windows this means doing a 1137 ** LoadLibrary and a bunch of calls to GetProcAddress. On other 1138 ** operating systems we need to do the right thing, whatever that 1139 ** might be. 1140 ** 1141 */ 1142 qboolean QGL_Init(const char *dllname ) 1143 { 1144 1145 g_hGLDLL = ::LoadLibrary(dllname); 1146 1147 qglAccum = dllAccum = GPA(g_hGLDLL, "glAccum" ); 1148 qglAlphaFunc = dllAlphaFunc = GPA(g_hGLDLL, "glAlphaFunc" ); 1149 qglAreTexturesResident = dllAreTexturesResident = GPA(g_hGLDLL, "glAreTexturesResident" ); 1150 qglArrayElement = dllArrayElement = GPA(g_hGLDLL, "glArrayElement" ); 1151 qglBegin = dllBegin = GPA(g_hGLDLL, "glBegin" ); 1152 qglBindTexture = dllBindTexture = GPA(g_hGLDLL, "glBindTexture" ); 1153 qglBitmap = dllBitmap = GPA(g_hGLDLL, "glBitmap" ); 1154 qglBlendFunc = dllBlendFunc = GPA(g_hGLDLL, "glBlendFunc" ); 1155 qglCallList = dllCallList = GPA(g_hGLDLL, "glCallList" ); 1156 qglCallLists = dllCallLists = GPA(g_hGLDLL, "glCallLists" ); 1157 qglClear = dllClear = GPA(g_hGLDLL, "glClear" ); 1158 qglClearAccum = dllClearAccum = GPA(g_hGLDLL, "glClearAccum" ); 1159 qglClearColor = dllClearColor = GPA(g_hGLDLL, "glClearColor" ); 1160 qglClearDepth = dllClearDepth = GPA(g_hGLDLL, "glClearDepth" ); 1161 qglClearIndex = dllClearIndex = GPA(g_hGLDLL, "glClearIndex" ); 1162 qglClearStencil = dllClearStencil = GPA(g_hGLDLL, "glClearStencil" ); 1163 qglClipPlane = dllClipPlane = GPA(g_hGLDLL, "glClipPlane" ); 1164 qglColor3b = dllColor3b = GPA(g_hGLDLL, "glColor3b" ); 1165 qglColor3bv = dllColor3bv = GPA(g_hGLDLL, "glColor3bv" ); 1166 qglColor3d = dllColor3d = GPA(g_hGLDLL, "glColor3d" ); 1167 qglColor3dv = dllColor3dv = GPA(g_hGLDLL, "glColor3dv" ); 1168 qglColor3f = dllColor3f = GPA(g_hGLDLL, "glColor3f" ); 1169 qglColor3fv = dllColor3fv = GPA(g_hGLDLL, "glColor3fv" ); 1170 qglColor3i = dllColor3i = GPA(g_hGLDLL, "glColor3i" ); 1171 qglColor3iv = dllColor3iv = GPA(g_hGLDLL, "glColor3iv" ); 1172 qglColor3s = dllColor3s = GPA(g_hGLDLL, "glColor3s" ); 1173 qglColor3sv = dllColor3sv = GPA(g_hGLDLL, "glColor3sv" ); 1174 qglColor3ub = dllColor3ub = GPA(g_hGLDLL, "glColor3ub" ); 1175 qglColor3ubv = dllColor3ubv = GPA(g_hGLDLL, "glColor3ubv" ); 1176 qglColor3ui = dllColor3ui = GPA(g_hGLDLL, "glColor3ui" ); 1177 qglColor3uiv = dllColor3uiv = GPA(g_hGLDLL, "glColor3uiv" ); 1178 qglColor3us = dllColor3us = GPA(g_hGLDLL, "glColor3us" ); 1179 qglColor3usv = dllColor3usv = GPA(g_hGLDLL, "glColor3usv" ); 1180 qglColor4b = dllColor4b = GPA(g_hGLDLL, "glColor4b" ); 1181 qglColor4bv = dllColor4bv = GPA(g_hGLDLL, "glColor4bv" ); 1182 qglColor4d = dllColor4d = GPA(g_hGLDLL, "glColor4d" ); 1183 qglColor4dv = dllColor4dv = GPA(g_hGLDLL, "glColor4dv" ); 1184 qglColor4f = dllColor4f = GPA(g_hGLDLL, "glColor4f" ); 1185 qglColor4fv = dllColor4fv = GPA(g_hGLDLL, "glColor4fv" ); 1186 qglColor4i = dllColor4i = GPA(g_hGLDLL, "glColor4i" ); 1187 qglColor4iv = dllColor4iv = GPA(g_hGLDLL, "glColor4iv" ); 1188 qglColor4s = dllColor4s = GPA(g_hGLDLL, "glColor4s" ); 1189 qglColor4sv = dllColor4sv = GPA(g_hGLDLL, "glColor4sv" ); 1190 qglColor4ub = dllColor4ub = GPA(g_hGLDLL, "glColor4ub" ); 1191 qglColor4ubv = dllColor4ubv = GPA(g_hGLDLL, "glColor4ubv" ); 1192 qglColor4ui = dllColor4ui = GPA(g_hGLDLL, "glColor4ui" ); 1193 qglColor4uiv = dllColor4uiv = GPA(g_hGLDLL, "glColor4uiv" ); 1194 qglColor4us = dllColor4us = GPA(g_hGLDLL, "glColor4us" ); 1195 qglColor4usv = dllColor4usv = GPA(g_hGLDLL, "glColor4usv" ); 1196 qglColorMask = dllColorMask = GPA(g_hGLDLL, "glColorMask" ); 1197 qglColorMaterial = dllColorMaterial = GPA(g_hGLDLL, "glColorMaterial" ); 1198 qglColorPointer = dllColorPointer = GPA(g_hGLDLL, "glColorPointer" ); 1199 qglCopyPixels = dllCopyPixels = GPA(g_hGLDLL, "glCopyPixels" ); 1200 qglCopyTexImage1D = dllCopyTexImage1D = GPA(g_hGLDLL, "glCopyTexImage1D" ); 1201 qglCopyTexImage2D = dllCopyTexImage2D = GPA(g_hGLDLL, "glCopyTexImage2D" ); 1202 qglCopyTexSubImage1D = dllCopyTexSubImage1D = GPA(g_hGLDLL, "glCopyTexSubImage1D" ); 1203 qglCopyTexSubImage2D = dllCopyTexSubImage2D = GPA(g_hGLDLL, "glCopyTexSubImage2D" ); 1204 qglCullFace = dllCullFace = GPA(g_hGLDLL, "glCullFace" ); 1205 qglDeleteLists = dllDeleteLists = GPA(g_hGLDLL, "glDeleteLists" ); 1206 qglDeleteTextures = dllDeleteTextures = GPA(g_hGLDLL, "glDeleteTextures" ); 1207 qglDepthFunc = dllDepthFunc = GPA(g_hGLDLL, "glDepthFunc" ); 1208 qglDepthMask = dllDepthMask = GPA(g_hGLDLL, "glDepthMask" ); 1209 qglDepthRange = dllDepthRange = GPA(g_hGLDLL, "glDepthRange" ); 1210 qglDisable = dllDisable = GPA(g_hGLDLL, "glDisable" ); 1211 qglDisableClientState = dllDisableClientState = GPA(g_hGLDLL, "glDisableClientState" ); 1212 qglDrawArrays = dllDrawArrays = GPA(g_hGLDLL, "glDrawArrays" ); 1213 qglDrawBuffer = dllDrawBuffer = GPA(g_hGLDLL, "glDrawBuffer" ); 1214 qglDrawElements = dllDrawElements = GPA(g_hGLDLL, "glDrawElements" ); 1215 qglDrawPixels = dllDrawPixels = GPA(g_hGLDLL, "glDrawPixels" ); 1216 qglEdgeFlag = dllEdgeFlag = GPA(g_hGLDLL, "glEdgeFlag" ); 1217 qglEdgeFlagPointer = dllEdgeFlagPointer = GPA(g_hGLDLL, "glEdgeFlagPointer" ); 1218 qglEdgeFlagv = dllEdgeFlagv = GPA(g_hGLDLL, "glEdgeFlagv" ); 1219 qglEnable = dllEnable = GPA(g_hGLDLL, "glEnable" ); 1220 qglEnableClientState = dllEnableClientState = GPA(g_hGLDLL, "glEnableClientState" ); 1221 qglEnd = dllEnd = GPA(g_hGLDLL, "glEnd" ); 1222 qglEndList = dllEndList = GPA(g_hGLDLL, "glEndList" ); 1223 qglEvalCoord1d = dllEvalCoord1d = GPA(g_hGLDLL, "glEvalCoord1d" ); 1224 qglEvalCoord1dv = dllEvalCoord1dv = GPA(g_hGLDLL, "glEvalCoord1dv" ); 1225 qglEvalCoord1f = dllEvalCoord1f = GPA(g_hGLDLL, "glEvalCoord1f" ); 1226 qglEvalCoord1fv = dllEvalCoord1fv = GPA(g_hGLDLL, "glEvalCoord1fv" ); 1227 qglEvalCoord2d = dllEvalCoord2d = GPA(g_hGLDLL, "glEvalCoord2d" ); 1228 qglEvalCoord2dv = dllEvalCoord2dv = GPA(g_hGLDLL, "glEvalCoord2dv" ); 1229 qglEvalCoord2f = dllEvalCoord2f = GPA(g_hGLDLL, "glEvalCoord2f" ); 1230 qglEvalCoord2fv = dllEvalCoord2fv = GPA(g_hGLDLL, "glEvalCoord2fv" ); 1231 qglEvalMesh1 = dllEvalMesh1 = GPA(g_hGLDLL, "glEvalMesh1" ); 1232 qglEvalMesh2 = dllEvalMesh2 = GPA(g_hGLDLL, "glEvalMesh2" ); 1233 qglEvalPoint1 = dllEvalPoint1 = GPA(g_hGLDLL, "glEvalPoint1" ); 1234 qglEvalPoint2 = dllEvalPoint2 = GPA(g_hGLDLL, "glEvalPoint2" ); 1235 qglFeedbackBuffer = dllFeedbackBuffer = GPA(g_hGLDLL, "glFeedbackBuffer" ); 1236 qglFinish = dllFinish = GPA(g_hGLDLL, "glFinish" ); 1237 qglFlush = dllFlush = GPA(g_hGLDLL, "glFlush" ); 1238 qglFogf = dllFogf = GPA(g_hGLDLL, "glFogf" ); 1239 qglFogfv = dllFogfv = GPA(g_hGLDLL, "glFogfv" ); 1240 qglFogi = dllFogi = GPA(g_hGLDLL, "glFogi" ); 1241 qglFogiv = dllFogiv = GPA(g_hGLDLL, "glFogiv" ); 1242 qglFrontFace = dllFrontFace = GPA(g_hGLDLL, "glFrontFace" ); 1243 qglFrustum = dllFrustum = GPA(g_hGLDLL, "glFrustum" ); 1244 qglGenLists = dllGenLists = GPA(g_hGLDLL, "glGenLists" ); 1245 qglGenTextures = dllGenTextures = GPA(g_hGLDLL, "glGenTextures" ); 1246 qglGetBooleanv = dllGetBooleanv = GPA(g_hGLDLL, "glGetBooleanv" ); 1247 qglGetClipPlane = dllGetClipPlane = GPA(g_hGLDLL, "glGetClipPlane" ); 1248 qglGetDoublev = dllGetDoublev = GPA(g_hGLDLL, "glGetDoublev" ); 1249 qglGetError = dllGetError = GPA(g_hGLDLL, "glGetError" ); 1250 qglGetFloatv = dllGetFloatv = GPA(g_hGLDLL, "glGetFloatv" ); 1251 qglGetIntegerv = dllGetIntegerv = GPA(g_hGLDLL, "glGetIntegerv" ); 1252 qglGetLightfv = dllGetLightfv = GPA(g_hGLDLL, "glGetLightfv" ); 1253 qglGetLightiv = dllGetLightiv = GPA(g_hGLDLL, "glGetLightiv" ); 1254 qglGetMapdv = dllGetMapdv = GPA(g_hGLDLL, "glGetMapdv" ); 1255 qglGetMapfv = dllGetMapfv = GPA(g_hGLDLL, "glGetMapfv" ); 1256 qglGetMapiv = dllGetMapiv = GPA(g_hGLDLL, "glGetMapiv" ); 1257 qglGetMaterialfv = dllGetMaterialfv = GPA(g_hGLDLL, "glGetMaterialfv" ); 1258 qglGetMaterialiv = dllGetMaterialiv = GPA(g_hGLDLL, "glGetMaterialiv" ); 1259 qglGetPixelMapfv = dllGetPixelMapfv = GPA(g_hGLDLL, "glGetPixelMapfv" ); 1260 qglGetPixelMapuiv = dllGetPixelMapuiv = GPA(g_hGLDLL, "glGetPixelMapuiv" ); 1261 qglGetPixelMapusv = dllGetPixelMapusv = GPA(g_hGLDLL, "glGetPixelMapusv" ); 1262 qglGetPointerv = dllGetPointerv = GPA(g_hGLDLL, "glGetPointerv" ); 1263 qglGetPolygonStipple = dllGetPolygonStipple = GPA(g_hGLDLL, "glGetPolygonStipple" ); 1264 qglGetString = dllGetString = GPA(g_hGLDLL, "glGetString" ); 1265 qglGetTexEnvfv = dllGetTexEnvfv = GPA(g_hGLDLL, "glGetTexEnvfv" ); 1266 qglGetTexEnviv = dllGetTexEnviv = GPA(g_hGLDLL, "glGetTexEnviv" ); 1267 qglGetTexGendv = dllGetTexGendv = GPA(g_hGLDLL, "glGetTexGendv" ); 1268 qglGetTexGenfv = dllGetTexGenfv = GPA(g_hGLDLL, "glGetTexGenfv" ); 1269 qglGetTexGeniv = dllGetTexGeniv = GPA(g_hGLDLL, "glGetTexGeniv" ); 1270 qglGetTexImage = dllGetTexImage = GPA(g_hGLDLL, "glGetTexImage" ); 1271 qglGetTexLevelParameterfv = dllGetTexLevelParameterfv = GPA(g_hGLDLL, "glGetLevelParameterfv" ); 1272 qglGetTexLevelParameteriv = dllGetTexLevelParameteriv = GPA(g_hGLDLL, "glGetLevelParameteriv" ); 1273 qglGetTexParameterfv = dllGetTexParameterfv = GPA(g_hGLDLL, "glGetTexParameterfv" ); 1274 qglGetTexParameteriv = dllGetTexParameteriv = GPA(g_hGLDLL, "glGetTexParameteriv" ); 1275 qglHint = dllHint = GPA(g_hGLDLL, "glHint" ); 1276 qglIndexMask = dllIndexMask = GPA(g_hGLDLL, "glIndexMask" ); 1277 qglIndexPointer = dllIndexPointer = GPA(g_hGLDLL, "glIndexPointer" ); 1278 qglIndexd = dllIndexd = GPA(g_hGLDLL, "glIndexd" ); 1279 qglIndexdv = dllIndexdv = GPA(g_hGLDLL, "glIndexdv" ); 1280 qglIndexf = dllIndexf = GPA(g_hGLDLL, "glIndexf" ); 1281 qglIndexfv = dllIndexfv = GPA(g_hGLDLL, "glIndexfv" ); 1282 qglIndexi = dllIndexi = GPA(g_hGLDLL, "glIndexi" ); 1283 qglIndexiv = dllIndexiv = GPA(g_hGLDLL, "glIndexiv" ); 1284 qglIndexs = dllIndexs = GPA(g_hGLDLL, "glIndexs" ); 1285 qglIndexsv = dllIndexsv = GPA(g_hGLDLL, "glIndexsv" ); 1286 qglIndexub = dllIndexub = GPA(g_hGLDLL, "glIndexub" ); 1287 qglIndexubv = dllIndexubv = GPA(g_hGLDLL, "glIndexubv" ); 1288 qglInitNames = dllInitNames = GPA(g_hGLDLL, "glInitNames" ); 1289 qglInterleavedArrays = dllInterleavedArrays = GPA(g_hGLDLL, "glInterleavedArrays" ); 1290 qglIsEnabled = dllIsEnabled = GPA(g_hGLDLL, "glIsEnabled" ); 1291 qglIsList = dllIsList = GPA(g_hGLDLL, "glIsList" ); 1292 qglIsTexture = dllIsTexture = GPA(g_hGLDLL, "glIsTexture" ); 1293 qglLightModelf = dllLightModelf = GPA(g_hGLDLL, "glLightModelf" ); 1294 qglLightModelfv = dllLightModelfv = GPA(g_hGLDLL, "glLightModelfv" ); 1295 qglLightModeli = dllLightModeli = GPA(g_hGLDLL, "glLightModeli" ); 1296 qglLightModeliv = dllLightModeliv = GPA(g_hGLDLL, "glLightModeliv" ); 1297 qglLightf = dllLightf = GPA(g_hGLDLL, "glLightf" ); 1298 qglLightfv = dllLightfv = GPA(g_hGLDLL, "glLightfv" ); 1299 qglLighti = dllLighti = GPA(g_hGLDLL, "glLighti" ); 1300 qglLightiv = dllLightiv = GPA(g_hGLDLL, "glLightiv" ); 1301 qglLineStipple = dllLineStipple = GPA(g_hGLDLL, "glLineStipple" ); 1302 qglLineWidth = dllLineWidth = GPA(g_hGLDLL, "glLineWidth" ); 1303 qglListBase = dllListBase = GPA(g_hGLDLL, "glListBase" ); 1304 qglLoadIdentity = dllLoadIdentity = GPA(g_hGLDLL, "glLoadIdentity" ); 1305 qglLoadMatrixd = dllLoadMatrixd = GPA(g_hGLDLL, "glLoadMatrixd" ); 1306 qglLoadMatrixf = dllLoadMatrixf = GPA(g_hGLDLL, "glLoadMatrixf" ); 1307 qglLoadName = dllLoadName = GPA(g_hGLDLL, "glLoadName" ); 1308 qglLogicOp = dllLogicOp = GPA(g_hGLDLL, "glLogicOp" ); 1309 qglMap1d = dllMap1d = GPA(g_hGLDLL, "glMap1d" ); 1310 qglMap1f = dllMap1f = GPA(g_hGLDLL, "glMap1f" ); 1311 qglMap2d = dllMap2d = GPA(g_hGLDLL, "glMap2d" ); 1312 qglMap2f = dllMap2f = GPA(g_hGLDLL, "glMap2f" ); 1313 qglMapGrid1d = dllMapGrid1d = GPA(g_hGLDLL, "glMapGrid1d" ); 1314 qglMapGrid1f = dllMapGrid1f = GPA(g_hGLDLL, "glMapGrid1f" ); 1315 qglMapGrid2d = dllMapGrid2d = GPA(g_hGLDLL, "glMapGrid2d" ); 1316 qglMapGrid2f = dllMapGrid2f = GPA(g_hGLDLL, "glMapGrid2f" ); 1317 qglMaterialf = dllMaterialf = GPA(g_hGLDLL, "glMaterialf" ); 1318 qglMaterialfv = dllMaterialfv = GPA(g_hGLDLL, "glMaterialfv" ); 1319 qglMateriali = dllMateriali = GPA(g_hGLDLL, "glMateriali" ); 1320 qglMaterialiv = dllMaterialiv = GPA(g_hGLDLL, "glMaterialiv" ); 1321 qglMatrixMode = dllMatrixMode = GPA(g_hGLDLL, "glMatrixMode" ); 1322 qglMultMatrixd = dllMultMatrixd = GPA(g_hGLDLL, "glMultMatrixd" ); 1323 qglMultMatrixf = dllMultMatrixf = GPA(g_hGLDLL, "glMultMatrixf" ); 1324 qglNewList = dllNewList = GPA(g_hGLDLL, "glNewList" ); 1325 qglNormal3b = dllNormal3b = GPA(g_hGLDLL, "glNormal3b" ); 1326 qglNormal3bv = dllNormal3bv = GPA(g_hGLDLL, "glNormal3bv" ); 1327 qglNormal3d = dllNormal3d = GPA(g_hGLDLL, "glNormal3d" ); 1328 qglNormal3dv = dllNormal3dv = GPA(g_hGLDLL, "glNormal3dv" ); 1329 qglNormal3f = dllNormal3f = GPA(g_hGLDLL, "glNormal3f" ); 1330 qglNormal3fv = dllNormal3fv = GPA(g_hGLDLL, "glNormal3fv" ); 1331 qglNormal3i = dllNormal3i = GPA(g_hGLDLL, "glNormal3i" ); 1332 qglNormal3iv = dllNormal3iv = GPA(g_hGLDLL, "glNormal3iv" ); 1333 qglNormal3s = dllNormal3s = GPA(g_hGLDLL, "glNormal3s" ); 1334 qglNormal3sv = dllNormal3sv = GPA(g_hGLDLL, "glNormal3sv" ); 1335 qglNormalPointer = dllNormalPointer = GPA(g_hGLDLL, "glNormalPointer" ); 1336 qglOrtho = dllOrtho = GPA(g_hGLDLL, "glOrtho" ); 1337 qglPassThrough = dllPassThrough = GPA(g_hGLDLL, "glPassThrough" ); 1338 qglPixelMapfv = dllPixelMapfv = GPA(g_hGLDLL, "glPixelMapfv" ); 1339 qglPixelMapuiv = dllPixelMapuiv = GPA(g_hGLDLL, "glPixelMapuiv" ); 1340 qglPixelMapusv = dllPixelMapusv = GPA(g_hGLDLL, "glPixelMapusv" ); 1341 qglPixelStoref = dllPixelStoref = GPA(g_hGLDLL, "glPixelStoref" ); 1342 qglPixelStorei = dllPixelStorei = GPA(g_hGLDLL, "glPixelStorei" ); 1343 qglPixelTransferf = dllPixelTransferf = GPA(g_hGLDLL, "glPixelTransferf" ); 1344 qglPixelTransferi = dllPixelTransferi = GPA(g_hGLDLL, "glPixelTransferi" ); 1345 qglPixelZoom = dllPixelZoom = GPA(g_hGLDLL, "glPixelZoom" ); 1346 qglPointSize = dllPointSize = GPA(g_hGLDLL, "glPointSize" ); 1347 qglPolygonMode = dllPolygonMode = GPA(g_hGLDLL, "glPolygonMode" ); 1348 qglPolygonOffset = dllPolygonOffset = GPA(g_hGLDLL, "glPolygonOffset" ); 1349 qglPolygonStipple = dllPolygonStipple = GPA(g_hGLDLL, "glPolygonStipple" ); 1350 qglPopAttrib = dllPopAttrib = GPA(g_hGLDLL, "glPopAttrib" ); 1351 qglPopClientAttrib = dllPopClientAttrib = GPA(g_hGLDLL, "glPopClientAttrib" ); 1352 qglPopMatrix = dllPopMatrix = GPA(g_hGLDLL, "glPopMatrix" ); 1353 qglPopName = dllPopName = GPA(g_hGLDLL, "glPopName" ); 1354 qglPrioritizeTextures = dllPrioritizeTextures = GPA(g_hGLDLL, "glPrioritizeTextures" ); 1355 qglPushAttrib = dllPushAttrib = GPA(g_hGLDLL, "glPushAttrib" ); 1356 qglPushClientAttrib = dllPushClientAttrib = GPA(g_hGLDLL, "glPushClientAttrib" ); 1357 qglPushMatrix = dllPushMatrix = GPA(g_hGLDLL, "glPushMatrix" ); 1358 qglPushName = dllPushName = GPA(g_hGLDLL, "glPushName" ); 1359 qglRasterPos2d = dllRasterPos2d = GPA(g_hGLDLL, "glRasterPos2d" ); 1360 qglRasterPos2dv = dllRasterPos2dv = GPA(g_hGLDLL, "glRasterPos2dv" ); 1361 qglRasterPos2f = dllRasterPos2f = GPA(g_hGLDLL, "glRasterPos2f" ); 1362 qglRasterPos2fv = dllRasterPos2fv = GPA(g_hGLDLL, "glRasterPos2fv" ); 1363 qglRasterPos2i = dllRasterPos2i = GPA(g_hGLDLL, "glRasterPos2i" ); 1364 qglRasterPos2iv = dllRasterPos2iv = GPA(g_hGLDLL, "glRasterPos2iv" ); 1365 qglRasterPos2s = dllRasterPos2s = GPA(g_hGLDLL, "glRasterPos2s" ); 1366 qglRasterPos2sv = dllRasterPos2sv = GPA(g_hGLDLL, "glRasterPos2sv" ); 1367 qglRasterPos3d = dllRasterPos3d = GPA(g_hGLDLL, "glRasterPos3d" ); 1368 qglRasterPos3dv = dllRasterPos3dv = GPA(g_hGLDLL, "glRasterPos3dv" ); 1369 qglRasterPos3f = dllRasterPos3f = GPA(g_hGLDLL, "glRasterPos3f" ); 1370 qglRasterPos3fv = dllRasterPos3fv = GPA(g_hGLDLL, "glRasterPos3fv" ); 1371 qglRasterPos3i = dllRasterPos3i = GPA(g_hGLDLL, "glRasterPos3i" ); 1372 qglRasterPos3iv = dllRasterPos3iv = GPA(g_hGLDLL, "glRasterPos3iv" ); 1373 qglRasterPos3s = dllRasterPos3s = GPA(g_hGLDLL, "glRasterPos3s" ); 1374 qglRasterPos3sv = dllRasterPos3sv = GPA(g_hGLDLL, "glRasterPos3sv" ); 1375 qglRasterPos4d = dllRasterPos4d = GPA(g_hGLDLL, "glRasterPos4d" ); 1376 qglRasterPos4dv = dllRasterPos4dv = GPA(g_hGLDLL, "glRasterPos4dv" ); 1377 qglRasterPos4f = dllRasterPos4f = GPA(g_hGLDLL, "glRasterPos4f" ); 1378 qglRasterPos4fv = dllRasterPos4fv = GPA(g_hGLDLL, "glRasterPos4fv" ); 1379 qglRasterPos4i = dllRasterPos4i = GPA(g_hGLDLL, "glRasterPos4i" ); 1380 qglRasterPos4iv = dllRasterPos4iv = GPA(g_hGLDLL, "glRasterPos4iv" ); 1381 qglRasterPos4s = dllRasterPos4s = GPA(g_hGLDLL, "glRasterPos4s" ); 1382 qglRasterPos4sv = dllRasterPos4sv = GPA(g_hGLDLL, "glRasterPos4sv" ); 1383 qglReadBuffer = dllReadBuffer = GPA(g_hGLDLL, "glReadBuffer" ); 1384 qglReadPixels = dllReadPixels = GPA(g_hGLDLL, "glReadPixels" ); 1385 qglRectd = dllRectd = GPA(g_hGLDLL, "glRectd" ); 1386 qglRectdv = dllRectdv = GPA(g_hGLDLL, "glRectdv" ); 1387 qglRectf = dllRectf = GPA(g_hGLDLL, "glRectf" ); 1388 qglRectfv = dllRectfv = GPA(g_hGLDLL, "glRectfv" ); 1389 qglRecti = dllRecti = GPA(g_hGLDLL, "glRecti" ); 1390 qglRectiv = dllRectiv = GPA(g_hGLDLL, "glRectiv" ); 1391 qglRects = dllRects = GPA(g_hGLDLL, "glRects" ); 1392 qglRectsv = dllRectsv = GPA(g_hGLDLL, "glRectsv" ); 1393 qglRenderMode = dllRenderMode = GPA(g_hGLDLL, "glRenderMode" ); 1394 qglRotated = dllRotated = GPA(g_hGLDLL, "glRotated" ); 1395 qglRotatef = dllRotatef = GPA(g_hGLDLL, "glRotatef" ); 1396 qglScaled = dllScaled = GPA(g_hGLDLL, "glScaled" ); 1397 qglScalef = dllScalef = GPA(g_hGLDLL, "glScalef" ); 1398 qglScissor = dllScissor = GPA(g_hGLDLL, "glScissor" ); 1399 qglSelectBuffer = dllSelectBuffer = GPA(g_hGLDLL, "glSelectBuffer" ); 1400 qglShadeModel = dllShadeModel = GPA(g_hGLDLL, "glShadeModel" ); 1401 qglStencilFunc = dllStencilFunc = GPA(g_hGLDLL, "glStencilFunc" ); 1402 qglStencilMask = dllStencilMask = GPA(g_hGLDLL, "glStencilMask" ); 1403 qglStencilOp = dllStencilOp = GPA(g_hGLDLL, "glStencilOp" ); 1404 qglTexCoord1d = dllTexCoord1d = GPA(g_hGLDLL, "glTexCoord1d" ); 1405 qglTexCoord1dv = dllTexCoord1dv = GPA(g_hGLDLL, "glTexCoord1dv" ); 1406 qglTexCoord1f = dllTexCoord1f = GPA(g_hGLDLL, "glTexCoord1f" ); 1407 qglTexCoord1fv = dllTexCoord1fv = GPA(g_hGLDLL, "glTexCoord1fv" ); 1408 qglTexCoord1i = dllTexCoord1i = GPA(g_hGLDLL, "glTexCoord1i" ); 1409 qglTexCoord1iv = dllTexCoord1iv = GPA(g_hGLDLL, "glTexCoord1iv" ); 1410 qglTexCoord1s = dllTexCoord1s = GPA(g_hGLDLL, "glTexCoord1s" ); 1411 qglTexCoord1sv = dllTexCoord1sv = GPA(g_hGLDLL, "glTexCoord1sv" ); 1412 qglTexCoord2d = dllTexCoord2d = GPA(g_hGLDLL, "glTexCoord2d" ); 1413 qglTexCoord2dv = dllTexCoord2dv = GPA(g_hGLDLL, "glTexCoord2dv" ); 1414 qglTexCoord2f = dllTexCoord2f = GPA(g_hGLDLL, "glTexCoord2f" ); 1415 qglTexCoord2fv = dllTexCoord2fv = GPA(g_hGLDLL, "glTexCoord2fv" ); 1416 qglTexCoord2i = dllTexCoord2i = GPA(g_hGLDLL, "glTexCoord2i" ); 1417 qglTexCoord2iv = dllTexCoord2iv = GPA(g_hGLDLL, "glTexCoord2iv" ); 1418 qglTexCoord2s = dllTexCoord2s = GPA(g_hGLDLL, "glTexCoord2s" ); 1419 qglTexCoord2sv = dllTexCoord2sv = GPA(g_hGLDLL, "glTexCoord2sv" ); 1420 qglTexCoord3d = dllTexCoord3d = GPA(g_hGLDLL, "glTexCoord3d" ); 1421 qglTexCoord3dv = dllTexCoord3dv = GPA(g_hGLDLL, "glTexCoord3dv" ); 1422 qglTexCoord3f = dllTexCoord3f = GPA(g_hGLDLL, "glTexCoord3f" ); 1423 qglTexCoord3fv = dllTexCoord3fv = GPA(g_hGLDLL, "glTexCoord3fv" ); 1424 qglTexCoord3i = dllTexCoord3i = GPA(g_hGLDLL, "glTexCoord3i" ); 1425 qglTexCoord3iv = dllTexCoord3iv = GPA(g_hGLDLL, "glTexCoord3iv" ); 1426 qglTexCoord3s = dllTexCoord3s = GPA(g_hGLDLL, "glTexCoord3s" ); 1427 qglTexCoord3sv = dllTexCoord3sv = GPA(g_hGLDLL, "glTexCoord3sv" ); 1428 qglTexCoord4d = dllTexCoord4d = GPA(g_hGLDLL, "glTexCoord4d" ); 1429 qglTexCoord4dv = dllTexCoord4dv = GPA(g_hGLDLL, "glTexCoord4dv" ); 1430 qglTexCoord4f = dllTexCoord4f = GPA(g_hGLDLL, "glTexCoord4f" ); 1431 qglTexCoord4fv = dllTexCoord4fv = GPA(g_hGLDLL, "glTexCoord4fv" ); 1432 qglTexCoord4i = dllTexCoord4i = GPA(g_hGLDLL, "glTexCoord4i" ); 1433 qglTexCoord4iv = dllTexCoord4iv = GPA(g_hGLDLL, "glTexCoord4iv" ); 1434 qglTexCoord4s = dllTexCoord4s = GPA(g_hGLDLL, "glTexCoord4s" ); 1435 qglTexCoord4sv = dllTexCoord4sv = GPA(g_hGLDLL, "glTexCoord4sv" ); 1436 qglTexCoordPointer = dllTexCoordPointer = GPA(g_hGLDLL, "glTexCoordPointer" ); 1437 qglTexEnvf = dllTexEnvf = GPA(g_hGLDLL, "glTexEnvf" ); 1438 qglTexEnvfv = dllTexEnvfv = GPA(g_hGLDLL, "glTexEnvfv" ); 1439 qglTexEnvi = dllTexEnvi = GPA(g_hGLDLL, "glTexEnvi" ); 1440 qglTexEnviv = dllTexEnviv = GPA(g_hGLDLL, "glTexEnviv" ); 1441 qglTexGend = dllTexGend = GPA(g_hGLDLL, "glTexGend" ); 1442 qglTexGendv = dllTexGendv = GPA(g_hGLDLL, "glTexGendv" ); 1443 qglTexGenf = dllTexGenf = GPA(g_hGLDLL, "glTexGenf" ); 1444 qglTexGenfv = dllTexGenfv = GPA(g_hGLDLL, "glTexGenfv" ); 1445 qglTexGeni = dllTexGeni = GPA(g_hGLDLL, "glTexGeni" ); 1446 qglTexGeniv = dllTexGeniv = GPA(g_hGLDLL, "glTexGeniv" ); 1447 qglTexImage1D = dllTexImage1D = GPA(g_hGLDLL, "glTexImage1D" ); 1448 qglTexImage2D = dllTexImage2D = GPA(g_hGLDLL, "glTexImage2D" ); 1449 qglTexParameterf = dllTexParameterf = GPA(g_hGLDLL, "glTexParameterf" ); 1450 qglTexParameterfv = dllTexParameterfv = GPA(g_hGLDLL, "glTexParameterfv" ); 1451 qglTexParameteri = dllTexParameteri = GPA(g_hGLDLL, "glTexParameteri" ); 1452 qglTexParameteriv = dllTexParameteriv = GPA(g_hGLDLL, "glTexParameteriv" ); 1453 qglTexSubImage1D = dllTexSubImage1D = GPA(g_hGLDLL, "glTexSubImage1D" ); 1454 qglTexSubImage2D = dllTexSubImage2D = GPA(g_hGLDLL, "glTexSubImage2D" ); 1455 qglTranslated = dllTranslated = GPA(g_hGLDLL, "glTranslated" ); 1456 qglTranslatef = dllTranslatef = GPA(g_hGLDLL, "glTranslatef" ); 1457 qglVertex2d = dllVertex2d = GPA(g_hGLDLL, "glVertex2d" ); 1458 qglVertex2dv = dllVertex2dv = GPA(g_hGLDLL, "glVertex2dv" ); 1459 qglVertex2f = dllVertex2f = GPA(g_hGLDLL, "glVertex2f" ); 1460 qglVertex2fv = dllVertex2fv = GPA(g_hGLDLL, "glVertex2fv" ); 1461 qglVertex2i = dllVertex2i = GPA(g_hGLDLL, "glVertex2i" ); 1462 qglVertex2iv = dllVertex2iv = GPA(g_hGLDLL, "glVertex2iv" ); 1463 qglVertex2s = dllVertex2s = GPA(g_hGLDLL, "glVertex2s" ); 1464 qglVertex2sv = dllVertex2sv = GPA(g_hGLDLL, "glVertex2sv" ); 1465 qglVertex3d = dllVertex3d = GPA(g_hGLDLL, "glVertex3d" ); 1466 qglVertex3dv = dllVertex3dv = GPA(g_hGLDLL, "glVertex3dv" ); 1467 qglVertex3f = dllVertex3f = GPA(g_hGLDLL, "glVertex3f" ); 1468 qglVertex3fv = dllVertex3fv = GPA(g_hGLDLL, "glVertex3fv" ); 1469 qglVertex3i = dllVertex3i = GPA(g_hGLDLL, "glVertex3i" ); 1470 qglVertex3iv = dllVertex3iv = GPA(g_hGLDLL, "glVertex3iv" ); 1471 qglVertex3s = dllVertex3s = GPA(g_hGLDLL, "glVertex3s" ); 1472 qglVertex3sv = dllVertex3sv = GPA(g_hGLDLL, "glVertex3sv" ); 1473 qglVertex4d = dllVertex4d = GPA(g_hGLDLL, "glVertex4d" ); 1474 qglVertex4dv = dllVertex4dv = GPA(g_hGLDLL, "glVertex4dv" ); 1475 qglVertex4f = dllVertex4f = GPA(g_hGLDLL, "glVertex4f" ); 1476 qglVertex4fv = dllVertex4fv = GPA(g_hGLDLL, "glVertex4fv" ); 1477 qglVertex4i = dllVertex4i = GPA(g_hGLDLL, "glVertex4i" ); 1478 qglVertex4iv = dllVertex4iv = GPA(g_hGLDLL, "glVertex4iv" ); 1479 qglVertex4s = dllVertex4s = GPA(g_hGLDLL, "glVertex4s" ); 1480 qglVertex4sv = dllVertex4sv = GPA(g_hGLDLL, "glVertex4sv" ); 1481 qglVertexPointer = dllVertexPointer = GPA(g_hGLDLL, "glVertexPointer" ); 1482 qglViewport = dllViewport = GPA(g_hGLDLL, "glViewport" ); 1483 1484 qwglCopyContext = GPA(g_hGLDLL, "wglCopyContext" ); 1485 qwglCreateContext = GPA(g_hGLDLL, "wglCreateContext" ); 1486 qwglCreateLayerContext = GPA(g_hGLDLL, "wglCreateLayerContext" ); 1487 qwglDeleteContext = GPA(g_hGLDLL, "wglDeleteContext" ); 1488 qwglDescribeLayerPlane = GPA(g_hGLDLL, "wglDescribeLayerPlane" ); 1489 qwglGetCurrentContext = GPA(g_hGLDLL, "wglGetCurrentContext" ); 1490 qwglGetCurrentDC = GPA(g_hGLDLL, "wglGetCurrentDC" ); 1491 qwglGetLayerPaletteEntries = GPA(g_hGLDLL, "wglGetLayerPaletteEntries" ); 1492 qwglGetProcAddress = GPA(g_hGLDLL, "wglGetProcAddress" ); 1493 qwglMakeCurrent = GPA(g_hGLDLL, "wglMakeCurrent" ); 1494 qwglRealizeLayerPalette = GPA(g_hGLDLL, "wglRealizeLayerPalette" ); 1495 qwglSetLayerPaletteEntries = GPA(g_hGLDLL, "wglSetLayerPaletteEntries" ); 1496 qwglShareLists = GPA(g_hGLDLL, "wglShareLists" ); 1497 qwglSwapLayerBuffers = GPA(g_hGLDLL, "wglSwapLayerBuffers" ); 1498 qwglUseFontBitmaps = GPA(g_hGLDLL, "wglUseFontBitmapsA" ); 1499 qwglUseFontOutlines = GPA(g_hGLDLL, "wglUseFontOutlinesA" ); 1500 1501 qwglChoosePixelFormat = GPA(g_hGLDLL, "wglChoosePixelFormat" ); 1502 qwglDescribePixelFormat = GPA(g_hGLDLL, "wglDescribePixelFormat" ); 1503 qwglGetPixelFormat = GPA(g_hGLDLL, "wglGetPixelFormat" ); 1504 qwglSetPixelFormat = GPA(g_hGLDLL, "wglSetPixelFormat" ); 1505 qwglSwapBuffers = GPA(g_hGLDLL, "wglSwapBuffers" ); 1506 1507 qwglSwapIntervalEXT = 0; 1508 qglPointParameterfEXT = 0; 1509 qglPointParameterfvEXT = 0; 1510 qglColorTableEXT = 0; 1511 qglSelectTextureSGIS = 0; 1512 qglMTexCoord2fSGIS = 0; 1513 1514 return true; 1515 } 1516 1517 #pragma warning (default : 4113 4133 4047 ) 1518 1519 1520