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