add level component saving functions which use PhysicsFS (didn't commit properly...
[btb/d2x.git] / include / loadgl.h
1 /* $Id: loadgl.h,v 1.12 2005-01-25 19:23:58 schaffner Exp $ */
2 /*
3  *
4  * dynamic opengl loading - courtesy of Jeff Slutter
5  *
6  *
7  */
8
9 #ifndef __LOADGL_H__
10 #define __LOADGL_H__
11
12 #ifdef _WIN32
13 #include <windows.h>
14 #define OGLFUNCCALL     __stdcall
15 #else
16 #define OGLFUNCCALL
17 #endif
18
19 #include <GL/gl.h>
20 #include "pstypes.h"
21
22 //gl extensions.
23 #ifndef GL_ARB_multitexture
24 #define GL_ARB_multitexture 1
25 #define GL_TEXTURE0_ARB 0x84C0
26 #define GL_TEXTURE1_ARB 0x84C1
27 #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
28 #endif
29
30 #ifndef GL_SGIS_multitexture
31 #define GL_SGIS_multitexture 1
32 #define GL_TEXTURE0_SGIS 0x835F
33 #define GL_TEXTURE1_SGIS 0x8360
34 #define GL_MAX_TEXTURES_SGIS 0x835D
35 #endif
36
37 #ifndef GL_EXT_paletted_texture
38 #define GL_EXT_paletted_texture 1
39 #define GL_COLOR_INDEX8_EXT 0x80E5
40 #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
41 #endif
42
43 #ifndef GL_TEXTURE_INDEX_SIZE_EXT
44 #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
45 #endif
46
47 #ifndef GL_NV_register_combiners
48 #define GL_NV_register_combiners 1
49 #define GL_REGISTER_COMBINERS_NV          0x8522
50 #define GL_VARIABLE_A_NV                  0x8523
51 #define GL_VARIABLE_B_NV                  0x8524
52 #define GL_VARIABLE_C_NV                  0x8525
53 #define GL_VARIABLE_D_NV                  0x8526
54 #define GL_VARIABLE_E_NV                  0x8527
55 #define GL_VARIABLE_F_NV                  0x8528
56 #define GL_VARIABLE_G_NV                  0x8529
57 #define GL_CONSTANT_COLOR0_NV             0x852A
58 #define GL_CONSTANT_COLOR1_NV             0x852B
59 #define GL_PRIMARY_COLOR_NV               0x852C
60 #define GL_SECONDARY_COLOR_NV             0x852D
61 #define GL_SPARE0_NV                      0x852E
62 #define GL_SPARE1_NV                      0x852F
63 #define GL_DISCARD_NV                     0x8530
64 #define GL_E_TIMES_F_NV                   0x8531
65 #define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
66 #define GL_UNSIGNED_IDENTITY_NV           0x8536
67 #define GL_UNSIGNED_INVERT_NV             0x8537
68 #define GL_EXPAND_NORMAL_NV               0x8538
69 #define GL_EXPAND_NEGATE_NV               0x8539
70 #define GL_HALF_BIAS_NORMAL_NV            0x853A
71 #define GL_HALF_BIAS_NEGATE_NV            0x853B
72 #define GL_SIGNED_IDENTITY_NV             0x853C
73 #define GL_SIGNED_NEGATE_NV               0x853D
74 #define GL_SCALE_BY_TWO_NV                0x853E
75 #define GL_SCALE_BY_FOUR_NV               0x853F
76 #define GL_SCALE_BY_ONE_HALF_NV           0x8540
77 #define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV   0x8541
78 #define GL_COMBINER_INPUT_NV              0x8542
79 #define GL_COMBINER_MAPPING_NV            0x8543
80 #define GL_COMBINER_COMPONENT_USAGE_NV    0x8544
81 #define GL_COMBINER_AB_DOT_PRODUCT_NV     0x8545
82 #define GL_COMBINER_CD_DOT_PRODUCT_NV     0x8546
83 #define GL_COMBINER_MUX_SUM_NV            0x8547
84 #define GL_COMBINER_SCALE_NV              0x8548
85 #define GL_COMBINER_BIAS_NV               0x8549
86 #define GL_COMBINER_AB_OUTPUT_NV          0x854A
87 #define GL_COMBINER_CD_OUTPUT_NV          0x854B
88 #define GL_COMBINER_SUM_OUTPUT_NV         0x854C
89 #define GL_MAX_GENERAL_COMBINERS_NV       0x854D
90 #define GL_NUM_GENERAL_COMBINERS_NV       0x854E
91 #define GL_COLOR_SUM_CLAMP_NV             0x854F
92 #define GL_COMBINER0_NV                   0x8550
93 #define GL_COMBINER1_NV                   0x8551
94 #define GL_COMBINER2_NV                   0x8552
95 #define GL_COMBINER3_NV                   0x8553
96 #define GL_COMBINER4_NV                   0x8554
97 #define GL_COMBINER5_NV                   0x8555
98 #define GL_COMBINER6_NV                   0x8556
99 #define GL_COMBINER7_NV                   0x8557
100 #endif
101
102 #ifdef _cplusplus
103 #define OEXTERN extern "C"
104 #else
105 #define OEXTERN extern
106 #define true 1
107 #define false 0
108 #endif
109
110 #ifdef DECLARE_VARS
111 #define DEFVAR
112 #else
113 #define DEFVAR  OEXTERN
114 #endif
115
116 #define glAccum dglAccum
117 #define glAlphaFunc dglAlphaFunc
118 #define glAreTexturesResident dglAreTexturesResident
119 #define glArrayElement dglArrayElement
120 #define glBegin dglBegin
121 #define glBindTexture dglBindTexture
122 #define glBitmap dglBitmap
123 #define glBlendFunc dglBlendFunc
124 #define glCallList dglCallList
125 #define glCallLists dglCallLists
126 #define glClear dglClear
127 #define glClearAccum dglClearAccum
128 #define glClearColor dglClearColor
129 #define glClearDepth dglClearDepth
130 #define glClearIndex dglClearIndex
131 #define glClearStencil dglClearStencil
132 #define glClipPlane dglClipPlane
133 #define glColor3b dglColor3b
134 #define glColor3bv dglColor3bv
135 #define glColor3d dglColor3d
136 #define glColor3dv dglColor3dv
137 #define glColor3f dglColor3f
138 #define glColor3fv dglColor3fv
139 #define glColor3i dglColor3i
140 #define glColor3iv dglColor3iv
141 #define glColor3s dglColor3s
142 #define glColor3sv dglColor3sv
143 #define glColor3ub dglColor3ub
144 #define glColor3ubv dglColor3ubv
145 #define glColor3ui dglColor3ui
146 #define glColor3uiv dglColor3uiv
147 #define glColor3us dglColor3us
148 #define glColor3usv dglColor3usv
149 #define glColor4b dglColor4b
150 #define glColor4bv dglColor4bv
151 #define glColor4d dglColor4d
152 #define glColor4dv dglColor4dv
153 #define glColor4f dglColor4f
154 #define glColor4fv dglColor4fv
155 #define glColor4i dglColor4i
156 #define glColor4iv dglColor4iv
157 #define glColor4s dglColor4s
158 #define glColor4sv dglColor4sv
159 #define glColor4ub dglColor4ub
160 #define glColor4ubv dglColor4ubv
161 #define glColor4ui dglColor4ui
162 #define glColor4uiv dglColor4uiv
163 #define glColor4us dglColor4us
164 #define glColor4usv dglColor4usv
165 #define glColorMask dglColorMask
166 #define glColorMaterial dglColorMaterial
167 #define glColorPointer dglColorPointer
168 #define glCopyPixels dglCopyPixels
169 #define glCopyTexImage1D dglCopyTexImage1D
170 #define glCopyTexImage2D dglCopyTexImage2D
171 #define glCopyTexSubImage1D dglCopyTexSubImage1D
172 #define glCopyTexSubImage2D dglCopyTexSubImage2D
173 #define glCullFace dglCullFace
174 #define glDeleteLists dglDeleteLists
175 #define glDeleteTextures dglDeleteTextures
176 #define glDepthFunc dglDepthFunc
177 #define glDepthMask dglDepthMask
178 #define glDepthRange dglDepthRange
179 #define glDisable dglDisable
180 #define glDisableClientState dglDisableClientState
181 #define glDrawArrays dglDrawArrays
182 #define glDrawBuffer dglDrawBuffer
183 #define glDrawElements dglDrawElements
184 #define glDrawPixels dglDrawPixels
185 #define glEdgeFlag dglEdgeFlag
186 #define glEdgeFlagPointer dglEdgeFlagPointer
187 #define glEdgeFlagv dglEdgeFlagv
188 #define glEnable dglEnable
189 #define glEnableClientState dglEnableClientState
190 #define glEnd dglEnd
191 #define glEndList dglEndList
192 #define glEvalCoord1d dglEvalCoord1d
193 #define glEvalCoord1dv dglEvalCoord1dv
194 #define glEvalCoord1f dglEvalCoord1f
195 #define glEvalCoord1fv dglEvalCoord1fv
196 #define glEvalCoord2d dglEvalCoord2d
197 #define glEvalCoord2dv dglEvalCoord2dv
198 #define glEvalCoord2f dglEvalCoord2f
199 #define glEvalCoord2fv dglEvalCoord2fv
200 #define glEvalMesh1 dglEvalMesh1
201 #define glEvalMesh2 dglEvalMesh2
202 #define glEvalPoint1 dglEvalPoint1
203 #define glEvalPoint2 dglEvalPoint2
204 #define glFeedbackBuffer dglFeedbackBuffer
205 #define glFinish dglFinish
206 #define glFlush dglFlush
207 #define glFogf dglFogf
208 #define glFogfv dglFogfv
209 #define glFogi dglFogi
210 #define glFogiv dglFogiv
211 #define glFrontFace dglFrontFace
212 #define glFrustum dglFrustum
213 #define glGenLists dglGenLists
214 #define glGenTextures dglGenTextures
215 #define glGetBooleanv dglGetBooleanv
216 #define glGetClipPlane dglGetClipPlane
217 #define glGetDoublev dglGetDoublev
218 #define glGetError dglGetError
219 #define glGetFloatv dglGetFloatv
220 #define glGetIntegerv dglGetIntegerv
221 #define glGetLightfv dglGetLightfv
222 #define glGetLightiv dglGetLightiv
223 #define glGetMapdv dglGetMapdv
224 #define glGetMapfv dglGetMapfv
225 #define glGetMapiv dglGetMapiv
226 #define glGetMaterialfv dglGetMaterialfv
227 #define glGetMaterialiv dglGetMaterialiv
228 #define glGetPixelMapfv dglGetPixelMapfv
229 #define glGetPixelMapuiv dglGetPixelMapuiv
230 #define glGetPixelMapusv dglGetPixelMapusv
231 #define glGetPointerv dglGetPointerv
232 #define glGetPolygonStipple dglGetPolygonStipple
233 #define glGetString dglGetString
234 #define glGetTexEnvfv dglGetTexEnvfv
235 #define glGetTexEnviv dglGetTexEnviv
236 #define glGetTexGendv dglGetTexGendv
237 #define glGetTexGenfv dglGetTexGenfv
238 #define glGetTexGeniv dglGetTexGeniv
239 #define glGetTexImage dglGetTexImage
240 #define glGetTexLevelParameterfv dglGetTexLevelParameterfv
241 #define glGetTexLevelParameteriv dglGetTexLevelParameteriv
242 #define glGetTexParameterfv dglGetTexParameterfv
243 #define glGetTexParameteriv dglGetTexParameteriv
244 #define glHint dglHint
245 #define glIndexMask dglIndexMask
246 #define glIndexPointer dglIndexPointer
247 #define glIndexd dglIndexd
248 #define glIndexdv dglIndexdv
249 #define glIndexf dglIndexf
250 #define glIndexfv dglIndexfv
251 #define glIndexi dglIndexi
252 #define glIndexiv dglIndexiv
253 #define glIndexs dglIndexs
254 #define glIndexsv dglIndexsv
255 #define glIndexub dglIndexub
256 #define glIndexubv dglIndexubv
257 #define glInitNames dglInitNames
258 #define glInterleavedArrays dglInterleavedArrays
259 #define glIsEnabled dglIsEnabled
260 #define glIsList dglIsList
261 #define glIsTexture dglIsTexture
262 #define glLightModelf dglLightModelf
263 #define glLightModelfv dglLightModelfv
264 #define glLightModeli dglLightModeli
265 #define glLightModeliv dglLightModeliv
266 #define glLightf dglLightf
267 #define glLightfv dglLightfv
268 #define glLighti dglLighti
269 #define glLightiv dglLightiv
270 #define glLineStipple dglLineStipple
271 #define glLineWidth dglLineWidth
272 #define glListBase dglListBase
273 #define glLoadIdentity dglLoadIdentity
274 #define glLoadMatrixd dglLoadMatrixd
275 #define glLoadMatrixf dglLoadMatrixf
276 #define glLoadName dglLoadName
277 #define glLogicOp dglLogicOp
278 #define glMap1d dglMap1d
279 #define glMap1f dglMap1f
280 #define glMap2d dglMap2d
281 #define glMap2f dglMap2f
282 #define glMapGrid1d dglMapGrid1d
283 #define glMapGrid1f dglMapGrid1f
284 #define glMapGrid2d dglMapGrid2d
285 #define glMapGrid2f dglMapGrid2f
286 #define glMaterialf dglMaterialf
287 #define glMaterialfv dglMaterialfv
288 #define glMateriali dglMateriali
289 #define glMaterialiv dglMaterialiv
290 #define glMatrixMode dglMatrixMode
291 #define glMultMatrixd dglMultMatrixd
292 #define glMultMatrixf dglMultMatrixf
293 #define glNewList dglNewList
294 #define glNormal3b dglNormal3b
295 #define glNormal3bv dglNormal3bv
296 #define glNormal3d dglNormal3d
297 #define glNormal3dv dglNormal3dv
298 #define glNormal3f dglNormal3f
299 #define glNormal3fv dglNormal3fv
300 #define glNormal3i dglNormal3i
301 #define glNormal3iv dglNormal3iv
302 #define glNormal3s dglNormal3s
303 #define glNormal3sv dglNormal3sv
304 #define glNormalPointer dglNormalPointer
305 #define glOrtho dglOrtho
306 #define glPassThrough dglPassThrough
307 #define glPixelMapfv dglPixelMapfv
308 #define glPixelMapuiv dglPixelMapuiv
309 #define glPixelMapusv dglPixelMapusv
310 #define glPixelStoref dglPixelStoref
311 #define glPixelStorei dglPixelStorei
312 #define glPixelTransferf dglPixelTransferf
313 #define glPixelTransferi dglPixelTransferi
314 #define glPixelZoom dglPixelZoom
315 #define glPointSize dglPointSize
316 #define glPolygonMode dglPolygonMode
317 #define glPolygonOffset dglPolygonOffset
318 #define glPolygonStipple dglPolygonStipple
319 #define glPopAttrib dglPopAttrib
320 #define glPopClientAttrib dglPopClientAttrib
321 #define glPopMatrix dglPopMatrix
322 #define glPopName dglPopName
323 #define glPrioritizeTextures dglPrioritizeTextures
324 #define glPushAttrib dglPushAttrib
325 #define glPushClientAttrib dglPushClientAttrib
326 #define glPushMatrix dglPushMatrix
327 #define glPushName dglPushName
328 #define glRasterPos2d dglRasterPos2d
329 #define glRasterPos2dv dglRasterPos2dv
330 #define glRasterPos2f dglRasterPos2f
331 #define glRasterPos2fv dglRasterPos2fv
332 #define glRasterPos2i dglRasterPos2i
333 #define glRasterPos2iv dglRasterPos2iv
334 #define glRasterPos2s dglRasterPos2s
335 #define glRasterPos2sv dglRasterPos2sv
336 #define glRasterPos3d dglRasterPos3d
337 #define glRasterPos3dv dglRasterPos3dv
338 #define glRasterPos3f dglRasterPos3f
339 #define glRasterPos3fv dglRasterPos3fv
340 #define glRasterPos3i dglRasterPos3i
341 #define glRasterPos3iv dglRasterPos3iv
342 #define glRasterPos3s dglRasterPos3s
343 #define glRasterPos3sv dglRasterPos3sv
344 #define glRasterPos4d dglRasterPos4d
345 #define glRasterPos4dv dglRasterPos4dv
346 #define glRasterPos4f dglRasterPos4f
347 #define glRasterPos4fv dglRasterPos4fv
348 #define glRasterPos4i dglRasterPos4i
349 #define glRasterPos4iv dglRasterPos4iv
350 #define glRasterPos4s dglRasterPos4s
351 #define glRasterPos4sv dglRasterPos4sv
352 #define glReadBuffer dglReadBuffer
353 #define glReadPixels dglReadPixels
354 #define glRectd dglRectd
355 #define glRectdv dglRectdv
356 #define glRectf dglRectf
357 #define glRectfv dglRectfv
358 #define glRecti dglRecti
359 #define glRectiv dglRectiv
360 #define glRects dglRects
361 #define glRectsv dglRectsv
362 #define glRenderMode dglRenderMode
363 #define glRotated dglRotated
364 #define glRotatef dglRotatef
365 #define glScaled dglScaled
366 #define glScalef dglScalef
367 #define glScissor dglScissor
368 #define glSelectBuffer dglSelectBuffer
369 #define glShadeModel dglShadeModel
370 #define glStencilFunc dglStencilFunc
371 #define glStencilMask dglStencilMask
372 #define glStencilOp dglStencilOp
373 #define glTexCoord1d dglTexCoord1d
374 #define glTexCoord1dv dglTexCoord1dv
375 #define glTexCoord1f dglTexCoord1f
376 #define glTexCoord1fv dglTexCoord1fv
377 #define glTexCoord1i dglTexCoord1i
378 #define glTexCoord1iv dglTexCoord1iv
379 #define glTexCoord1s dglTexCoord1s
380 #define glTexCoord1sv dglTexCoord1sv
381 #define glTexCoord2d dglTexCoord2d
382 #define glTexCoord2dv dglTexCoord2dv
383 #define glTexCoord2f dglTexCoord2f
384 #define glTexCoord2fv dglTexCoord2fv
385 #define glTexCoord2i dglTexCoord2i
386 #define glTexCoord2iv dglTexCoord2iv
387 #define glTexCoord2s dglTexCoord2s
388 #define glTexCoord2sv dglTexCoord2sv
389 #define glTexCoord3d dglTexCoord3d
390 #define glTexCoord3dv dglTexCoord3dv
391 #define glTexCoord3f dglTexCoord3f
392 #define glTexCoord3fv dglTexCoord3fv
393 #define glTexCoord3i dglTexCoord3i
394 #define glTexCoord3iv dglTexCoord3iv
395 #define glTexCoord3s dglTexCoord3s
396 #define glTexCoord3sv dglTexCoord3sv
397 #define glTexCoord4d dglTexCoord4d
398 #define glTexCoord4dv dglTexCoord4dv
399 #define glTexCoord4f dglTexCoord4f
400 #define glTexCoord4fv dglTexCoord4fv
401 #define glTexCoord4i dglTexCoord4i
402 #define glTexCoord4iv dglTexCoord4iv
403 #define glTexCoord4s dglTexCoord4s
404 #define glTexCoord4sv dglTexCoord4sv
405 #define glTexCoordPointer dglTexCoordPointer
406 #define glTexEnvf dglTexEnvf
407 #define glTexEnvfv dglTexEnvfv
408 #define glTexEnvi dglTexEnvi
409 #define glTexEnviv dglTexEnviv
410 #define glTexGend dglTexGend
411 #define glTexGendv dglTexGendv
412 #define glTexGenf dglTexGenf
413 #define glTexGenfv dglTexGenfv
414 #define glTexGeni dglTexGeni
415 #define glTexGeniv dglTexGeniv
416 #define glTexImage1D dglTexImage1D
417 #define glTexImage2D dglTexImage2D
418 #define glTexParameterf dglTexParameterf
419 #define glTexParameterfv dglTexParameterfv
420 #define glTexParameteri dglTexParameteri
421 #define glTexParameteriv dglTexParameteriv
422 #define glTexSubImage1D dglTexSubImage1D
423 #define glTexSubImage2D dglTexSubImage2D
424 #define glTranslated dglTranslated
425 #define glTranslatef dglTranslatef
426 #define glVertex2d dglVertex2d
427 #define glVertex2dv dglVertex2dv
428 #define glVertex2f dglVertex2f
429 #define glVertex2fv dglVertex2fv
430 #define glVertex2i dglVertex2i
431 #define glVertex2iv dglVertex2iv
432 #define glVertex2s dglVertex2s
433 #define glVertex2sv dglVertex2sv
434 #define glVertex3d dglVertex3d
435 #define glVertex3dv dglVertex3dv
436 #define glVertex3f dglVertex3f
437 #define glVertex3fv dglVertex3fv
438 #define glVertex3i dglVertex3i
439 #define glVertex3iv dglVertex3iv
440 #define glVertex3s dglVertex3s
441 #define glVertex3sv dglVertex3sv
442 #define glVertex4d dglVertex4d
443 #define glVertex4dv dglVertex4dv
444 #define glVertex4f dglVertex4f
445 #define glVertex4fv dglVertex4fv
446 #define glVertex4i dglVertex4i
447 #define glVertex4iv dglVertex4iv
448 #define glVertex4s dglVertex4s
449 #define glVertex4sv dglVertex4sv
450 #define glVertexPointer dglVertexPointer
451 #define glViewport dglViewport
452
453 #define glMultiTexCoord2fARB dglMultiTexCoord2fARB
454 #define glActiveTextureARB dglActiveTextureARB
455 #define glMultiTexCoord2fSGIS dglMultiTexCoord2fSGIS
456 #define glSelectTextureSGIS dglSelectTextureSGIS
457
458 #define glColorTableEXT dglColorTableEXT
459
460 #define glCombinerParameteriNV dglCombinerParameteriNV
461 #define glCombinerInputNV dglCombinerInputNV
462 #define glCombinerOutputNV dglCombinerOutputNV
463 #define glFinalCombinerInputNV dglFinalCombinerInputNV
464
465 #ifdef _WIN32
466 #define wglCopyContext dwglCopyContext
467 #define wglCreateContext dwglCreateContext
468 #define wglCreateLayerContext dwglCreateLayerContext
469 #define wglDeleteContext dwglDeleteContext
470 #define wglGetCurrentContext dwglGetCurrentContext
471 #define wglGetCurrentDC dwglGetCurrentDC
472 #define wglGetProcAddress dwglGetProcAddress
473 #define wglMakeCurrent dwglMakeCurrent
474 #define wglShareLists dwglShareLists
475 #define wglUseFontBitmapsA dwglUseFontBitmapsA
476 #define wglUseFontBitmapsW dwglUseFontBitmapsW
477 #define wglUseFontOutlinesA dwglUseFontOutlinesA
478 #define wglUseFontOutlinesW dwglUseFontOutlinesW
479 #define wglDescribeLayerPlane dwglDescribeLayerPlane
480 #define wglSetLayerPaletteEntries dwglSetLayerPaletteEntries
481 #define wglGetLayerPaletteEntries dwglGetLayerPaletteEntries
482 #define wglRealizeLayerPalette dwglRealizeLayerPalette
483 #define wglSwapLayerBuffers dwglSwapLayerBuffers
484 #if (WINVER >= 0x0500)
485 #define wglSwapMultipleBuffers dwglSwapMultipleBuffers
486 #endif
487 #endif
488  
489 typedef void (OGLFUNCCALL *glAccum_fp)(GLenum op, GLfloat value);
490 typedef void (OGLFUNCCALL *glAlphaFunc_fp)(GLenum func, GLclampf ref);
491 typedef GLboolean (OGLFUNCCALL *glAreTexturesResident_fp)(GLsizei n, const GLuint *textures, GLboolean *residences);
492 typedef void (OGLFUNCCALL *glArrayElement_fp)(GLint i);
493 typedef void (OGLFUNCCALL *glBegin_fp)(GLenum mode);
494 typedef void (OGLFUNCCALL *glBindTexture_fp)(GLenum target, GLuint texture);
495 typedef void (OGLFUNCCALL *glBitmap_fp)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
496 typedef void (OGLFUNCCALL *glBlendFunc_fp)(GLenum sfactor, GLenum dfactor);
497 typedef void (OGLFUNCCALL *glCallList_fp)(GLuint list);
498 typedef void (OGLFUNCCALL *glCallLists_fp)(GLsizei n, GLenum type, const GLvoid *lists);
499 typedef void (OGLFUNCCALL *glClear_fp)(GLbitfield mask);
500 typedef void (OGLFUNCCALL *glClearAccum_fp)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
501 typedef void (OGLFUNCCALL *glClearColor_fp)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
502 typedef void (OGLFUNCCALL *glClearDepth_fp)(GLclampd depth);
503 typedef void (OGLFUNCCALL *glClearIndex_fp)(GLfloat c);
504 typedef void (OGLFUNCCALL *glClearStencil_fp)(GLint s);
505 typedef void (OGLFUNCCALL *glClipPlane_fp)(GLenum plane, const GLdouble *equation);
506 typedef void (OGLFUNCCALL *glColor3b_fp)(GLbyte red, GLbyte green, GLbyte blue);
507 typedef void (OGLFUNCCALL *glColor3bv_fp)(const GLbyte *v);
508 typedef void (OGLFUNCCALL *glColor3d_fp)(GLdouble red, GLdouble green, GLdouble blue);
509 typedef void (OGLFUNCCALL *glColor3dv_fp)(const GLdouble *v);
510 typedef void (OGLFUNCCALL *glColor3f_fp)(GLfloat red, GLfloat green, GLfloat blue);
511 typedef void (OGLFUNCCALL *glColor3fv_fp)(const GLfloat *v);
512 typedef void (OGLFUNCCALL *glColor3i_fp)(GLint red, GLint green, GLint blue);
513 typedef void (OGLFUNCCALL *glColor3iv_fp)(const GLint *v);
514 typedef void (OGLFUNCCALL *glColor3s_fp)(GLshort red, GLshort green, GLshort blue);
515 typedef void (OGLFUNCCALL *glColor3sv_fp)(const GLshort *v);
516 typedef void (OGLFUNCCALL *glColor3ub_fp)(GLubyte red, GLubyte green, GLubyte blue);
517 typedef void (OGLFUNCCALL *glColor3ubv_fp)(const GLubyte *v);
518 typedef void (OGLFUNCCALL *glColor3ui_fp)(GLuint red, GLuint green, GLuint blue);
519 typedef void (OGLFUNCCALL *glColor3uiv_fp)(const GLuint *v);
520 typedef void (OGLFUNCCALL *glColor3us_fp)(GLushort red, GLushort green, GLushort blue);
521 typedef void (OGLFUNCCALL *glColor3usv_fp)(const GLushort *v);
522 typedef void (OGLFUNCCALL *glColor4b_fp)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
523 typedef void (OGLFUNCCALL *glColor4bv_fp)(const GLbyte *v);
524 typedef void (OGLFUNCCALL *glColor4d_fp)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
525 typedef void (OGLFUNCCALL *glColor4dv_fp)(const GLdouble *v);
526 typedef void (OGLFUNCCALL *glColor4f_fp)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
527 typedef void (OGLFUNCCALL *glColor4fv_fp)(const GLfloat *v);
528 typedef void (OGLFUNCCALL *glColor4i_fp)(GLint red, GLint green, GLint blue, GLint alpha);
529 typedef void (OGLFUNCCALL *glColor4iv_fp)(const GLint *v);
530 typedef void (OGLFUNCCALL *glColor4s_fp)(GLshort red, GLshort green, GLshort blue, GLshort alpha);
531 typedef void (OGLFUNCCALL *glColor4sv_fp)(const GLshort *v);
532 typedef void (OGLFUNCCALL *glColor4ub_fp)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
533 typedef void (OGLFUNCCALL *glColor4ubv_fp)(const GLubyte *v);
534 typedef void (OGLFUNCCALL *glColor4ui_fp)(GLuint red, GLuint green, GLuint blue, GLuint alpha);
535 typedef void (OGLFUNCCALL *glColor4uiv_fp)(const GLuint *v);
536 typedef void (OGLFUNCCALL *glColor4us_fp)(GLushort red, GLushort green, GLushort blue, GLushort alpha);
537 typedef void (OGLFUNCCALL *glColor4usv_fp)(const GLushort *v);
538 typedef void (OGLFUNCCALL *glColorMask_fp)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
539 typedef void (OGLFUNCCALL *glColorMaterial_fp)(GLenum face, GLenum mode);
540 typedef void (OGLFUNCCALL *glColorPointer_fp)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
541 typedef void (OGLFUNCCALL *glCopyPixels_fp)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
542 typedef void (OGLFUNCCALL *glCopyTexImage1D_fp)(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
543 typedef void (OGLFUNCCALL *glCopyTexImage2D_fp)(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
544 typedef void (OGLFUNCCALL *glCopyTexSubImage1D_fp)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
545 typedef void (OGLFUNCCALL *glCopyTexSubImage2D_fp)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
546 typedef void (OGLFUNCCALL *glCullFace_fp)(GLenum mode);
547 typedef void (OGLFUNCCALL *glDeleteLists_fp)(GLuint list, GLsizei range);
548 typedef void (OGLFUNCCALL *glDeleteTextures_fp)(GLsizei n, const GLuint *textures);
549 typedef void (OGLFUNCCALL *glDepthFunc_fp)(GLenum func);
550 typedef void (OGLFUNCCALL *glDepthMask_fp)(GLboolean flag);
551 typedef void (OGLFUNCCALL *glDepthRange_fp)(GLclampd zNear, GLclampd zFar);
552 typedef void (OGLFUNCCALL *glDisable_fp)(GLenum cap);
553 typedef void (OGLFUNCCALL *glDisableClientState_fp)(GLenum array);
554 typedef void (OGLFUNCCALL *glDrawArrays_fp)(GLenum mode, GLint first, GLsizei count);
555 typedef void (OGLFUNCCALL *glDrawBuffer_fp)(GLenum mode);
556 typedef void (OGLFUNCCALL *glDrawElements_fp)(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
557 typedef void (OGLFUNCCALL *glDrawPixels_fp)(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
558 typedef void (OGLFUNCCALL *glEdgeFlag_fp)(GLboolean flag);
559 typedef void (OGLFUNCCALL *glEdgeFlagPointer_fp)(GLsizei stride, const GLvoid *pointer);
560 typedef void (OGLFUNCCALL *glEdgeFlagv_fp)(const GLboolean *flag);
561 typedef void (OGLFUNCCALL *glEnable_fp)(GLenum cap);
562 typedef void (OGLFUNCCALL *glEnableClientState_fp)(GLenum array);
563 typedef void (OGLFUNCCALL *glEnd_fp)(void);
564 typedef void (OGLFUNCCALL *glEndList_fp)(void);
565 typedef void (OGLFUNCCALL *glEvalCoord1d_fp)(GLdouble u);
566 typedef void (OGLFUNCCALL *glEvalCoord1dv_fp)(const GLdouble *u);
567 typedef void (OGLFUNCCALL *glEvalCoord1f_fp)(GLfloat u);
568 typedef void (OGLFUNCCALL *glEvalCoord1fv_fp)(const GLfloat *u);
569 typedef void (OGLFUNCCALL *glEvalCoord2d_fp)(GLdouble u, GLdouble v);
570 typedef void (OGLFUNCCALL *glEvalCoord2dv_fp)(const GLdouble *u);
571 typedef void (OGLFUNCCALL *glEvalCoord2f_fp)(GLfloat u, GLfloat v);
572 typedef void (OGLFUNCCALL *glEvalCoord2fv_fp)(const GLfloat *u);
573 typedef void (OGLFUNCCALL *glEvalMesh1_fp)(GLenum mode, GLint i1, GLint i2);
574 typedef void (OGLFUNCCALL *glEvalMesh2_fp)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
575 typedef void (OGLFUNCCALL *glEvalPoint1_fp)(GLint i);
576 typedef void (OGLFUNCCALL *glEvalPoint2_fp)(GLint i, GLint j);
577 typedef void (OGLFUNCCALL *glFeedbackBuffer_fp)(GLsizei size, GLenum type, GLfloat *buffer);
578 typedef void (OGLFUNCCALL *glFinish_fp)(void);
579 typedef void (OGLFUNCCALL *glFlush_fp)(void);
580 typedef void (OGLFUNCCALL *glFogf_fp)(GLenum pname, GLfloat param);
581 typedef void (OGLFUNCCALL *glFogfv_fp)(GLenum pname, const GLfloat *params);
582 typedef void (OGLFUNCCALL *glFogi_fp)(GLenum pname, GLint param);
583 typedef void (OGLFUNCCALL *glFogiv_fp)(GLenum pname, const GLint *params);
584 typedef void (OGLFUNCCALL *glFrontFace_fp)(GLenum mode);
585 typedef void (OGLFUNCCALL *glFrustum_fp)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
586 typedef GLuint (OGLFUNCCALL *glGenLists_fp)(GLsizei range);
587 typedef void (OGLFUNCCALL *glGenTextures_fp)(GLsizei n, GLuint *textures);
588 typedef void (OGLFUNCCALL *glGetBooleanv_fp)(GLenum pname, GLboolean *params);
589 typedef void (OGLFUNCCALL *glGetClipPlane_fp)(GLenum plane, GLdouble *equation);
590 typedef void (OGLFUNCCALL *glGetDoublev_fp)(GLenum pname, GLdouble *params);
591 typedef GLenum (OGLFUNCCALL *glGetError_fp)(void);
592 typedef void (OGLFUNCCALL *glGetFloatv_fp)(GLenum pname, GLfloat *params);
593 typedef void (OGLFUNCCALL *glGetIntegerv_fp)(GLenum pname, GLint *params);
594 typedef void (OGLFUNCCALL *glGetLightfv_fp)(GLenum light, GLenum pname, GLfloat *params);
595 typedef void (OGLFUNCCALL *glGetLightiv_fp)(GLenum light, GLenum pname, GLint *params);
596 typedef void (OGLFUNCCALL *glGetMapdv_fp)(GLenum target, GLenum query, GLdouble *v);
597 typedef void (OGLFUNCCALL *glGetMapfv_fp)(GLenum target, GLenum query, GLfloat *v);
598 typedef void (OGLFUNCCALL *glGetMapiv_fp)(GLenum target, GLenum query, GLint *v);
599 typedef void (OGLFUNCCALL *glGetMaterialfv_fp)(GLenum face, GLenum pname, GLfloat *params);
600 typedef void (OGLFUNCCALL *glGetMaterialiv_fp)(GLenum face, GLenum pname, GLint *params);
601 typedef void (OGLFUNCCALL *glGetPixelMapfv_fp)(GLenum map, GLfloat *values);
602 typedef void (OGLFUNCCALL *glGetPixelMapuiv_fp)(GLenum map, GLuint *values);
603 typedef void (OGLFUNCCALL *glGetPixelMapusv_fp)(GLenum map, GLushort *values);
604 typedef void (OGLFUNCCALL *glGetPointerv_fp)(GLenum pname, GLvoid* *params);
605 typedef void (OGLFUNCCALL *glGetPolygonStipple_fp)(GLubyte *mask);
606 typedef const GLubyte *(OGLFUNCCALL *glGetString_fp)(GLenum name);
607 typedef void (OGLFUNCCALL *glGetTexEnvfv_fp)(GLenum target, GLenum pname, GLfloat *params);
608 typedef void (OGLFUNCCALL *glGetTexEnviv_fp)(GLenum target, GLenum pname, GLint *params);
609 typedef void (OGLFUNCCALL *glGetTexGendv_fp)(GLenum coord, GLenum pname, GLdouble *params);
610 typedef void (OGLFUNCCALL *glGetTexGenfv_fp)(GLenum coord, GLenum pname, GLfloat *params);
611 typedef void (OGLFUNCCALL *glGetTexGeniv_fp)(GLenum coord, GLenum pname, GLint *params);
612 typedef void (OGLFUNCCALL *glGetTexImage_fp)(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
613 typedef void (OGLFUNCCALL *glGetTexLevelParameterfv_fp)(GLenum target, GLint level, GLenum pname, GLfloat *params);
614 typedef void (OGLFUNCCALL *glGetTexLevelParameteriv_fp)(GLenum target, GLint level, GLenum pname, GLint *params);
615 typedef void (OGLFUNCCALL *glGetTexParameterfv_fp)(GLenum target, GLenum pname, GLfloat *params);
616 typedef void (OGLFUNCCALL *glGetTexParameteriv_fp)(GLenum target, GLenum pname, GLint *params);
617 typedef void (OGLFUNCCALL *glHint_fp)(GLenum target, GLenum mode);
618 typedef void (OGLFUNCCALL *glIndexMask_fp)(GLuint mask);
619 typedef void (OGLFUNCCALL *glIndexPointer_fp)(GLenum type, GLsizei stride, const GLvoid *pointer);
620 typedef void (OGLFUNCCALL *glIndexd_fp)(GLdouble c);
621 typedef void (OGLFUNCCALL *glIndexdv_fp)(const GLdouble *c);
622 typedef void (OGLFUNCCALL *glIndexf_fp)(GLfloat c);
623 typedef void (OGLFUNCCALL *glIndexfv_fp)(const GLfloat *c);
624 typedef void (OGLFUNCCALL *glIndexi_fp)(GLint c);
625 typedef void (OGLFUNCCALL *glIndexiv_fp)(const GLint *c);
626 typedef void (OGLFUNCCALL *glIndexs_fp)(GLshort c);
627 typedef void (OGLFUNCCALL *glIndexsv_fp)(const GLshort *c);
628 typedef void (OGLFUNCCALL *glIndexub_fp)(GLubyte c);
629 typedef void (OGLFUNCCALL *glIndexubv_fp)(const GLubyte *c);
630 typedef void (OGLFUNCCALL *glInitNames_fp)(void);
631 typedef void (OGLFUNCCALL *glInterleavedArrays_fp)(GLenum format, GLsizei stride, const GLvoid *pointer);
632 typedef GLboolean (OGLFUNCCALL *glIsEnabled_fp)(GLenum cap);
633 typedef GLboolean (OGLFUNCCALL *glIsList_fp)(GLuint list);
634 typedef GLboolean (OGLFUNCCALL *glIsTexture_fp)(GLuint texture);
635 typedef void (OGLFUNCCALL *glLightModelf_fp)(GLenum pname, GLfloat param);
636 typedef void (OGLFUNCCALL *glLightModelfv_fp)(GLenum pname, const GLfloat *params);
637 typedef void (OGLFUNCCALL *glLightModeli_fp)(GLenum pname, GLint param);
638 typedef void (OGLFUNCCALL *glLightModeliv_fp)(GLenum pname, const GLint *params);
639 typedef void (OGLFUNCCALL *glLightf_fp)(GLenum light, GLenum pname, GLfloat param);
640 typedef void (OGLFUNCCALL *glLightfv_fp)(GLenum light, GLenum pname, const GLfloat *params);
641 typedef void (OGLFUNCCALL *glLighti_fp)(GLenum light, GLenum pname, GLint param);
642 typedef void (OGLFUNCCALL *glLightiv_fp)(GLenum light, GLenum pname, const GLint *params);
643 typedef void (OGLFUNCCALL *glLineStipple_fp)(GLint factor, GLushort pattern);
644 typedef void (OGLFUNCCALL *glLineWidth_fp)(GLfloat width);
645 typedef void (OGLFUNCCALL *glListBase_fp)(GLuint base);
646 typedef void (OGLFUNCCALL *glLoadIdentity_fp)(void);
647 typedef void (OGLFUNCCALL *glLoadMatrixd_fp)(const GLdouble *m);
648 typedef void (OGLFUNCCALL *glLoadMatrixf_fp)(const GLfloat *m);
649 typedef void (OGLFUNCCALL *glLoadName_fp)(GLuint name);
650 typedef void (OGLFUNCCALL *glLogicOp_fp)(GLenum opcode);
651 typedef void (OGLFUNCCALL *glMap1d_fp)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
652 typedef void (OGLFUNCCALL *glMap1f_fp)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
653 typedef void (OGLFUNCCALL *glMap2d_fp)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
654 typedef void (OGLFUNCCALL *glMap2f_fp)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
655 typedef void (OGLFUNCCALL *glMapGrid1d_fp)(GLint un, GLdouble u1, GLdouble u2);
656 typedef void (OGLFUNCCALL *glMapGrid1f_fp)(GLint un, GLfloat u1, GLfloat u2);
657 typedef void (OGLFUNCCALL *glMapGrid2d_fp)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
658 typedef void (OGLFUNCCALL *glMapGrid2f_fp)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
659 typedef void (OGLFUNCCALL *glMaterialf_fp)(GLenum face, GLenum pname, GLfloat param);
660 typedef void (OGLFUNCCALL *glMaterialfv_fp)(GLenum face, GLenum pname, const GLfloat *params);
661 typedef void (OGLFUNCCALL *glMateriali_fp)(GLenum face, GLenum pname, GLint param);
662 typedef void (OGLFUNCCALL *glMaterialiv_fp)(GLenum face, GLenum pname, const GLint *params);
663 typedef void (OGLFUNCCALL *glMatrixMode_fp)(GLenum mode);
664 typedef void (OGLFUNCCALL *glMultMatrixd_fp)(const GLdouble *m);
665 typedef void (OGLFUNCCALL *glMultMatrixf_fp)(const GLfloat *m);
666 typedef void (OGLFUNCCALL *glNewList_fp)(GLuint list, GLenum mode);
667 typedef void (OGLFUNCCALL *glNormal3b_fp)(GLbyte nx, GLbyte ny, GLbyte nz);
668 typedef void (OGLFUNCCALL *glNormal3bv_fp)(const GLbyte *v);
669 typedef void (OGLFUNCCALL *glNormal3d_fp)(GLdouble nx, GLdouble ny, GLdouble nz);
670 typedef void (OGLFUNCCALL *glNormal3dv_fp)(const GLdouble *v);
671 typedef void (OGLFUNCCALL *glNormal3f_fp)(GLfloat nx, GLfloat ny, GLfloat nz);
672 typedef void (OGLFUNCCALL *glNormal3fv_fp)(const GLfloat *v);
673 typedef void (OGLFUNCCALL *glNormal3i_fp)(GLint nx, GLint ny, GLint nz);
674 typedef void (OGLFUNCCALL *glNormal3iv_fp)(const GLint *v);
675 typedef void (OGLFUNCCALL *glNormal3s_fp)(GLshort nx, GLshort ny, GLshort nz);
676 typedef void (OGLFUNCCALL *glNormal3sv_fp)(const GLshort *v);
677 typedef void (OGLFUNCCALL *glNormalPointer_fp)(GLenum type, GLsizei stride, const GLvoid *pointer);
678 typedef void (OGLFUNCCALL *glOrtho_fp)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
679 typedef void (OGLFUNCCALL *glPassThrough_fp)(GLfloat token);
680 typedef void (OGLFUNCCALL *glPixelMapfv_fp)(GLenum map, GLsizei mapsize, const GLfloat *values);
681 typedef void (OGLFUNCCALL *glPixelMapuiv_fp)(GLenum map, GLsizei mapsize, const GLuint *values);
682 typedef void (OGLFUNCCALL *glPixelMapusv_fp)(GLenum map, GLsizei mapsize, const GLushort *values);
683 typedef void (OGLFUNCCALL *glPixelStoref_fp)(GLenum pname, GLfloat param);
684 typedef void (OGLFUNCCALL *glPixelStorei_fp)(GLenum pname, GLint param);
685 typedef void (OGLFUNCCALL *glPixelTransferf_fp)(GLenum pname, GLfloat param);
686 typedef void (OGLFUNCCALL *glPixelTransferi_fp)(GLenum pname, GLint param);
687 typedef void (OGLFUNCCALL *glPixelZoom_fp)(GLfloat xfactor, GLfloat yfactor);
688 typedef void (OGLFUNCCALL *glPointSize_fp)(GLfloat size);
689 typedef void (OGLFUNCCALL *glPolygonMode_fp)(GLenum face, GLenum mode);
690 typedef void (OGLFUNCCALL *glPolygonOffset_fp)(GLfloat factor, GLfloat units);
691 typedef void (OGLFUNCCALL *glPolygonStipple_fp)(const GLubyte *mask);
692 typedef void (OGLFUNCCALL *glPopAttrib_fp)(void);
693 typedef void (OGLFUNCCALL *glPopClientAttrib_fp)(void);
694 typedef void (OGLFUNCCALL *glPopMatrix_fp)(void);
695 typedef void (OGLFUNCCALL *glPopName_fp)(void);
696 typedef void (OGLFUNCCALL *glPrioritizeTextures_fp)(GLsizei n, const GLuint *textures, const GLclampf *priorities);
697 typedef void (OGLFUNCCALL *glPushAttrib_fp)(GLbitfield mask);
698 typedef void (OGLFUNCCALL *glPushClientAttrib_fp)(GLbitfield mask);
699 typedef void (OGLFUNCCALL *glPushMatrix_fp)(void);
700 typedef void (OGLFUNCCALL *glPushName_fp)(GLuint name);
701 typedef void (OGLFUNCCALL *glRasterPos2d_fp)(GLdouble x, GLdouble y);
702 typedef void (OGLFUNCCALL *glRasterPos2dv_fp)(const GLdouble *v);
703 typedef void (OGLFUNCCALL *glRasterPos2f_fp)(GLfloat x, GLfloat y);
704 typedef void (OGLFUNCCALL *glRasterPos2fv_fp)(const GLfloat *v);
705 typedef void (OGLFUNCCALL *glRasterPos2i_fp)(GLint x, GLint y);
706 typedef void (OGLFUNCCALL *glRasterPos2iv_fp)(const GLint *v);
707 typedef void (OGLFUNCCALL *glRasterPos2s_fp)(GLshort x, GLshort y);
708 typedef void (OGLFUNCCALL *glRasterPos2sv_fp)(const GLshort *v);
709 typedef void (OGLFUNCCALL *glRasterPos3d_fp)(GLdouble x, GLdouble y, GLdouble z);
710 typedef void (OGLFUNCCALL *glRasterPos3dv_fp)(const GLdouble *v);
711 typedef void (OGLFUNCCALL *glRasterPos3f_fp)(GLfloat x, GLfloat y, GLfloat z);
712 typedef void (OGLFUNCCALL *glRasterPos3fv_fp)(const GLfloat *v);
713 typedef void (OGLFUNCCALL *glRasterPos3i_fp)(GLint x, GLint y, GLint z);
714 typedef void (OGLFUNCCALL *glRasterPos3iv_fp)(const GLint *v);
715 typedef void (OGLFUNCCALL *glRasterPos3s_fp)(GLshort x, GLshort y, GLshort z);
716 typedef void (OGLFUNCCALL *glRasterPos3sv_fp)(const GLshort *v);
717 typedef void (OGLFUNCCALL *glRasterPos4d_fp)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
718 typedef void (OGLFUNCCALL *glRasterPos4dv_fp)(const GLdouble *v);
719 typedef void (OGLFUNCCALL *glRasterPos4f_fp)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
720 typedef void (OGLFUNCCALL *glRasterPos4fv_fp)(const GLfloat *v);
721 typedef void (OGLFUNCCALL *glRasterPos4i_fp)(GLint x, GLint y, GLint z, GLint w);
722 typedef void (OGLFUNCCALL *glRasterPos4iv_fp)(const GLint *v);
723 typedef void (OGLFUNCCALL *glRasterPos4s_fp)(GLshort x, GLshort y, GLshort z, GLshort w);
724 typedef void (OGLFUNCCALL *glRasterPos4sv_fp)(const GLshort *v);
725 typedef void (OGLFUNCCALL *glReadBuffer_fp)(GLenum mode);
726 typedef void (OGLFUNCCALL *glReadPixels_fp)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
727 typedef void (OGLFUNCCALL *glRectd_fp)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
728 typedef void (OGLFUNCCALL *glRectdv_fp)(const GLdouble *v1, const GLdouble *v2);
729 typedef void (OGLFUNCCALL *glRectf_fp)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
730 typedef void (OGLFUNCCALL *glRectfv_fp)(const GLfloat *v1, const GLfloat *v2);
731 typedef void (OGLFUNCCALL *glRecti_fp)(GLint x1, GLint y1, GLint x2, GLint y2);
732 typedef void (OGLFUNCCALL *glRectiv_fp)(const GLint *v1, const GLint *v2);
733 typedef void (OGLFUNCCALL *glRects_fp)(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
734 typedef void (OGLFUNCCALL *glRectsv_fp)(const GLshort *v1, const GLshort *v2);
735 typedef GLint (OGLFUNCCALL *glRenderMode_fp)(GLenum mode);
736 typedef void (OGLFUNCCALL *glRotated_fp)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
737 typedef void (OGLFUNCCALL *glRotatef_fp)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
738 typedef void (OGLFUNCCALL *glScaled_fp)(GLdouble x, GLdouble y, GLdouble z);
739 typedef void (OGLFUNCCALL *glScalef_fp)(GLfloat x, GLfloat y, GLfloat z);
740 typedef void (OGLFUNCCALL *glScissor_fp)(GLint x, GLint y, GLsizei width, GLsizei height);
741 typedef void (OGLFUNCCALL *glSelectBuffer_fp)(GLsizei size, GLuint *buffer);
742 typedef void (OGLFUNCCALL *glShadeModel_fp)(GLenum mode);
743 typedef void (OGLFUNCCALL *glStencilFunc_fp)(GLenum func, GLint ref, GLuint mask);
744 typedef void (OGLFUNCCALL *glStencilMask_fp)(GLuint mask);
745 typedef void (OGLFUNCCALL *glStencilOp_fp)(GLenum fail, GLenum zfail, GLenum zpass);
746 typedef void (OGLFUNCCALL *glTexCoord1d_fp)(GLdouble s);
747 typedef void (OGLFUNCCALL *glTexCoord1dv_fp)(const GLdouble *v);
748 typedef void (OGLFUNCCALL *glTexCoord1f_fp)(GLfloat s);
749 typedef void (OGLFUNCCALL *glTexCoord1fv_fp)(const GLfloat *v);
750 typedef void (OGLFUNCCALL *glTexCoord1i_fp)(GLint s);
751 typedef void (OGLFUNCCALL *glTexCoord1iv_fp)(const GLint *v);
752 typedef void (OGLFUNCCALL *glTexCoord1s_fp)(GLshort s);
753 typedef void (OGLFUNCCALL *glTexCoord1sv_fp)(const GLshort *v);
754 typedef void (OGLFUNCCALL *glTexCoord2d_fp)(GLdouble s, GLdouble t);
755 typedef void (OGLFUNCCALL *glTexCoord2dv_fp)(const GLdouble *v);
756 typedef void (OGLFUNCCALL *glTexCoord2f_fp)(GLfloat s, GLfloat t);
757 typedef void (OGLFUNCCALL *glTexCoord2fv_fp)(const GLfloat *v);
758 typedef void (OGLFUNCCALL *glTexCoord2i_fp)(GLint s, GLint t);
759 typedef void (OGLFUNCCALL *glTexCoord2iv_fp)(const GLint *v);
760 typedef void (OGLFUNCCALL *glTexCoord2s_fp)(GLshort s, GLshort t);
761 typedef void (OGLFUNCCALL *glTexCoord2sv_fp)(const GLshort *v);
762 typedef void (OGLFUNCCALL *glTexCoord3d_fp)(GLdouble s, GLdouble t, GLdouble r);
763 typedef void (OGLFUNCCALL *glTexCoord3dv_fp)(const GLdouble *v);
764 typedef void (OGLFUNCCALL *glTexCoord3f_fp)(GLfloat s, GLfloat t, GLfloat r);
765 typedef void (OGLFUNCCALL *glTexCoord3fv_fp)(const GLfloat *v);
766 typedef void (OGLFUNCCALL *glTexCoord3i_fp)(GLint s, GLint t, GLint r);
767 typedef void (OGLFUNCCALL *glTexCoord3iv_fp)(const GLint *v);
768 typedef void (OGLFUNCCALL *glTexCoord3s_fp)(GLshort s, GLshort t, GLshort r);
769 typedef void (OGLFUNCCALL *glTexCoord3sv_fp)(const GLshort *v);
770 typedef void (OGLFUNCCALL *glTexCoord4d_fp)(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
771 typedef void (OGLFUNCCALL *glTexCoord4dv_fp)(const GLdouble *v);
772 typedef void (OGLFUNCCALL *glTexCoord4f_fp)(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
773 typedef void (OGLFUNCCALL *glTexCoord4fv_fp)(const GLfloat *v);
774 typedef void (OGLFUNCCALL *glTexCoord4i_fp)(GLint s, GLint t, GLint r, GLint q);
775 typedef void (OGLFUNCCALL *glTexCoord4iv_fp)(const GLint *v);
776 typedef void (OGLFUNCCALL *glTexCoord4s_fp)(GLshort s, GLshort t, GLshort r, GLshort q);
777 typedef void (OGLFUNCCALL *glTexCoord4sv_fp)(const GLshort *v);
778 typedef void (OGLFUNCCALL *glTexCoordPointer_fp)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
779 typedef void (OGLFUNCCALL *glTexEnvf_fp)(GLenum target, GLenum pname, GLfloat param);
780 typedef void (OGLFUNCCALL *glTexEnvfv_fp)(GLenum target, GLenum pname, const GLfloat *params);
781 typedef void (OGLFUNCCALL *glTexEnvi_fp)(GLenum target, GLenum pname, GLint param);
782 typedef void (OGLFUNCCALL *glTexEnviv_fp)(GLenum target, GLenum pname, const GLint *params);
783 typedef void (OGLFUNCCALL *glTexGend_fp)(GLenum coord, GLenum pname, GLdouble param);
784 typedef void (OGLFUNCCALL *glTexGendv_fp)(GLenum coord, GLenum pname, const GLdouble *params);
785 typedef void (OGLFUNCCALL *glTexGenf_fp)(GLenum coord, GLenum pname, GLfloat param);
786 typedef void (OGLFUNCCALL *glTexGenfv_fp)(GLenum coord, GLenum pname, const GLfloat *params);
787 typedef void (OGLFUNCCALL *glTexGeni_fp)(GLenum coord, GLenum pname, GLint param);
788 typedef void (OGLFUNCCALL *glTexGeniv_fp)(GLenum coord, GLenum pname, const GLint *params);
789 typedef void (OGLFUNCCALL *glTexImage1D_fp)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
790 typedef void (OGLFUNCCALL *glTexImage2D_fp)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
791 typedef void (OGLFUNCCALL *glTexParameterf_fp)(GLenum target, GLenum pname, GLfloat param);
792 typedef void (OGLFUNCCALL *glTexParameterfv_fp)(GLenum target, GLenum pname, const GLfloat *params);
793 typedef void (OGLFUNCCALL *glTexParameteri_fp)(GLenum target, GLenum pname, GLint param);
794 typedef void (OGLFUNCCALL *glTexParameteriv_fp)(GLenum target, GLenum pname, const GLint *params);
795 typedef void (OGLFUNCCALL *glTexSubImage1D_fp)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
796 typedef void (OGLFUNCCALL *glTexSubImage2D_fp)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
797 typedef void (OGLFUNCCALL *glTranslated_fp)(GLdouble x, GLdouble y, GLdouble z);
798 typedef void (OGLFUNCCALL *glTranslatef_fp)(GLfloat x, GLfloat y, GLfloat z);
799 typedef void (OGLFUNCCALL *glVertex2d_fp)(GLdouble x, GLdouble y);
800 typedef void (OGLFUNCCALL *glVertex2dv_fp)(const GLdouble *v);
801 typedef void (OGLFUNCCALL *glVertex2f_fp)(GLfloat x, GLfloat y);
802 typedef void (OGLFUNCCALL *glVertex2fv_fp)(const GLfloat *v);
803 typedef void (OGLFUNCCALL *glVertex2i_fp)(GLint x, GLint y);
804 typedef void (OGLFUNCCALL *glVertex2iv_fp)(const GLint *v);
805 typedef void (OGLFUNCCALL *glVertex2s_fp)(GLshort x, GLshort y);
806 typedef void (OGLFUNCCALL *glVertex2sv_fp)(const GLshort *v);
807 typedef void (OGLFUNCCALL *glVertex3d_fp)(GLdouble x, GLdouble y, GLdouble z);
808 typedef void (OGLFUNCCALL *glVertex3dv_fp)(const GLdouble *v);
809 typedef void (OGLFUNCCALL *glVertex3f_fp)(GLfloat x, GLfloat y, GLfloat z);
810 typedef void (OGLFUNCCALL *glVertex3fv_fp)(const GLfloat *v);
811 typedef void (OGLFUNCCALL *glVertex3i_fp)(GLint x, GLint y, GLint z);
812 typedef void (OGLFUNCCALL *glVertex3iv_fp)(const GLint *v);
813 typedef void (OGLFUNCCALL *glVertex3s_fp)(GLshort x, GLshort y, GLshort z);
814 typedef void (OGLFUNCCALL *glVertex3sv_fp)(const GLshort *v);
815 typedef void (OGLFUNCCALL *glVertex4d_fp)(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
816 typedef void (OGLFUNCCALL *glVertex4dv_fp)(const GLdouble *v);
817 typedef void (OGLFUNCCALL *glVertex4f_fp)(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
818 typedef void (OGLFUNCCALL *glVertex4fv_fp)(const GLfloat *v);
819 typedef void (OGLFUNCCALL *glVertex4i_fp)(GLint x, GLint y, GLint z, GLint w);
820 typedef void (OGLFUNCCALL *glVertex4iv_fp)(const GLint *v);
821 typedef void (OGLFUNCCALL *glVertex4s_fp)(GLshort x, GLshort y, GLshort z, GLshort w);
822 typedef void (OGLFUNCCALL *glVertex4sv_fp)(const GLshort *v);
823 typedef void (OGLFUNCCALL *glVertexPointer_fp)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
824 typedef void (OGLFUNCCALL *glViewport_fp)(GLint x, GLint y, GLsizei width, GLsizei height);
825
826 typedef void (OGLFUNCCALL *glMultiTexCoord2fARB_fp)(GLenum target, GLfloat s, GLfloat t);
827 typedef void (OGLFUNCCALL *glActiveTextureARB_fp)(GLenum target);
828 typedef void (OGLFUNCCALL *glMultiTexCoord2fSGIS_fp)(GLenum target, GLfloat s, GLfloat t);
829 typedef void (OGLFUNCCALL *glSelectTextureSGIS_fp)(GLenum target);
830 typedef void (OGLFUNCCALL *glColorTableEXT_fp)(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
831 typedef void (OGLFUNCCALL *glCombinerParameteriNV_fp)(GLenum, GLint);
832 typedef void (OGLFUNCCALL *glCombinerInputNV_fp)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum);
833 typedef void (OGLFUNCCALL *glCombinerOutputNV_fp)(GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum, GLboolean, GLboolean, GLboolean);
834 typedef void (OGLFUNCCALL *glFinalCombinerInputNV_fp)(GLenum, GLenum, GLenum, GLenum);
835
836 #ifdef _WIN32
837 typedef BOOL  (OGLFUNCCALL *wglCopyContext_fp)(HGLRC, HGLRC, UINT);
838 typedef HGLRC (OGLFUNCCALL *wglCreateContext_fp)(HDC);
839 typedef HGLRC (OGLFUNCCALL *wglCreateLayerContext_fp)(HDC, int);
840 typedef BOOL  (OGLFUNCCALL *wglDeleteContext_fp)(HGLRC);
841 typedef HGLRC (OGLFUNCCALL *wglGetCurrentContext_fp)(VOID);
842 typedef HDC   (OGLFUNCCALL *wglGetCurrentDC_fp)(VOID);
843 typedef PROC  (OGLFUNCCALL *wglGetProcAddress_fp)(LPCSTR);
844 typedef BOOL  (OGLFUNCCALL *wglMakeCurrent_fp)(HDC, HGLRC);
845 typedef BOOL  (OGLFUNCCALL *wglShareLists_fp)(HGLRC, HGLRC);
846 typedef BOOL  (OGLFUNCCALL *wglUseFontBitmapsA_fp)(HDC, DWORD, DWORD, DWORD);
847 typedef BOOL  (OGLFUNCCALL *wglUseFontBitmapsW_fp)(HDC, DWORD, DWORD, DWORD);
848 typedef BOOL  (OGLFUNCCALL *wglUseFontOutlinesA_fp)(HDC, DWORD, DWORD, DWORD, FLOAT,FLOAT, int, LPGLYPHMETRICSFLOAT);
849 typedef BOOL  (OGLFUNCCALL *wglUseFontOutlinesW_fp)(HDC, DWORD, DWORD, DWORD, FLOAT,FLOAT, int, LPGLYPHMETRICSFLOAT);
850 typedef BOOL  (OGLFUNCCALL *wglDescribeLayerPlane_fp)(HDC, int, int, UINT,LPLAYERPLANEDESCRIPTOR);
851 typedef int   (OGLFUNCCALL *wglSetLayerPaletteEntries_fp)(HDC, int, int, int,CONST COLORREF *);
852 typedef int   (OGLFUNCCALL *wglGetLayerPaletteEntries_fp)(HDC, int, int, int,COLORREF *);
853 typedef BOOL  (OGLFUNCCALL *wglRealizeLayerPalette_fp)(HDC, int, BOOL);
854 typedef BOOL  (OGLFUNCCALL *wglSwapLayerBuffers_fp)(HDC, UINT);
855 #if (WINVER >= 0x0500)
856 typedef DWORD (OGLFUNCCALL *wglSwapMultipleBuffers_fp)(UINT, CONST WGLSWAP *);
857 #endif
858 #endif
859
860 DEFVAR glAccum_fp dglAccum;
861 DEFVAR glAlphaFunc_fp dglAlphaFunc;
862 DEFVAR glAreTexturesResident_fp dglAreTexturesResident;
863 DEFVAR glArrayElement_fp dglArrayElement;
864 DEFVAR glBegin_fp dglBegin;
865 DEFVAR glBindTexture_fp dglBindTexture;
866 DEFVAR glBitmap_fp dglBitmap;
867 DEFVAR glBlendFunc_fp dglBlendFunc;
868 DEFVAR glCallList_fp dglCallList;
869 DEFVAR glCallLists_fp dglCallLists;
870 DEFVAR glClear_fp dglClear;
871 DEFVAR glClearAccum_fp dglClearAccum;
872 DEFVAR glClearColor_fp dglClearColor;
873 DEFVAR glClearDepth_fp dglClearDepth;
874 DEFVAR glClearIndex_fp dglClearIndex;
875 DEFVAR glClearStencil_fp dglClearStencil;
876 DEFVAR glClipPlane_fp dglClipPlane;
877 DEFVAR glColor3b_fp dglColor3b;
878 DEFVAR glColor3bv_fp dglColor3bv;
879 DEFVAR glColor3d_fp dglColor3d;
880 DEFVAR glColor3dv_fp dglColor3dv;
881 DEFVAR glColor3f_fp dglColor3f;
882 DEFVAR glColor3fv_fp dglColor3fv;
883 DEFVAR glColor3i_fp dglColor3i;
884 DEFVAR glColor3iv_fp dglColor3iv;
885 DEFVAR glColor3s_fp dglColor3s;
886 DEFVAR glColor3sv_fp dglColor3sv;
887 DEFVAR glColor3ub_fp dglColor3ub;
888 DEFVAR glColor3ubv_fp dglColor3ubv;
889 DEFVAR glColor3ui_fp dglColor3ui;
890 DEFVAR glColor3uiv_fp dglColor3uiv;
891 DEFVAR glColor3us_fp dglColor3us;
892 DEFVAR glColor3usv_fp dglColor3usv;
893 DEFVAR glColor4b_fp dglColor4b;
894 DEFVAR glColor4bv_fp dglColor4bv;
895 DEFVAR glColor4d_fp dglColor4d;
896 DEFVAR glColor4dv_fp dglColor4dv;
897 DEFVAR glColor4f_fp dglColor4f;
898 DEFVAR glColor4fv_fp dglColor4fv;
899 DEFVAR glColor4i_fp dglColor4i;
900 DEFVAR glColor4iv_fp dglColor4iv;
901 DEFVAR glColor4s_fp dglColor4s;
902 DEFVAR glColor4sv_fp dglColor4sv;
903 DEFVAR glColor4ub_fp dglColor4ub;
904 DEFVAR glColor4ubv_fp dglColor4ubv;
905 DEFVAR glColor4ui_fp dglColor4ui;
906 DEFVAR glColor4uiv_fp dglColor4uiv;
907 DEFVAR glColor4us_fp dglColor4us;
908 DEFVAR glColor4usv_fp dglColor4usv;
909 DEFVAR glColorMask_fp dglColorMask;
910 DEFVAR glColorMaterial_fp dglColorMaterial;
911 DEFVAR glColorPointer_fp dglColorPointer;
912 DEFVAR glCopyPixels_fp dglCopyPixels;
913 DEFVAR glCopyTexImage1D_fp dglCopyTexImage1D;
914 DEFVAR glCopyTexImage2D_fp dglCopyTexImage2D;
915 DEFVAR glCopyTexSubImage1D_fp dglCopyTexSubImage1D;
916 DEFVAR glCopyTexSubImage2D_fp dglCopyTexSubImage2D;
917 DEFVAR glCullFace_fp dglCullFace;
918 DEFVAR glDeleteLists_fp dglDeleteLists;
919 DEFVAR glDeleteTextures_fp dglDeleteTextures;
920 DEFVAR glDepthFunc_fp dglDepthFunc;
921 DEFVAR glDepthMask_fp dglDepthMask;
922 DEFVAR glDepthRange_fp dglDepthRange;
923 DEFVAR glDisable_fp dglDisable;
924 DEFVAR glDisableClientState_fp dglDisableClientState;
925 DEFVAR glDrawArrays_fp dglDrawArrays;
926 DEFVAR glDrawBuffer_fp dglDrawBuffer;
927 DEFVAR glDrawElements_fp dglDrawElements;
928 DEFVAR glDrawPixels_fp dglDrawPixels;
929 DEFVAR glEdgeFlag_fp dglEdgeFlag;
930 DEFVAR glEdgeFlagPointer_fp dglEdgeFlagPointer;
931 DEFVAR glEdgeFlagv_fp dglEdgeFlagv;
932 DEFVAR glEnable_fp dglEnable;
933 DEFVAR glEnableClientState_fp dglEnableClientState;
934 DEFVAR glEnd_fp dglEnd;
935 DEFVAR glEndList_fp dglEndList;
936 DEFVAR glEvalCoord1d_fp dglEvalCoord1d;
937 DEFVAR glEvalCoord1dv_fp dglEvalCoord1dv;
938 DEFVAR glEvalCoord1f_fp dglEvalCoord1f;
939 DEFVAR glEvalCoord1fv_fp dglEvalCoord1fv;
940 DEFVAR glEvalCoord2d_fp dglEvalCoord2d;
941 DEFVAR glEvalCoord2dv_fp dglEvalCoord2dv;
942 DEFVAR glEvalCoord2f_fp dglEvalCoord2f;
943 DEFVAR glEvalCoord2fv_fp dglEvalCoord2fv;
944 DEFVAR glEvalMesh1_fp dglEvalMesh1;
945 DEFVAR glEvalMesh2_fp dglEvalMesh2;
946 DEFVAR glEvalPoint1_fp dglEvalPoint1;
947 DEFVAR glEvalPoint2_fp dglEvalPoint2;
948 DEFVAR glFeedbackBuffer_fp dglFeedbackBuffer;
949 DEFVAR glFinish_fp dglFinish;
950 DEFVAR glFlush_fp dglFlush;
951 DEFVAR glFogf_fp dglFogf;
952 DEFVAR glFogfv_fp dglFogfv;
953 DEFVAR glFogi_fp dglFogi;
954 DEFVAR glFogiv_fp dglFogiv;
955 DEFVAR glFrontFace_fp dglFrontFace;
956 DEFVAR glFrustum_fp dglFrustum;
957 DEFVAR glGenLists_fp dglGenLists;
958 DEFVAR glGenTextures_fp dglGenTextures;
959 DEFVAR glGetBooleanv_fp dglGetBooleanv;
960 DEFVAR glGetClipPlane_fp dglGetClipPlane;
961 DEFVAR glGetDoublev_fp dglGetDoublev;
962 DEFVAR glGetError_fp dglGetError;
963 DEFVAR glGetFloatv_fp dglGetFloatv;
964 DEFVAR glGetIntegerv_fp dglGetIntegerv;
965 DEFVAR glGetLightfv_fp dglGetLightfv;
966 DEFVAR glGetLightiv_fp dglGetLightiv;
967 DEFVAR glGetMapdv_fp dglGetMapdv;
968 DEFVAR glGetMapfv_fp dglGetMapfv;
969 DEFVAR glGetMapiv_fp dglGetMapiv;
970 DEFVAR glGetMaterialfv_fp dglGetMaterialfv;
971 DEFVAR glGetMaterialiv_fp dglGetMaterialiv;
972 DEFVAR glGetPixelMapfv_fp dglGetPixelMapfv;
973 DEFVAR glGetPixelMapuiv_fp dglGetPixelMapuiv;
974 DEFVAR glGetPixelMapusv_fp dglGetPixelMapusv;
975 DEFVAR glGetPointerv_fp dglGetPointerv;
976 DEFVAR glGetPolygonStipple_fp dglGetPolygonStipple;
977 DEFVAR glGetString_fp dglGetString;
978 DEFVAR glGetTexEnvfv_fp dglGetTexEnvfv;
979 DEFVAR glGetTexEnviv_fp dglGetTexEnviv;
980 DEFVAR glGetTexGendv_fp dglGetTexGendv;
981 DEFVAR glGetTexGenfv_fp dglGetTexGenfv;
982 DEFVAR glGetTexGeniv_fp dglGetTexGeniv;
983 DEFVAR glGetTexImage_fp dglGetTexImage;
984 DEFVAR glGetTexLevelParameterfv_fp dglGetTexLevelParameterfv;
985 DEFVAR glGetTexLevelParameteriv_fp dglGetTexLevelParameteriv;
986 DEFVAR glGetTexParameterfv_fp dglGetTexParameterfv;
987 DEFVAR glGetTexParameteriv_fp dglGetTexParameteriv;
988 DEFVAR glHint_fp dglHint;
989 DEFVAR glIndexMask_fp dglIndexMask;
990 DEFVAR glIndexPointer_fp dglIndexPointer;
991 DEFVAR glIndexd_fp dglIndexd;
992 DEFVAR glIndexdv_fp dglIndexdv;
993 DEFVAR glIndexf_fp dglIndexf;
994 DEFVAR glIndexfv_fp dglIndexfv;
995 DEFVAR glIndexi_fp dglIndexi;
996 DEFVAR glIndexiv_fp dglIndexiv;
997 DEFVAR glIndexs_fp dglIndexs;
998 DEFVAR glIndexsv_fp dglIndexsv;
999 DEFVAR glIndexub_fp dglIndexub;
1000 DEFVAR glIndexubv_fp dglIndexubv;
1001 DEFVAR glInitNames_fp dglInitNames;
1002 DEFVAR glInterleavedArrays_fp dglInterleavedArrays;
1003 DEFVAR glIsEnabled_fp dglIsEnabled;
1004 DEFVAR glIsList_fp dglIsList;
1005 DEFVAR glIsTexture_fp dglIsTexture;
1006 DEFVAR glLightModelf_fp dglLightModelf;
1007 DEFVAR glLightModelfv_fp dglLightModelfv;
1008 DEFVAR glLightModeli_fp dglLightModeli;
1009 DEFVAR glLightModeliv_fp dglLightModeliv;
1010 DEFVAR glLightf_fp dglLightf;
1011 DEFVAR glLightfv_fp dglLightfv;
1012 DEFVAR glLighti_fp dglLighti;
1013 DEFVAR glLightiv_fp dglLightiv;
1014 DEFVAR glLineStipple_fp dglLineStipple;
1015 DEFVAR glLineWidth_fp dglLineWidth;
1016 DEFVAR glListBase_fp dglListBase;
1017 DEFVAR glLoadIdentity_fp dglLoadIdentity;
1018 DEFVAR glLoadMatrixd_fp dglLoadMatrixd;
1019 DEFVAR glLoadMatrixf_fp dglLoadMatrixf;
1020 DEFVAR glLoadName_fp dglLoadName;
1021 DEFVAR glLogicOp_fp dglLogicOp;
1022 DEFVAR glMap1d_fp dglMap1d;
1023 DEFVAR glMap1f_fp dglMap1f;
1024 DEFVAR glMap2d_fp dglMap2d;
1025 DEFVAR glMap2f_fp dglMap2f;
1026 DEFVAR glMapGrid1d_fp dglMapGrid1d;
1027 DEFVAR glMapGrid1f_fp dglMapGrid1f;
1028 DEFVAR glMapGrid2d_fp dglMapGrid2d;
1029 DEFVAR glMapGrid2f_fp dglMapGrid2f;
1030 DEFVAR glMaterialf_fp dglMaterialf;
1031 DEFVAR glMaterialfv_fp dglMaterialfv;
1032 DEFVAR glMateriali_fp dglMateriali;
1033 DEFVAR glMaterialiv_fp dglMaterialiv;
1034 DEFVAR glMatrixMode_fp dglMatrixMode;
1035 DEFVAR glMultMatrixd_fp dglMultMatrixd;
1036 DEFVAR glMultMatrixf_fp dglMultMatrixf;
1037 DEFVAR glNewList_fp dglNewList;
1038 DEFVAR glNormal3b_fp dglNormal3b;
1039 DEFVAR glNormal3bv_fp dglNormal3bv;
1040 DEFVAR glNormal3d_fp dglNormal3d;
1041 DEFVAR glNormal3dv_fp dglNormal3dv;
1042 DEFVAR glNormal3f_fp dglNormal3f;
1043 DEFVAR glNormal3fv_fp dglNormal3fv;
1044 DEFVAR glNormal3i_fp dglNormal3i;
1045 DEFVAR glNormal3iv_fp dglNormal3iv;
1046 DEFVAR glNormal3s_fp dglNormal3s;
1047 DEFVAR glNormal3sv_fp dglNormal3sv;
1048 DEFVAR glNormalPointer_fp dglNormalPointer;
1049 DEFVAR glOrtho_fp dglOrtho;
1050 DEFVAR glPassThrough_fp dglPassThrough;
1051 DEFVAR glPixelMapfv_fp dglPixelMapfv;
1052 DEFVAR glPixelMapuiv_fp dglPixelMapuiv;
1053 DEFVAR glPixelMapusv_fp dglPixelMapusv;
1054 DEFVAR glPixelStoref_fp dglPixelStoref;
1055 DEFVAR glPixelStorei_fp dglPixelStorei;
1056 DEFVAR glPixelTransferf_fp dglPixelTransferf;
1057 DEFVAR glPixelTransferi_fp dglPixelTransferi;
1058 DEFVAR glPixelZoom_fp dglPixelZoom;
1059 DEFVAR glPointSize_fp dglPointSize;
1060 DEFVAR glPolygonMode_fp dglPolygonMode;
1061 DEFVAR glPolygonOffset_fp dglPolygonOffset;
1062 DEFVAR glPolygonStipple_fp dglPolygonStipple;
1063 DEFVAR glPopAttrib_fp dglPopAttrib;
1064 DEFVAR glPopClientAttrib_fp dglPopClientAttrib;
1065 DEFVAR glPopMatrix_fp dglPopMatrix;
1066 DEFVAR glPopName_fp dglPopName;
1067 DEFVAR glPrioritizeTextures_fp dglPrioritizeTextures;
1068 DEFVAR glPushAttrib_fp dglPushAttrib;
1069 DEFVAR glPushClientAttrib_fp dglPushClientAttrib;
1070 DEFVAR glPushMatrix_fp dglPushMatrix;
1071 DEFVAR glPushName_fp dglPushName;
1072 DEFVAR glRasterPos2d_fp dglRasterPos2d;
1073 DEFVAR glRasterPos2dv_fp dglRasterPos2dv;
1074 DEFVAR glRasterPos2f_fp dglRasterPos2f;
1075 DEFVAR glRasterPos2fv_fp dglRasterPos2fv;
1076 DEFVAR glRasterPos2i_fp dglRasterPos2i;
1077 DEFVAR glRasterPos2iv_fp dglRasterPos2iv;
1078 DEFVAR glRasterPos2s_fp dglRasterPos2s;
1079 DEFVAR glRasterPos2sv_fp dglRasterPos2sv;
1080 DEFVAR glRasterPos3d_fp dglRasterPos3d;
1081 DEFVAR glRasterPos3dv_fp dglRasterPos3dv;
1082 DEFVAR glRasterPos3f_fp dglRasterPos3f;
1083 DEFVAR glRasterPos3fv_fp dglRasterPos3fv;
1084 DEFVAR glRasterPos3i_fp dglRasterPos3i;
1085 DEFVAR glRasterPos3iv_fp dglRasterPos3iv;
1086 DEFVAR glRasterPos3s_fp dglRasterPos3s;
1087 DEFVAR glRasterPos3sv_fp dglRasterPos3sv;
1088 DEFVAR glRasterPos4d_fp dglRasterPos4d;
1089 DEFVAR glRasterPos4dv_fp dglRasterPos4dv;
1090 DEFVAR glRasterPos4f_fp dglRasterPos4f;
1091 DEFVAR glRasterPos4fv_fp dglRasterPos4fv;
1092 DEFVAR glRasterPos4i_fp dglRasterPos4i;
1093 DEFVAR glRasterPos4iv_fp dglRasterPos4iv;
1094 DEFVAR glRasterPos4s_fp dglRasterPos4s;
1095 DEFVAR glRasterPos4sv_fp dglRasterPos4sv;
1096 DEFVAR glReadBuffer_fp dglReadBuffer;
1097 DEFVAR glReadPixels_fp dglReadPixels;
1098 DEFVAR glRectd_fp dglRectd;
1099 DEFVAR glRectdv_fp dglRectdv;
1100 DEFVAR glRectf_fp dglRectf;
1101 DEFVAR glRectfv_fp dglRectfv;
1102 DEFVAR glRecti_fp dglRecti;
1103 DEFVAR glRectiv_fp dglRectiv;
1104 DEFVAR glRects_fp dglRects;
1105 DEFVAR glRectsv_fp dglRectsv;
1106 DEFVAR glRenderMode_fp dglRenderMode;
1107 DEFVAR glRotated_fp dglRotated;
1108 DEFVAR glRotatef_fp dglRotatef;
1109 DEFVAR glScaled_fp dglScaled;
1110 DEFVAR glScalef_fp dglScalef;
1111 DEFVAR glScissor_fp dglScissor;
1112 DEFVAR glSelectBuffer_fp dglSelectBuffer;
1113 DEFVAR glShadeModel_fp dglShadeModel;
1114 DEFVAR glStencilFunc_fp dglStencilFunc;
1115 DEFVAR glStencilMask_fp dglStencilMask;
1116 DEFVAR glStencilOp_fp dglStencilOp;
1117 DEFVAR glTexCoord1d_fp dglTexCoord1d;
1118 DEFVAR glTexCoord1dv_fp dglTexCoord1dv;
1119 DEFVAR glTexCoord1f_fp dglTexCoord1f;
1120 DEFVAR glTexCoord1fv_fp dglTexCoord1fv;
1121 DEFVAR glTexCoord1i_fp dglTexCoord1i;
1122 DEFVAR glTexCoord1iv_fp dglTexCoord1iv;
1123 DEFVAR glTexCoord1s_fp dglTexCoord1s;
1124 DEFVAR glTexCoord1sv_fp dglTexCoord1sv;
1125 DEFVAR glTexCoord2d_fp dglTexCoord2d;
1126 DEFVAR glTexCoord2dv_fp dglTexCoord2dv;
1127 DEFVAR glTexCoord2f_fp dglTexCoord2f;
1128 DEFVAR glTexCoord2fv_fp dglTexCoord2fv;
1129 DEFVAR glTexCoord2i_fp dglTexCoord2i;
1130 DEFVAR glTexCoord2iv_fp dglTexCoord2iv;
1131 DEFVAR glTexCoord2s_fp dglTexCoord2s;
1132 DEFVAR glTexCoord2sv_fp dglTexCoord2sv;
1133 DEFVAR glTexCoord3d_fp dglTexCoord3d;
1134 DEFVAR glTexCoord3dv_fp dglTexCoord3dv;
1135 DEFVAR glTexCoord3f_fp dglTexCoord3f;
1136 DEFVAR glTexCoord3fv_fp dglTexCoord3fv;
1137 DEFVAR glTexCoord3i_fp dglTexCoord3i;
1138 DEFVAR glTexCoord3iv_fp dglTexCoord3iv;
1139 DEFVAR glTexCoord3s_fp dglTexCoord3s;
1140 DEFVAR glTexCoord3sv_fp dglTexCoord3sv;
1141 DEFVAR glTexCoord4d_fp dglTexCoord4d;
1142 DEFVAR glTexCoord4dv_fp dglTexCoord4dv;
1143 DEFVAR glTexCoord4f_fp dglTexCoord4f;
1144 DEFVAR glTexCoord4fv_fp dglTexCoord4fv;
1145 DEFVAR glTexCoord4i_fp dglTexCoord4i;
1146 DEFVAR glTexCoord4iv_fp dglTexCoord4iv;
1147 DEFVAR glTexCoord4s_fp dglTexCoord4s;
1148 DEFVAR glTexCoord4sv_fp dglTexCoord4sv;
1149 DEFVAR glTexCoordPointer_fp dglTexCoordPointer;
1150 DEFVAR glTexEnvf_fp dglTexEnvf;
1151 DEFVAR glTexEnvfv_fp dglTexEnvfv;
1152 DEFVAR glTexEnvi_fp dglTexEnvi;
1153 DEFVAR glTexEnviv_fp dglTexEnviv;
1154 DEFVAR glTexGend_fp dglTexGend;
1155 DEFVAR glTexGendv_fp dglTexGendv;
1156 DEFVAR glTexGenf_fp dglTexGenf;
1157 DEFVAR glTexGenfv_fp dglTexGenfv;
1158 DEFVAR glTexGeni_fp dglTexGeni;
1159 DEFVAR glTexGeniv_fp dglTexGeniv;
1160 DEFVAR glTexImage1D_fp dglTexImage1D;
1161 DEFVAR glTexImage2D_fp dglTexImage2D;
1162 DEFVAR glTexParameterf_fp dglTexParameterf;
1163 DEFVAR glTexParameterfv_fp dglTexParameterfv;
1164 DEFVAR glTexParameteri_fp dglTexParameteri;
1165 DEFVAR glTexParameteriv_fp dglTexParameteriv;
1166 DEFVAR glTexSubImage1D_fp dglTexSubImage1D;
1167 DEFVAR glTexSubImage2D_fp dglTexSubImage2D;
1168 DEFVAR glTranslated_fp dglTranslated;
1169 DEFVAR glTranslatef_fp dglTranslatef;
1170 DEFVAR glVertex2d_fp dglVertex2d;
1171 DEFVAR glVertex2dv_fp dglVertex2dv;
1172 DEFVAR glVertex2f_fp dglVertex2f;
1173 DEFVAR glVertex2fv_fp dglVertex2fv;
1174 DEFVAR glVertex2i_fp dglVertex2i;
1175 DEFVAR glVertex2iv_fp dglVertex2iv;
1176 DEFVAR glVertex2s_fp dglVertex2s;
1177 DEFVAR glVertex2sv_fp dglVertex2sv;
1178 DEFVAR glVertex3d_fp dglVertex3d;
1179 DEFVAR glVertex3dv_fp dglVertex3dv;
1180 DEFVAR glVertex3f_fp dglVertex3f;
1181 DEFVAR glVertex3fv_fp dglVertex3fv;
1182 DEFVAR glVertex3i_fp dglVertex3i;
1183 DEFVAR glVertex3iv_fp dglVertex3iv;
1184 DEFVAR glVertex3s_fp dglVertex3s;
1185 DEFVAR glVertex3sv_fp dglVertex3sv;
1186 DEFVAR glVertex4d_fp dglVertex4d;
1187 DEFVAR glVertex4dv_fp dglVertex4dv;
1188 DEFVAR glVertex4f_fp dglVertex4f;
1189 DEFVAR glVertex4fv_fp dglVertex4fv;
1190 DEFVAR glVertex4i_fp dglVertex4i;
1191 DEFVAR glVertex4iv_fp dglVertex4iv;
1192 DEFVAR glVertex4s_fp dglVertex4s;
1193 DEFVAR glVertex4sv_fp dglVertex4sv;
1194 DEFVAR glVertexPointer_fp dglVertexPointer;
1195 DEFVAR glViewport_fp dglViewport;
1196
1197 DEFVAR glMultiTexCoord2fARB_fp dglMultiTexCoord2fARB;
1198 DEFVAR glActiveTextureARB_fp dglActiveTextureARB;
1199 DEFVAR glMultiTexCoord2fSGIS_fp dglMultiTexCoord2fSGIS;
1200 DEFVAR glSelectTextureSGIS_fp dglSelectTextureSGIS;
1201 DEFVAR glColorTableEXT_fp dglColorTableEXT;
1202 DEFVAR glCombinerParameteriNV_fp dglCombinerParameteriNV;
1203 DEFVAR glCombinerInputNV_fp dglCombinerInputNV;
1204 DEFVAR glCombinerOutputNV_fp dglCombinerOutputNV;
1205 DEFVAR glFinalCombinerInputNV_fp dglFinalCombinerInputNV;
1206
1207 #ifdef _WIN32
1208 DEFVAR wglCopyContext_fp dwglCopyContext;
1209 DEFVAR wglCreateContext_fp dwglCreateContext;
1210 DEFVAR wglCreateLayerContext_fp dwglCreateLayerContext;
1211 DEFVAR wglDeleteContext_fp dwglDeleteContext;
1212 DEFVAR wglGetCurrentContext_fp dwglGetCurrentContext;
1213 DEFVAR wglGetCurrentDC_fp dwglGetCurrentDC;
1214 DEFVAR wglGetProcAddress_fp dwglGetProcAddress;
1215 DEFVAR wglMakeCurrent_fp dwglMakeCurrent;
1216 DEFVAR wglShareLists_fp dwglShareLists;
1217 DEFVAR wglUseFontBitmapsA_fp dwglUseFontBitmapsA;
1218 DEFVAR wglUseFontBitmapsW_fp dwglUseFontBitmapsW;
1219 DEFVAR wglUseFontOutlinesA_fp dwglUseFontOutlinesA;
1220 DEFVAR wglUseFontOutlinesW_fp dwglUseFontOutlinesW;
1221 DEFVAR wglDescribeLayerPlane_fp dwglDescribeLayerPlane;
1222 DEFVAR wglSetLayerPaletteEntries_fp dwglSetLayerPaletteEntries;
1223 DEFVAR wglGetLayerPaletteEntries_fp dwglGetLayerPaletteEntries;
1224 DEFVAR wglRealizeLayerPalette_fp dwglRealizeLayerPalette;
1225 DEFVAR wglSwapLayerBuffers_fp dwglSwapLayerBuffers;
1226 #if (WINVER >= 0x0500)
1227 DEFVAR wglSwapMultipleBuffers_fp dwglSwapMultipleBuffers;
1228 #endif
1229 #endif
1230
1231 #ifdef DECLARE_VARS
1232
1233 // Dynamic module load functions
1234 #ifdef _WIN32
1235 void *dll_LoadModule(const char *name)
1236 {
1237         HINSTANCE handle;
1238         handle = LoadLibrary(name);
1239         return (void *)handle;
1240 }
1241 void dll_UnloadModule(void *hdl)
1242 {
1243         HINSTANCE handle;
1244         handle = (HINSTANCE)hdl;
1245
1246         if(hdl)
1247         {
1248                 FreeLibrary(handle);
1249         }
1250 }
1251 void *dll_GetSymbol(void *dllhandle,const char *symname)
1252 {
1253         if(!dllhandle)
1254                 return NULL;
1255         return (void *)GetProcAddress((HINSTANCE)dllhandle,symname);
1256 }
1257 #endif
1258 #ifdef __unix__
1259 #include <dlfcn.h>
1260 void *dll_LoadModule(const char *name)
1261 {
1262         return (void *)dlopen(name,RTLD_NOW|RTLD_GLOBAL);
1263 }
1264 void dll_UnloadModule(void *hdl)
1265 {
1266         if(hdl)
1267         {
1268                 dlclose(hdl);
1269         }
1270 }
1271 void *dll_GetSymbol(void *dllhandle,const char *symname)
1272 {
1273         if(!dllhandle)
1274                 return NULL;
1275         return dlsym(dllhandle,symname);
1276 }
1277 #endif
1278 #ifdef macintosh
1279 #include <SDL.h>
1280 void *dll_LoadModule(const char *name)
1281 {
1282         return SDL_GL_LoadLibrary(name) ? NULL : (void *) -1;   // return pointer is not dereferenced
1283 }
1284 void dll_UnloadModule(void *hdl)
1285 {
1286         hdl = hdl;      // SDL_GL_UnloadLibrary not exported by SDL
1287 }
1288 void *dll_GetSymbol(void *dllhandle,const char *symname)
1289 {
1290         if(!dllhandle)
1291                 return NULL;
1292         return SDL_GL_GetProcAddress(symname);
1293 }
1294 #endif
1295
1296 #endif //DECLARE_VARS
1297
1298 void OpenGL_SetFuncsToNull(void);
1299
1300 extern char *OglLibPath;
1301
1302 #ifndef DECLARE_VARS
1303 // pass true to load the library
1304 // pass false to unload it
1305 bool OpenGL_LoadLibrary(bool load);//load=true removed because not c++
1306 #else
1307 void *OpenGLModuleHandle=NULL;
1308 //char *OglLibPath="opengl32.dll";
1309 bool OpenGL_LoadLibrary(bool load)
1310 {
1311         if(load && OpenGLModuleHandle)
1312                 return true;
1313
1314         OpenGL_SetFuncsToNull();
1315
1316         if(!load)
1317         {
1318                 if(OpenGLModuleHandle)
1319                 {
1320                         dll_UnloadModule(OpenGLModuleHandle);
1321                         OpenGLModuleHandle = NULL;
1322                 }
1323                 return true;
1324         }else
1325         {
1326                 OpenGLModuleHandle = dll_LoadModule(OglLibPath);
1327                 if(!OpenGLModuleHandle)
1328                         return false;
1329
1330                 dglAccum = (glAccum_fp)dll_GetSymbol(OpenGLModuleHandle,"glAccum");
1331                 dglAlphaFunc = (glAlphaFunc_fp)dll_GetSymbol(OpenGLModuleHandle,"glAlphaFunc");
1332                 dglAreTexturesResident = (glAreTexturesResident_fp)dll_GetSymbol(OpenGLModuleHandle,"glAreTexturesResident");
1333                 dglArrayElement = (glArrayElement_fp)dll_GetSymbol(OpenGLModuleHandle,"glArrayElement");
1334                 dglBegin = (glBegin_fp)dll_GetSymbol(OpenGLModuleHandle,"glBegin");
1335                 dglBindTexture = (glBindTexture_fp)dll_GetSymbol(OpenGLModuleHandle,"glBindTexture");
1336                 dglBitmap = (glBitmap_fp)dll_GetSymbol(OpenGLModuleHandle,"glBitmap");
1337                 dglBlendFunc = (glBlendFunc_fp)dll_GetSymbol(OpenGLModuleHandle,"glBlendFunc");
1338                 dglCallList = (glCallList_fp)dll_GetSymbol(OpenGLModuleHandle,"glCallList");
1339                 dglCallLists = (glCallLists_fp)dll_GetSymbol(OpenGLModuleHandle,"glCallLists");
1340                 dglClear = (glClear_fp)dll_GetSymbol(OpenGLModuleHandle,"glClear");
1341                 dglClearAccum = (glClearAccum_fp)dll_GetSymbol(OpenGLModuleHandle,"glClearAccum");
1342                 dglClearColor = (glClearColor_fp)dll_GetSymbol(OpenGLModuleHandle,"glClearColor");
1343                 dglClearDepth = (glClearDepth_fp)dll_GetSymbol(OpenGLModuleHandle,"glClearDepth");
1344                 dglClearIndex = (glClearIndex_fp)dll_GetSymbol(OpenGLModuleHandle,"glClearIndex");
1345                 dglClearStencil = (glClearStencil_fp)dll_GetSymbol(OpenGLModuleHandle,"glClearStencil");
1346                 dglClipPlane = (glClipPlane_fp)dll_GetSymbol(OpenGLModuleHandle,"glClipPlane");
1347                 dglColor3b = (glColor3b_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3b");
1348                 dglColor3bv = (glColor3bv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3bv");
1349                 dglColor3d = (glColor3d_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3d");
1350                 dglColor3dv = (glColor3dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3dv");
1351                 dglColor3f = (glColor3f_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3f");
1352                 dglColor3fv = (glColor3fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3fv");
1353                 dglColor3i = (glColor3i_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3i");
1354                 dglColor3iv = (glColor3iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3iv");
1355                 dglColor3s = (glColor3s_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3s");
1356                 dglColor3sv = (glColor3sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3sv");
1357                 dglColor3ub = (glColor3ub_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3ub");
1358                 dglColor3ubv = (glColor3ubv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3ubv");
1359                 dglColor3ui = (glColor3ui_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3ui");
1360                 dglColor3uiv = (glColor3uiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3uiv");
1361                 dglColor3us = (glColor3us_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3us");
1362                 dglColor3usv = (glColor3usv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor3usv");
1363                 dglColor4b = (glColor4b_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4b");
1364                 dglColor4bv = (glColor4bv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4bv");
1365                 dglColor4d = (glColor4d_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4d");
1366                 dglColor4dv = (glColor4dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4dv");
1367                 dglColor4f = (glColor4f_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4f");
1368                 dglColor4fv = (glColor4fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4fv");
1369                 dglColor4i = (glColor4i_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4i");
1370                 dglColor4iv = (glColor4iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4iv");
1371                 dglColor4s = (glColor4s_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4s");
1372                 dglColor4sv = (glColor4sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4sv");
1373                 dglColor4ub = (glColor4ub_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4ub");
1374                 dglColor4ubv = (glColor4ubv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4ubv");
1375                 dglColor4ui = (glColor4ui_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4ui");
1376                 dglColor4uiv = (glColor4uiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4uiv");
1377                 dglColor4us = (glColor4us_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4us");
1378                 dglColor4usv = (glColor4usv_fp)dll_GetSymbol(OpenGLModuleHandle,"glColor4usv");
1379                 dglColorMask = (glColorMask_fp)dll_GetSymbol(OpenGLModuleHandle,"glColorMask");
1380                 dglColorMaterial = (glColorMaterial_fp)dll_GetSymbol(OpenGLModuleHandle,"glColorMaterial");
1381                 dglColorPointer = (glColorPointer_fp)dll_GetSymbol(OpenGLModuleHandle,"glColorPointer");
1382                 dglCopyPixels = (glCopyPixels_fp)dll_GetSymbol(OpenGLModuleHandle,"glCopyPixels");
1383                 dglCopyTexImage1D = (glCopyTexImage1D_fp)dll_GetSymbol(OpenGLModuleHandle,"glCopyTexImage1D");
1384                 dglCopyTexImage2D = (glCopyTexImage2D_fp)dll_GetSymbol(OpenGLModuleHandle,"glCopyTexImage2D");
1385                 dglCopyTexSubImage1D = (glCopyTexSubImage1D_fp)dll_GetSymbol(OpenGLModuleHandle,"glCopyTexSubImage1D");
1386                 dglCopyTexSubImage2D = (glCopyTexSubImage2D_fp)dll_GetSymbol(OpenGLModuleHandle,"glCopyTexSubImage2D");
1387                 dglCullFace = (glCullFace_fp)dll_GetSymbol(OpenGLModuleHandle,"glCullFace");
1388                 dglDeleteLists = (glDeleteLists_fp)dll_GetSymbol(OpenGLModuleHandle,"glDeleteLists");
1389                 dglDeleteTextures = (glDeleteTextures_fp)dll_GetSymbol(OpenGLModuleHandle,"glDeleteTextures");
1390                 dglDepthFunc = (glDepthFunc_fp)dll_GetSymbol(OpenGLModuleHandle,"glDepthFunc");
1391                 dglDepthMask = (glDepthMask_fp)dll_GetSymbol(OpenGLModuleHandle,"glDepthMask");
1392                 dglDepthRange = (glDepthRange_fp)dll_GetSymbol(OpenGLModuleHandle,"glDepthRange");
1393                 dglDisable = (glDisable_fp)dll_GetSymbol(OpenGLModuleHandle,"glDisable");
1394                 dglDisableClientState = (glDisableClientState_fp)dll_GetSymbol(OpenGLModuleHandle,"glDisableClientState");
1395                 dglDrawArrays = (glDrawArrays_fp)dll_GetSymbol(OpenGLModuleHandle,"glDrawArrays");
1396                 dglDrawBuffer = (glDrawBuffer_fp)dll_GetSymbol(OpenGLModuleHandle,"glDrawBuffer");
1397                 dglDrawElements = (glDrawElements_fp)dll_GetSymbol(OpenGLModuleHandle,"glDrawElements");
1398                 dglDrawPixels = (glDrawPixels_fp)dll_GetSymbol(OpenGLModuleHandle,"glDrawPixels");
1399                 dglEdgeFlag = (glEdgeFlag_fp)dll_GetSymbol(OpenGLModuleHandle,"glEdgeFlag");
1400                 dglEdgeFlagPointer = (glEdgeFlagPointer_fp)dll_GetSymbol(OpenGLModuleHandle,"glEdgeFlagPointer");
1401                 dglEdgeFlagv = (glEdgeFlagv_fp)dll_GetSymbol(OpenGLModuleHandle,"glEdgeFlagv");
1402                 dglEnable = (glEnable_fp)dll_GetSymbol(OpenGLModuleHandle,"glEnable");
1403                 dglEnableClientState = (glEnableClientState_fp)dll_GetSymbol(OpenGLModuleHandle,"glEnableClientState");
1404                 dglEnd = (glEnd_fp)dll_GetSymbol(OpenGLModuleHandle,"glEnd");
1405                 dglEndList = (glEndList_fp)dll_GetSymbol(OpenGLModuleHandle,"glEndList");
1406                 dglEvalCoord1d = (glEvalCoord1d_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord1d");
1407                 dglEvalCoord1dv = (glEvalCoord1dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord1dv");
1408                 dglEvalCoord1f = (glEvalCoord1f_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord1f");
1409                 dglEvalCoord1fv = (glEvalCoord1fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord1fv");
1410                 dglEvalCoord2d = (glEvalCoord2d_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord2d");
1411                 dglEvalCoord2dv = (glEvalCoord2dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord2dv");
1412                 dglEvalCoord2f = (glEvalCoord2f_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord2f");
1413                 dglEvalCoord2fv = (glEvalCoord2fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalCoord2fv");
1414                 dglEvalMesh1 = (glEvalMesh1_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalMesh1");
1415                 dglEvalMesh2 = (glEvalMesh2_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalMesh2");
1416                 dglEvalPoint1 = (glEvalPoint1_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalPoint1");
1417                 dglEvalPoint2 = (glEvalPoint2_fp)dll_GetSymbol(OpenGLModuleHandle,"glEvalPoint2");
1418                 dglFeedbackBuffer = (glFeedbackBuffer_fp)dll_GetSymbol(OpenGLModuleHandle,"glFeedbackBuffer");
1419                 dglFinish = (glFinish_fp)dll_GetSymbol(OpenGLModuleHandle,"glFinish");
1420                 dglFlush = (glFlush_fp)dll_GetSymbol(OpenGLModuleHandle,"glFlush");
1421                 dglFogf = (glFogf_fp)dll_GetSymbol(OpenGLModuleHandle,"glFogf");
1422                 dglFogfv = (glFogfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glFogfv");
1423                 dglFogi = (glFogi_fp)dll_GetSymbol(OpenGLModuleHandle,"glFogi");
1424                 dglFogiv = (glFogiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glFogiv");
1425                 dglFrontFace = (glFrontFace_fp)dll_GetSymbol(OpenGLModuleHandle,"glFrontFace");
1426                 dglFrustum = (glFrustum_fp)dll_GetSymbol(OpenGLModuleHandle,"glFrustum");
1427                 dglGenLists = (glGenLists_fp)dll_GetSymbol(OpenGLModuleHandle,"glGenLists");
1428                 dglGenTextures = (glGenTextures_fp)dll_GetSymbol(OpenGLModuleHandle,"glGenTextures");
1429                 dglGetBooleanv = (glGetBooleanv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetBooleanv");
1430                 dglGetClipPlane = (glGetClipPlane_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetClipPlane");
1431                 dglGetDoublev = (glGetDoublev_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetDoublev");
1432                 dglGetError = (glGetError_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetError");
1433                 dglGetFloatv = (glGetFloatv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetFloatv");
1434                 dglGetIntegerv = (glGetIntegerv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetIntegerv");
1435                 dglGetLightfv = (glGetLightfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetLightfv");
1436                 dglGetLightiv = (glGetLightiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetLightiv");
1437                 dglGetMapdv = (glGetMapdv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetMapdv");
1438                 dglGetMapfv = (glGetMapfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetMapfv");
1439                 dglGetMapiv = (glGetMapiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetMapiv");
1440                 dglGetMaterialfv = (glGetMaterialfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetMaterialfv");
1441                 dglGetMaterialiv = (glGetMaterialiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetMaterialiv");
1442                 dglGetPixelMapfv = (glGetPixelMapfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetPixelMapfv");
1443                 dglGetPixelMapuiv = (glGetPixelMapuiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetPixelMapuiv");
1444                 dglGetPixelMapusv = (glGetPixelMapusv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetPixelMapusv");
1445                 dglGetPointerv = (glGetPointerv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetPointerv");
1446                 dglGetPolygonStipple = (glGetPolygonStipple_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetPolygonStipple");
1447                 dglGetString = (glGetString_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetString");
1448                 dglGetTexEnvfv = (glGetTexEnvfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexEnvfv");
1449                 dglGetTexEnviv = (glGetTexEnviv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexEnviv");
1450                 dglGetTexGendv = (glGetTexGendv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexGendv");
1451                 dglGetTexGenfv = (glGetTexGenfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexGenfv");
1452                 dglGetTexGeniv = (glGetTexGeniv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexGeniv");
1453                 dglGetTexImage = (glGetTexImage_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexImage");
1454                 dglGetTexLevelParameterfv = (glGetTexLevelParameterfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexLevelParameterfv");
1455                 dglGetTexLevelParameteriv = (glGetTexLevelParameteriv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexLevelParameteriv");
1456                 dglGetTexParameterfv = (glGetTexParameterfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexParameterfv");
1457                 dglGetTexParameteriv = (glGetTexParameteriv_fp)dll_GetSymbol(OpenGLModuleHandle,"glGetTexParameteriv");
1458                 dglHint = (glHint_fp)dll_GetSymbol(OpenGLModuleHandle,"glHint");
1459                 dglIndexMask = (glIndexMask_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexMask");
1460                 dglIndexPointer = (glIndexPointer_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexPointer");
1461                 dglIndexd = (glIndexd_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexd");
1462                 dglIndexdv = (glIndexdv_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexdv");
1463                 dglIndexf = (glIndexf_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexf");
1464                 dglIndexfv = (glIndexfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexfv");
1465                 dglIndexi = (glIndexi_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexi");
1466                 dglIndexiv = (glIndexiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexiv");
1467                 dglIndexs = (glIndexs_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexs");
1468                 dglIndexsv = (glIndexsv_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexsv");
1469                 dglIndexub = (glIndexub_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexub");
1470                 dglIndexubv = (glIndexubv_fp)dll_GetSymbol(OpenGLModuleHandle,"glIndexubv");
1471                 dglInitNames = (glInitNames_fp)dll_GetSymbol(OpenGLModuleHandle,"glInitNames");
1472                 dglInterleavedArrays = (glInterleavedArrays_fp)dll_GetSymbol(OpenGLModuleHandle,"glInterleavedArrays");
1473                 dglIsEnabled = (glIsEnabled_fp)dll_GetSymbol(OpenGLModuleHandle,"glIsEnabled");
1474                 dglIsList = (glIsList_fp)dll_GetSymbol(OpenGLModuleHandle,"glIsList");
1475                 dglIsTexture = (glIsTexture_fp)dll_GetSymbol(OpenGLModuleHandle,"glIsTexture");
1476                 dglLightModelf = (glLightModelf_fp)dll_GetSymbol(OpenGLModuleHandle,"glLightModelf");
1477                 dglLightModelfv = (glLightModelfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glLightModelfv");
1478                 dglLightModeli = (glLightModeli_fp)dll_GetSymbol(OpenGLModuleHandle,"glLightModeli");
1479                 dglLightModeliv = (glLightModeliv_fp)dll_GetSymbol(OpenGLModuleHandle,"glLightModeliv");
1480                 dglLightf = (glLightf_fp)dll_GetSymbol(OpenGLModuleHandle,"glLightf");
1481                 dglLightfv = (glLightfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glLightfv");
1482                 dglLighti = (glLighti_fp)dll_GetSymbol(OpenGLModuleHandle,"glLighti");
1483                 dglLightiv = (glLightiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glLightiv");
1484                 dglLineStipple = (glLineStipple_fp)dll_GetSymbol(OpenGLModuleHandle,"glLineStipple");
1485                 dglLineWidth = (glLineWidth_fp)dll_GetSymbol(OpenGLModuleHandle,"glLineWidth");
1486                 dglListBase = (glListBase_fp)dll_GetSymbol(OpenGLModuleHandle,"glListBase");
1487                 dglLoadIdentity = (glLoadIdentity_fp)dll_GetSymbol(OpenGLModuleHandle,"glLoadIdentity");
1488                 dglLoadMatrixd = (glLoadMatrixd_fp)dll_GetSymbol(OpenGLModuleHandle,"glLoadMatrixd");
1489                 dglLoadMatrixf = (glLoadMatrixf_fp)dll_GetSymbol(OpenGLModuleHandle,"glLoadMatrixf");
1490                 dglLoadName = (glLoadName_fp)dll_GetSymbol(OpenGLModuleHandle,"glLoadName");
1491                 dglLogicOp = (glLogicOp_fp)dll_GetSymbol(OpenGLModuleHandle,"glLogicOp");
1492                 dglMap1d = (glMap1d_fp)dll_GetSymbol(OpenGLModuleHandle,"glMap1d");
1493                 dglMap1f = (glMap1f_fp)dll_GetSymbol(OpenGLModuleHandle,"glMap1f");
1494                 dglMap2d = (glMap2d_fp)dll_GetSymbol(OpenGLModuleHandle,"glMap2d");
1495                 dglMap2f = (glMap2f_fp)dll_GetSymbol(OpenGLModuleHandle,"glMap2f");
1496                 dglMapGrid1d = (glMapGrid1d_fp)dll_GetSymbol(OpenGLModuleHandle,"glMapGrid1d");
1497                 dglMapGrid1f = (glMapGrid1f_fp)dll_GetSymbol(OpenGLModuleHandle,"glMapGrid1f");
1498                 dglMapGrid2d = (glMapGrid2d_fp)dll_GetSymbol(OpenGLModuleHandle,"glMapGrid2d");
1499                 dglMapGrid2f = (glMapGrid2f_fp)dll_GetSymbol(OpenGLModuleHandle,"glMapGrid2f");
1500                 dglMaterialf = (glMaterialf_fp)dll_GetSymbol(OpenGLModuleHandle,"glMaterialf");
1501                 dglMaterialfv = (glMaterialfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glMaterialfv");
1502                 dglMateriali = (glMateriali_fp)dll_GetSymbol(OpenGLModuleHandle,"glMateriali");
1503                 dglMaterialiv = (glMaterialiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glMaterialiv");
1504                 dglMatrixMode = (glMatrixMode_fp)dll_GetSymbol(OpenGLModuleHandle,"glMatrixMode");
1505                 dglMultMatrixd = (glMultMatrixd_fp)dll_GetSymbol(OpenGLModuleHandle,"glMultMatrixd");
1506                 dglMultMatrixf = (glMultMatrixf_fp)dll_GetSymbol(OpenGLModuleHandle,"glMultMatrixf");
1507                 dglNewList = (glNewList_fp)dll_GetSymbol(OpenGLModuleHandle,"glNewList");
1508                 dglNormal3b = (glNormal3b_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3b");
1509                 dglNormal3bv = (glNormal3bv_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3bv");
1510                 dglNormal3d = (glNormal3d_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3d");
1511                 dglNormal3dv = (glNormal3dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3dv");
1512                 dglNormal3f = (glNormal3f_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3f");
1513                 dglNormal3fv = (glNormal3fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3fv");
1514                 dglNormal3i = (glNormal3i_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3i");
1515                 dglNormal3iv = (glNormal3iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3iv");
1516                 dglNormal3s = (glNormal3s_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3s");
1517                 dglNormal3sv = (glNormal3sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormal3sv");
1518                 dglNormalPointer = (glNormalPointer_fp)dll_GetSymbol(OpenGLModuleHandle,"glNormalPointer");
1519                 dglOrtho = (glOrtho_fp)dll_GetSymbol(OpenGLModuleHandle,"glOrtho");
1520                 dglPassThrough = (glPassThrough_fp)dll_GetSymbol(OpenGLModuleHandle,"glPassThrough");
1521                 dglPixelMapfv = (glPixelMapfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelMapfv");
1522                 dglPixelMapuiv = (glPixelMapuiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelMapuiv");
1523                 dglPixelMapusv = (glPixelMapusv_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelMapusv");
1524                 dglPixelStoref = (glPixelStoref_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelStoref");
1525                 dglPixelStorei = (glPixelStorei_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelStorei");
1526                 dglPixelTransferf = (glPixelTransferf_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelTransferf");
1527                 dglPixelTransferi = (glPixelTransferi_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelTransferi");
1528                 dglPixelZoom = (glPixelZoom_fp)dll_GetSymbol(OpenGLModuleHandle,"glPixelZoom");
1529                 dglPointSize = (glPointSize_fp)dll_GetSymbol(OpenGLModuleHandle,"glPointSize");
1530                 dglPolygonMode = (glPolygonMode_fp)dll_GetSymbol(OpenGLModuleHandle,"glPolygonMode");
1531                 dglPolygonOffset = (glPolygonOffset_fp)dll_GetSymbol(OpenGLModuleHandle,"glPolygonOffset");
1532                 dglPolygonStipple = (glPolygonStipple_fp)dll_GetSymbol(OpenGLModuleHandle,"glPolygonStipple");
1533                 dglPopAttrib = (glPopAttrib_fp)dll_GetSymbol(OpenGLModuleHandle,"glPopAttrib");
1534                 dglPopClientAttrib = (glPopClientAttrib_fp)dll_GetSymbol(OpenGLModuleHandle,"glPopClientAttrib");
1535                 dglPopMatrix = (glPopMatrix_fp)dll_GetSymbol(OpenGLModuleHandle,"glPopMatrix");
1536                 dglPopName = (glPopName_fp)dll_GetSymbol(OpenGLModuleHandle,"glPopName");
1537                 dglPrioritizeTextures = (glPrioritizeTextures_fp)dll_GetSymbol(OpenGLModuleHandle,"glPrioritizeTextures");
1538                 dglPushAttrib = (glPushAttrib_fp)dll_GetSymbol(OpenGLModuleHandle,"glPushAttrib");
1539                 dglPushClientAttrib = (glPushClientAttrib_fp)dll_GetSymbol(OpenGLModuleHandle,"glPushClientAttrib");
1540                 dglPushMatrix = (glPushMatrix_fp)dll_GetSymbol(OpenGLModuleHandle,"glPushMatrix");
1541                 dglPushName = (glPushName_fp)dll_GetSymbol(OpenGLModuleHandle,"glPushName");
1542                 dglRasterPos2d = (glRasterPos2d_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2d");
1543                 dglRasterPos2dv = (glRasterPos2dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2dv");
1544                 dglRasterPos2f = (glRasterPos2f_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2f");
1545                 dglRasterPos2fv = (glRasterPos2fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2fv");
1546                 dglRasterPos2i = (glRasterPos2i_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2i");
1547                 dglRasterPos2iv = (glRasterPos2iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2iv");
1548                 dglRasterPos2s = (glRasterPos2s_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2s");
1549                 dglRasterPos2sv = (glRasterPos2sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos2sv");
1550                 dglRasterPos3d = (glRasterPos3d_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3d");
1551                 dglRasterPos3dv = (glRasterPos3dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3dv");
1552                 dglRasterPos3f = (glRasterPos3f_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3f");
1553                 dglRasterPos3fv = (glRasterPos3fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3fv");
1554                 dglRasterPos3i = (glRasterPos3i_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3i");
1555                 dglRasterPos3iv = (glRasterPos3iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3iv");
1556                 dglRasterPos3s = (glRasterPos3s_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3s");
1557                 dglRasterPos3sv = (glRasterPos3sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos3sv");
1558                 dglRasterPos4d = (glRasterPos4d_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4d");
1559                 dglRasterPos4dv = (glRasterPos4dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4dv");
1560                 dglRasterPos4f = (glRasterPos4f_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4f");
1561                 dglRasterPos4fv = (glRasterPos4fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4fv");
1562                 dglRasterPos4i = (glRasterPos4i_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4i");
1563                 dglRasterPos4iv = (glRasterPos4iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4iv");
1564                 dglRasterPos4s = (glRasterPos4s_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4s");
1565                 dglRasterPos4sv = (glRasterPos4sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRasterPos4sv");
1566                 dglReadBuffer = (glReadBuffer_fp)dll_GetSymbol(OpenGLModuleHandle,"glReadBuffer");
1567                 dglReadPixels = (glReadPixels_fp)dll_GetSymbol(OpenGLModuleHandle,"glReadPixels");
1568                 dglRectd = (glRectd_fp)dll_GetSymbol(OpenGLModuleHandle,"glRectd");
1569                 dglRectdv = (glRectdv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRectdv");
1570                 dglRectf = (glRectf_fp)dll_GetSymbol(OpenGLModuleHandle,"glRectf");
1571                 dglRectfv = (glRectfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRectfv");
1572                 dglRecti = (glRecti_fp)dll_GetSymbol(OpenGLModuleHandle,"glRecti");
1573                 dglRectiv = (glRectiv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRectiv");
1574                 dglRects = (glRects_fp)dll_GetSymbol(OpenGLModuleHandle,"glRects");
1575                 dglRectsv = (glRectsv_fp)dll_GetSymbol(OpenGLModuleHandle,"glRectsv");
1576                 dglRenderMode = (glRenderMode_fp)dll_GetSymbol(OpenGLModuleHandle,"glRenderMode");
1577                 dglRotated = (glRotated_fp)dll_GetSymbol(OpenGLModuleHandle,"glRotated");
1578                 dglRotatef = (glRotatef_fp)dll_GetSymbol(OpenGLModuleHandle,"glRotatef");
1579                 dglScaled = (glScaled_fp)dll_GetSymbol(OpenGLModuleHandle,"glScaled");
1580                 dglScalef = (glScalef_fp)dll_GetSymbol(OpenGLModuleHandle,"glScalef");
1581                 dglScissor = (glScissor_fp)dll_GetSymbol(OpenGLModuleHandle,"glScissor");
1582                 dglSelectBuffer = (glSelectBuffer_fp)dll_GetSymbol(OpenGLModuleHandle,"glSelectBuffer");
1583                 dglShadeModel = (glShadeModel_fp)dll_GetSymbol(OpenGLModuleHandle,"glShadeModel");
1584                 dglStencilFunc = (glStencilFunc_fp)dll_GetSymbol(OpenGLModuleHandle,"glStencilFunc");
1585                 dglStencilMask = (glStencilMask_fp)dll_GetSymbol(OpenGLModuleHandle,"glStencilMask");
1586                 dglStencilOp = (glStencilOp_fp)dll_GetSymbol(OpenGLModuleHandle,"glStencilOp");
1587                 dglTexCoord1d = (glTexCoord1d_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1d");
1588                 dglTexCoord1dv = (glTexCoord1dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1dv");
1589                 dglTexCoord1f = (glTexCoord1f_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1f");
1590                 dglTexCoord1fv = (glTexCoord1fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1fv");
1591                 dglTexCoord1i = (glTexCoord1i_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1i");
1592                 dglTexCoord1iv = (glTexCoord1iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1iv");
1593                 dglTexCoord1s = (glTexCoord1s_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1s");
1594                 dglTexCoord1sv = (glTexCoord1sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord1sv");
1595                 dglTexCoord2d = (glTexCoord2d_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2d");
1596                 dglTexCoord2dv = (glTexCoord2dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2dv");
1597                 dglTexCoord2f = (glTexCoord2f_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2f");
1598                 dglTexCoord2fv = (glTexCoord2fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2fv");
1599                 dglTexCoord2i = (glTexCoord2i_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2i");
1600                 dglTexCoord2iv = (glTexCoord2iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2iv");
1601                 dglTexCoord2s = (glTexCoord2s_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2s");
1602                 dglTexCoord2sv = (glTexCoord2sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord2sv");
1603                 dglTexCoord3d = (glTexCoord3d_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3d");
1604                 dglTexCoord3dv = (glTexCoord3dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3dv");
1605                 dglTexCoord3f = (glTexCoord3f_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3f");
1606                 dglTexCoord3fv = (glTexCoord3fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3fv");
1607                 dglTexCoord3i = (glTexCoord3i_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3i");
1608                 dglTexCoord3iv = (glTexCoord3iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3iv");
1609                 dglTexCoord3s = (glTexCoord3s_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3s");
1610                 dglTexCoord3sv = (glTexCoord3sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord3sv");
1611                 dglTexCoord4d = (glTexCoord4d_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4d");
1612                 dglTexCoord4dv = (glTexCoord4dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4dv");
1613                 dglTexCoord4f = (glTexCoord4f_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4f");
1614                 dglTexCoord4fv = (glTexCoord4fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4fv");
1615                 dglTexCoord4i = (glTexCoord4i_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4i");
1616                 dglTexCoord4iv = (glTexCoord4iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4iv");
1617                 dglTexCoord4s = (glTexCoord4s_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4s");
1618                 dglTexCoord4sv = (glTexCoord4sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoord4sv");
1619                 dglTexCoordPointer = (glTexCoordPointer_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexCoordPointer");
1620                 dglTexEnvf = (glTexEnvf_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexEnvf");
1621                 dglTexEnvfv = (glTexEnvfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexEnvfv");
1622                 dglTexEnvi = (glTexEnvi_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexEnvi");
1623                 dglTexEnviv = (glTexEnviv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexEnviv");
1624                 dglTexGend = (glTexGend_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexGend");
1625                 dglTexGendv = (glTexGendv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexGendv");
1626                 dglTexGenf = (glTexGenf_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexGenf");
1627                 dglTexGenfv = (glTexGenfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexGenfv");
1628                 dglTexGeni = (glTexGeni_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexGeni");
1629                 dglTexGeniv = (glTexGeniv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexGeniv");
1630                 dglTexImage1D = (glTexImage1D_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexImage1D");
1631                 dglTexImage2D = (glTexImage2D_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexImage2D");
1632                 dglTexParameterf = (glTexParameterf_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexParameterf");
1633                 dglTexParameterfv = (glTexParameterfv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexParameterfv");
1634                 dglTexParameteri = (glTexParameteri_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexParameteri");
1635                 dglTexParameteriv = (glTexParameteriv_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexParameteriv");
1636                 dglTexSubImage1D = (glTexSubImage1D_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexSubImage1D");
1637                 dglTexSubImage2D = (glTexSubImage2D_fp)dll_GetSymbol(OpenGLModuleHandle,"glTexSubImage2D");
1638                 dglTranslated = (glTranslated_fp)dll_GetSymbol(OpenGLModuleHandle,"glTranslated");
1639                 dglTranslatef = (glTranslatef_fp)dll_GetSymbol(OpenGLModuleHandle,"glTranslatef");
1640                 dglVertex2d = (glVertex2d_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2d");
1641                 dglVertex2dv = (glVertex2dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2dv");
1642                 dglVertex2f = (glVertex2f_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2f");
1643                 dglVertex2fv = (glVertex2fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2fv");
1644                 dglVertex2i = (glVertex2i_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2i");
1645                 dglVertex2iv = (glVertex2iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2iv");
1646                 dglVertex2s = (glVertex2s_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2s");
1647                 dglVertex2sv = (glVertex2sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex2sv");
1648                 dglVertex3d = (glVertex3d_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3d");
1649                 dglVertex3dv = (glVertex3dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3dv");
1650                 dglVertex3f = (glVertex3f_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3f");
1651                 dglVertex3fv = (glVertex3fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3fv");
1652                 dglVertex3i = (glVertex3i_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3i");
1653                 dglVertex3iv = (glVertex3iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3iv");
1654                 dglVertex3s = (glVertex3s_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3s");
1655                 dglVertex3sv = (glVertex3sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex3sv");
1656                 dglVertex4d = (glVertex4d_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4d");
1657                 dglVertex4dv = (glVertex4dv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4dv");
1658                 dglVertex4f = (glVertex4f_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4f");
1659                 dglVertex4fv = (glVertex4fv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4fv");
1660                 dglVertex4i = (glVertex4i_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4i");
1661                 dglVertex4iv = (glVertex4iv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4iv");
1662                 dglVertex4s = (glVertex4s_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4s");
1663                 dglVertex4sv = (glVertex4sv_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertex4sv");
1664                 dglVertexPointer = (glVertexPointer_fp)dll_GetSymbol(OpenGLModuleHandle,"glVertexPointer");
1665                 dglViewport = (glViewport_fp)dll_GetSymbol(OpenGLModuleHandle,"glViewport");
1666         
1667 #ifdef _WIN32
1668                 dwglCopyContext = (wglCopyContext_fp)dll_GetSymbol(OpenGLModuleHandle,"wglCopyContext");
1669                 dwglCreateContext = (wglCreateContext_fp)dll_GetSymbol(OpenGLModuleHandle,"wglCreateContext");
1670                 dwglCreateLayerContext = (wglCreateLayerContext_fp)dll_GetSymbol(OpenGLModuleHandle,"wglCreateLayerContext");
1671                 dwglDeleteContext = (wglDeleteContext_fp)dll_GetSymbol(OpenGLModuleHandle,"wglDeleteContext");
1672                 dwglGetCurrentContext = (wglGetCurrentContext_fp)dll_GetSymbol(OpenGLModuleHandle,"wglGetCurrentContext");
1673                 dwglGetCurrentDC = (wglGetCurrentDC_fp)dll_GetSymbol(OpenGLModuleHandle,"wglGetCurrentDC");
1674                 dwglGetProcAddress = (wglGetProcAddress_fp)dll_GetSymbol(OpenGLModuleHandle,"wglGetProcAddress");
1675                 dwglMakeCurrent = (wglMakeCurrent_fp)dll_GetSymbol(OpenGLModuleHandle,"wglMakeCurrent");
1676                 dwglShareLists = (wglShareLists_fp)dll_GetSymbol(OpenGLModuleHandle,"wglShareLists");
1677                 dwglUseFontBitmapsA = (wglUseFontBitmapsA_fp)dll_GetSymbol(OpenGLModuleHandle,"wglUseFontBitmapsA");
1678                 dwglUseFontBitmapsW = (wglUseFontBitmapsW_fp)dll_GetSymbol(OpenGLModuleHandle,"wglUseFontBitmapsW");
1679                 dwglUseFontOutlinesA = (wglUseFontOutlinesA_fp)dll_GetSymbol(OpenGLModuleHandle,"wglUseFontOutlinesA");
1680                 dwglUseFontOutlinesW = (wglUseFontOutlinesW_fp)dll_GetSymbol(OpenGLModuleHandle,"wglUseFontOutlinesW");
1681                 dwglDescribeLayerPlane = (wglDescribeLayerPlane_fp)dll_GetSymbol(OpenGLModuleHandle,"wglDescribeLayerPlane");
1682                 dwglSetLayerPaletteEntries = (wglSetLayerPaletteEntries_fp)dll_GetSymbol(OpenGLModuleHandle,"wglSetLayerPaletteEntries");
1683                 dwglGetLayerPaletteEntries = (wglGetLayerPaletteEntries_fp)dll_GetSymbol(OpenGLModuleHandle,"wglGetLayerPaletteEntries");
1684                 dwglRealizeLayerPalette = (wglRealizeLayerPalette_fp)dll_GetSymbol(OpenGLModuleHandle,"wglRealizeLayerPalette");
1685                 dwglSwapLayerBuffers = (wglSwapLayerBuffers_fp)dll_GetSymbol(OpenGLModuleHandle,"wglSwapLayerBuffers");
1686                 #if (WINVER >= 0x0500)
1687                 dwglSwapMultipleBuffers = (wglSwapMultipleBuffers_fp)dll_GetSymbol(OpenGLModuleHandle,"wglSwapMultipleBuffers");
1688                 #endif
1689 #endif
1690
1691         }
1692
1693         return true;
1694 }
1695
1696 void OpenGL_SetFuncsToNull(void)
1697 {
1698         dglAccum = NULL;
1699         dglAlphaFunc = NULL;
1700         dglAreTexturesResident = NULL;
1701         dglArrayElement = NULL;
1702         dglBegin = NULL;
1703         dglBindTexture = NULL;
1704         dglBitmap = NULL;
1705         dglBlendFunc = NULL;
1706         dglCallList = NULL;
1707         dglCallLists = NULL;
1708         dglClear = NULL;
1709         dglClearAccum = NULL;
1710         dglClearColor = NULL;
1711         dglClearDepth = NULL;
1712         dglClearIndex = NULL;
1713         dglClearStencil = NULL;
1714         dglClipPlane = NULL;
1715         dglColor3b = NULL;
1716         dglColor3bv = NULL;
1717         dglColor3d = NULL;
1718         dglColor3dv = NULL;
1719         dglColor3f = NULL;
1720         dglColor3fv = NULL;
1721         dglColor3i = NULL;
1722         dglColor3iv = NULL;
1723         dglColor3s = NULL;
1724         dglColor3sv = NULL;
1725         dglColor3ub = NULL;
1726         dglColor3ubv = NULL;
1727         dglColor3ui = NULL;
1728         dglColor3uiv = NULL;
1729         dglColor3us = NULL;
1730         dglColor3usv = NULL;
1731         dglColor4b = NULL;
1732         dglColor4bv = NULL;
1733         dglColor4d = NULL;
1734         dglColor4dv = NULL;
1735         dglColor4f = NULL;
1736         dglColor4fv = NULL;
1737         dglColor4i = NULL;
1738         dglColor4iv = NULL;
1739         dglColor4s = NULL;
1740         dglColor4sv = NULL;
1741         dglColor4ub = NULL;
1742         dglColor4ubv = NULL;
1743         dglColor4ui = NULL;
1744         dglColor4uiv = NULL;
1745         dglColor4us = NULL;
1746         dglColor4usv = NULL;
1747         dglColorMask = NULL;
1748         dglColorMaterial = NULL;
1749         dglColorPointer = NULL;
1750         dglCopyPixels = NULL;
1751         dglCopyTexImage1D = NULL;
1752         dglCopyTexImage2D = NULL;
1753         dglCopyTexSubImage1D = NULL;
1754         dglCopyTexSubImage2D = NULL;
1755         dglCullFace = NULL;
1756         dglDeleteLists = NULL;
1757         dglDeleteTextures = NULL;
1758         dglDepthFunc = NULL;
1759         dglDepthMask = NULL;
1760         dglDepthRange = NULL;
1761         dglDisable = NULL;
1762         dglDisableClientState = NULL;
1763         dglDrawArrays = NULL;
1764         dglDrawBuffer = NULL;
1765         dglDrawElements = NULL;
1766         dglDrawPixels = NULL;
1767         dglEdgeFlag = NULL;
1768         dglEdgeFlagPointer = NULL;
1769         dglEdgeFlagv = NULL;
1770         dglEnable = NULL;
1771         dglEnableClientState = NULL;
1772         dglEnd = NULL;
1773         dglEndList = NULL;
1774         dglEvalCoord1d = NULL;
1775         dglEvalCoord1dv = NULL;
1776         dglEvalCoord1f = NULL;
1777         dglEvalCoord1fv = NULL;
1778         dglEvalCoord2d = NULL;
1779         dglEvalCoord2dv = NULL;
1780         dglEvalCoord2f = NULL;
1781         dglEvalCoord2fv = NULL;
1782         dglEvalMesh1 = NULL;
1783         dglEvalMesh2 = NULL;
1784         dglEvalPoint1 = NULL;
1785         dglEvalPoint2 = NULL;
1786         dglFeedbackBuffer = NULL;
1787         dglFinish = NULL;
1788         dglFlush = NULL;
1789         dglFogf = NULL;
1790         dglFogfv = NULL;
1791         dglFogi = NULL;
1792         dglFogiv = NULL;
1793         dglFrontFace = NULL;
1794         dglFrustum = NULL;
1795         dglGenLists = NULL;
1796         dglGenTextures = NULL;
1797         dglGetBooleanv = NULL;
1798         dglGetClipPlane = NULL;
1799         dglGetDoublev = NULL;
1800         dglGetError = NULL;
1801         dglGetFloatv = NULL;
1802         dglGetIntegerv = NULL;
1803         dglGetLightfv = NULL;
1804         dglGetLightiv = NULL;
1805         dglGetMapdv = NULL;
1806         dglGetMapfv = NULL;
1807         dglGetMapiv = NULL;
1808         dglGetMaterialfv = NULL;
1809         dglGetMaterialiv = NULL;
1810         dglGetPixelMapfv = NULL;
1811         dglGetPixelMapuiv = NULL;
1812         dglGetPixelMapusv = NULL;
1813         dglGetPointerv = NULL;
1814         dglGetPolygonStipple = NULL;
1815         dglGetString = NULL;
1816         dglGetTexEnvfv = NULL;
1817         dglGetTexEnviv = NULL;
1818         dglGetTexGendv = NULL;
1819         dglGetTexGenfv = NULL;
1820         dglGetTexGeniv = NULL;
1821         dglGetTexImage = NULL;
1822         dglGetTexLevelParameterfv = NULL;
1823         dglGetTexLevelParameteriv = NULL;
1824         dglGetTexParameterfv = NULL;
1825         dglGetTexParameteriv = NULL;
1826         dglHint = NULL;
1827         dglIndexMask = NULL;
1828         dglIndexPointer = NULL;
1829         dglIndexd = NULL;
1830         dglIndexdv = NULL;
1831         dglIndexf = NULL;
1832         dglIndexfv = NULL;
1833         dglIndexi = NULL;
1834         dglIndexiv = NULL;
1835         dglIndexs = NULL;
1836         dglIndexsv = NULL;
1837         dglIndexub = NULL;
1838         dglIndexubv = NULL;
1839         dglInitNames = NULL;
1840         dglInterleavedArrays = NULL;
1841         dglIsEnabled = NULL;
1842         dglIsList = NULL;
1843         dglIsTexture = NULL;
1844         dglLightModelf = NULL;
1845         dglLightModelfv = NULL;
1846         dglLightModeli = NULL;
1847         dglLightModeliv = NULL;
1848         dglLightf = NULL;
1849         dglLightfv = NULL;
1850         dglLighti = NULL;
1851         dglLightiv = NULL;
1852         dglLineStipple = NULL;
1853         dglLineWidth = NULL;
1854         dglListBase = NULL;
1855         dglLoadIdentity = NULL;
1856         dglLoadMatrixd = NULL;
1857         dglLoadMatrixf = NULL;
1858         dglLoadName = NULL;
1859         dglLogicOp = NULL;
1860         dglMap1d = NULL;
1861         dglMap1f = NULL;
1862         dglMap2d = NULL;
1863         dglMap2f = NULL;
1864         dglMapGrid1d = NULL;
1865         dglMapGrid1f = NULL;
1866         dglMapGrid2d = NULL;
1867         dglMapGrid2f = NULL;
1868         dglMaterialf = NULL;
1869         dglMaterialfv = NULL;
1870         dglMateriali = NULL;
1871         dglMaterialiv = NULL;
1872         dglMatrixMode = NULL;
1873         dglMultMatrixd = NULL;
1874         dglMultMatrixf = NULL;
1875         dglNewList = NULL;
1876         dglNormal3b = NULL;
1877         dglNormal3bv = NULL;
1878         dglNormal3d = NULL;
1879         dglNormal3dv = NULL;
1880         dglNormal3f = NULL;
1881         dglNormal3fv = NULL;
1882         dglNormal3i = NULL;
1883         dglNormal3iv = NULL;
1884         dglNormal3s = NULL;
1885         dglNormal3sv = NULL;
1886         dglNormalPointer = NULL;
1887         dglOrtho = NULL;
1888         dglPassThrough = NULL;
1889         dglPixelMapfv = NULL;
1890         dglPixelMapuiv = NULL;
1891         dglPixelMapusv = NULL;
1892         dglPixelStoref = NULL;
1893         dglPixelStorei = NULL;
1894         dglPixelTransferf = NULL;
1895         dglPixelTransferi = NULL;
1896         dglPixelZoom = NULL;
1897         dglPointSize = NULL;
1898         dglPolygonMode = NULL;
1899         dglPolygonOffset = NULL;
1900         dglPolygonStipple = NULL;
1901         dglPopAttrib = NULL;
1902         dglPopClientAttrib = NULL;
1903         dglPopMatrix = NULL;
1904         dglPopName = NULL;
1905         dglPrioritizeTextures = NULL;
1906         dglPushAttrib = NULL;
1907         dglPushClientAttrib = NULL;
1908         dglPushMatrix = NULL;
1909         dglPushName = NULL;
1910         dglRasterPos2d = NULL;
1911         dglRasterPos2dv = NULL;
1912         dglRasterPos2f = NULL;
1913         dglRasterPos2fv = NULL;
1914         dglRasterPos2i = NULL;
1915         dglRasterPos2iv = NULL;
1916         dglRasterPos2s = NULL;
1917         dglRasterPos2sv = NULL;
1918         dglRasterPos3d = NULL;
1919         dglRasterPos3dv = NULL;
1920         dglRasterPos3f = NULL;
1921         dglRasterPos3fv = NULL;
1922         dglRasterPos3i = NULL;
1923         dglRasterPos3iv = NULL;
1924         dglRasterPos3s = NULL;
1925         dglRasterPos3sv = NULL;
1926         dglRasterPos4d = NULL;
1927         dglRasterPos4dv = NULL;
1928         dglRasterPos4f = NULL;
1929         dglRasterPos4fv = NULL;
1930         dglRasterPos4i = NULL;
1931         dglRasterPos4iv = NULL;
1932         dglRasterPos4s = NULL;
1933         dglRasterPos4sv = NULL;
1934         dglReadBuffer = NULL;
1935         dglReadPixels = NULL;
1936         dglRectd = NULL;
1937         dglRectdv = NULL;
1938         dglRectf = NULL;
1939         dglRectfv = NULL;
1940         dglRecti = NULL;
1941         dglRectiv = NULL;
1942         dglRects = NULL;
1943         dglRectsv = NULL;
1944         dglRenderMode = NULL;
1945         dglRotated = NULL;
1946         dglRotatef = NULL;
1947         dglScaled = NULL;
1948         dglScalef = NULL;
1949         dglScissor = NULL;
1950         dglSelectBuffer = NULL;
1951         dglShadeModel = NULL;
1952         dglStencilFunc = NULL;
1953         dglStencilMask = NULL;
1954         dglStencilOp = NULL;
1955         dglTexCoord1d = NULL;
1956         dglTexCoord1dv = NULL;
1957         dglTexCoord1f = NULL;
1958         dglTexCoord1fv = NULL;
1959         dglTexCoord1i = NULL;
1960         dglTexCoord1iv = NULL;
1961         dglTexCoord1s = NULL;
1962         dglTexCoord1sv = NULL;
1963         dglTexCoord2d = NULL;
1964         dglTexCoord2dv = NULL;
1965         dglTexCoord2f = NULL;
1966         dglTexCoord2fv = NULL;
1967         dglTexCoord2i = NULL;
1968         dglTexCoord2iv = NULL;
1969         dglTexCoord2s = NULL;
1970         dglTexCoord2sv = NULL;
1971         dglTexCoord3d = NULL;
1972         dglTexCoord3dv = NULL;
1973         dglTexCoord3f = NULL;
1974         dglTexCoord3fv = NULL;
1975         dglTexCoord3i = NULL;
1976         dglTexCoord3iv = NULL;
1977         dglTexCoord3s = NULL;
1978         dglTexCoord3sv = NULL;
1979         dglTexCoord4d = NULL;
1980         dglTexCoord4dv = NULL;
1981         dglTexCoord4f = NULL;
1982         dglTexCoord4fv = NULL;
1983         dglTexCoord4i = NULL;
1984         dglTexCoord4iv = NULL;
1985         dglTexCoord4s = NULL;
1986         dglTexCoord4sv = NULL;
1987         dglTexCoordPointer = NULL;
1988         dglTexEnvf = NULL;
1989         dglTexEnvfv = NULL;
1990         dglTexEnvi = NULL;
1991         dglTexEnviv = NULL;
1992         dglTexGend = NULL;
1993         dglTexGendv = NULL;
1994         dglTexGenf = NULL;
1995         dglTexGenfv = NULL;
1996         dglTexGeni = NULL;
1997         dglTexGeniv = NULL;
1998         dglTexImage1D = NULL;
1999         dglTexImage2D = NULL;
2000         dglTexParameterf = NULL;
2001         dglTexParameterfv = NULL;
2002         dglTexParameteri = NULL;
2003         dglTexParameteriv = NULL;
2004         dglTexSubImage1D = NULL;
2005         dglTexSubImage2D = NULL;
2006         dglTranslated = NULL;
2007         dglTranslatef = NULL;
2008         dglVertex2d = NULL;
2009         dglVertex2dv = NULL;
2010         dglVertex2f = NULL;
2011         dglVertex2fv = NULL;
2012         dglVertex2i = NULL;
2013         dglVertex2iv = NULL;
2014         dglVertex2s = NULL;
2015         dglVertex2sv = NULL;
2016         dglVertex3d = NULL;
2017         dglVertex3dv = NULL;
2018         dglVertex3f = NULL;
2019         dglVertex3fv = NULL;
2020         dglVertex3i = NULL;
2021         dglVertex3iv = NULL;
2022         dglVertex3s = NULL;
2023         dglVertex3sv = NULL;
2024         dglVertex4d = NULL;
2025         dglVertex4dv = NULL;
2026         dglVertex4f = NULL;
2027         dglVertex4fv = NULL;
2028         dglVertex4i = NULL;
2029         dglVertex4iv = NULL;
2030         dglVertex4s = NULL;
2031         dglVertex4sv = NULL;
2032         dglVertexPointer = NULL;
2033         dglViewport = NULL;
2034
2035         dglMultiTexCoord2fARB = NULL;
2036         dglActiveTextureARB = NULL;
2037         dglMultiTexCoord2fSGIS = NULL;
2038         dglSelectTextureSGIS = NULL;
2039         dglColorTableEXT = NULL;
2040
2041         dglCombinerParameteriNV = NULL;
2042         dglCombinerInputNV = NULL;
2043         dglCombinerOutputNV = NULL;
2044         dglFinalCombinerInputNV = NULL;
2045
2046 #ifdef _WIN32
2047         dwglCopyContext = NULL;
2048         dwglCreateContext = NULL;
2049         dwglCreateLayerContext = NULL;
2050         dwglDeleteContext = NULL;
2051         dwglGetCurrentContext = NULL;
2052         dwglGetCurrentDC = NULL;
2053         dwglGetProcAddress = NULL;
2054         dwglMakeCurrent = NULL;
2055         dwglShareLists = NULL;
2056         dwglUseFontBitmapsA = NULL;
2057         dwglUseFontBitmapsW = NULL;
2058         dwglUseFontOutlinesA = NULL;
2059         dwglUseFontOutlinesW = NULL;
2060         dwglDescribeLayerPlane = NULL;
2061         dwglSetLayerPaletteEntries = NULL;
2062         dwglGetLayerPaletteEntries = NULL;
2063         dwglRealizeLayerPalette = NULL;
2064         dwglSwapLayerBuffers = NULL;
2065         #if (WINVER >= 0x0500)
2066         dwglSwapMultipleBuffers = NULL;
2067         #endif
2068 #endif
2069
2070 }
2071 #endif
2072
2073
2074 #endif //!__LOADGL_H__