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