added current context functions, made ThreadSafe public
[mesa.git] / src / mesa / glapi / glapi.c
1 /* $Id: glapi.c,v 1.18 1999/12/17 14:51:28 brianp Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 3.3
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28 /*
29 * This file manages the OpenGL API dispatch layer.
30 * The dispatch table (struct _glapi_table) is basically just a list
31 * of function pointers.
32 * There are functions to set/get the current dispatch table for the
33 * current thread and to manage registration/dispatch of dynamically
34 * added extension functions.
35 */
36
37
38
39 #include <assert.h>
40 #include <stdlib.h> /* to get NULL */
41 #include <string.h>
42 #include "glapi.h"
43 #include "glapinoop.h"
44 #include "glapioffsets.h"
45 #include "glapitable.h"
46
47 #include <stdio.h>
48
49
50
51 /* Flag to indicate whether thread-safe dispatch is enabled */
52 GLboolean _glapi_ThreadSafe = GL_FALSE;
53
54 /* This is used when thread safety is disabled */
55 static struct _glapi_table *Dispatch = &__glapi_noop_table;
56
57 /* Used when thread safety disabled */
58 void *_glapi_CurrentContext = NULL;
59
60
61 #if defined(THREADS)
62
63 #include "glthread.h"
64
65 static _glthread_TSD DispatchTSD;
66
67 static void dispatch_thread_init()
68 {
69 _glthread_InitTSD(&DispatchTSD);
70 }
71
72
73 static _glthread_TSD ContextTSD;
74
75 static void context_thread_init()
76 {
77 _glthread_InitTSD(&ContextTSD);
78 }
79
80 #endif
81
82
83
84 static GLuint MaxDispatchOffset = sizeof(struct _glapi_table) / sizeof(void *) - 1;
85 static GLboolean GetSizeCalled = GL_FALSE;
86
87
88
89 /*
90 * We should call this periodically from a function such as glXMakeCurrent
91 * in order to test if multiple threads are being used. When we detect
92 * that situation we should then call _glapi_enable_thread_safety()
93 */
94 void
95 _glapi_check_multithread(void)
96 {
97 #if defined(THREADS)
98 if (!_glapi_ThreadSafe) {
99 static unsigned long knownID;
100 static GLboolean firstCall = GL_TRUE;
101 if (firstCall) {
102 knownID = _glthread_GetID();
103 firstCall = GL_FALSE;
104 }
105 else if (knownID != _glthread_GetID()) {
106 _glapi_ThreadSafe = GL_TRUE;
107 }
108 }
109 if (_glapi_ThreadSafe) {
110 /* make sure that this thread's dispatch pointer isn't null */
111 if (!_glapi_get_dispatch()) {
112 _glapi_set_dispatch(NULL);
113 }
114 }
115 #endif
116 }
117
118
119
120 /*
121 * Set the current context pointer for this thread.
122 * The context pointer is an opaque type which should be cast to
123 * void from the real context pointer type.
124 */
125 void
126 _glapi_set_current_context(void *context)
127 {
128 #if defined(THREADS)
129 _glthread_SetTSD(&ContextTSD, context, context_thread_init);
130 if (_glapi_ThreadSafe)
131 _glapi_CurrentContext = NULL; /* to help with debugging */
132 else
133 _glapi_CurrentContext = context;
134 #else
135 _glapi_CurrentContext = context;
136 #endif
137 }
138
139
140
141 /*
142 * Get the current context pointer for this thread.
143 * The context pointer is an opaque type which should be cast from
144 * void to the real context pointer type.
145 */
146 void *
147 _glapi_get_current_context(void)
148 {
149 #if defined(THREADS)
150 if (_glapi_ThreadSafe) {
151 return _glthread_GetTSD(&ContextTSD);
152 }
153 else {
154 return _glapi_CurrentContext;
155 }
156 #else
157 return _glapi_CurrentContext;
158 #endif
159 }
160
161
162
163 /*
164 * Set the global or per-thread dispatch table pointer.
165 */
166 void
167 _glapi_set_dispatch(struct _glapi_table *dispatch)
168 {
169 if (!dispatch) {
170 /* use the no-op functions */
171 dispatch = &__glapi_noop_table;
172 }
173 #ifdef DEBUG
174 else {
175 _glapi_check_table(dispatch);
176 }
177 #endif
178
179 #if defined(THREADS)
180 _glthread_SetTSD(&DispatchTSD, (void*) dispatch, dispatch_thread_init);
181 if (_glapi_ThreadSafe)
182 Dispatch = NULL; /* to help with debugging */
183 else
184 Dispatch = dispatch;
185 #else
186 Dispatch = dispatch;
187 #endif
188 }
189
190
191
192 /*
193 * Return pointer to current dispatch table for calling thread.
194 */
195 struct _glapi_table *
196 _glapi_get_dispatch(void)
197 {
198 #if defined(THREADS)
199 if (_glapi_ThreadSafe) {
200 return (struct _glapi_table *) _glthread_GetTSD(&DispatchTSD);
201 }
202 else {
203 assert(Dispatch);
204 return Dispatch;
205 }
206 #else
207 return Dispatch;
208 #endif
209 }
210
211
212
213 /*
214 * Return size of dispatch table struct as number of functions (or
215 * slots).
216 */
217 GLuint
218 _glapi_get_dispatch_table_size(void)
219 {
220 /* return sizeof(struct _glapi_table) / sizeof(void *);*/
221 GetSizeCalled = GL_TRUE;
222 return MaxDispatchOffset + 1;
223 }
224
225
226
227 /*
228 * Get API dispatcher version string.
229 * XXX this isn't well defined yet.
230 */
231 const char *
232 _glapi_get_version(void)
233 {
234 return "1.2";
235 }
236
237
238 struct name_address_pair {
239 const char *Name;
240 GLvoid *Address;
241 };
242
243 static struct name_address_pair static_functions[1000];
244
245
246
247 /*
248 * Return dispatch table offset of the named static (built-in) function.
249 * Return -1 if function not found.
250 */
251 static GLint
252 get_static_proc_offset(const char *funcName)
253 {
254 GLuint i;
255 for (i = 0; static_functions[i].Name; i++) {
256 if (strcmp(static_functions[i].Name, funcName) == 0) {
257 return i;
258 }
259 }
260 return -1;
261 }
262
263
264 /*
265 * Return dispatch function address the named static (built-in) function.
266 * Return NULL if function not found.
267 */
268 static GLvoid *
269 get_static_proc_address(const char *funcName)
270 {
271 GLuint i = get_static_proc_offset(funcName);
272 if (i >= 0)
273 return static_functions[i].Address;
274 else
275 return NULL;
276 }
277
278
279
280 /**********************************************************************
281 * Extension function management.
282 */
283
284
285 struct _glapi_ext_entrypoint {
286 const char *Name; /* the extension function's name */
287 GLuint Offset; /* relative to start of dispatch table */
288 GLvoid *Address; /* address of dispatch function */
289 };
290
291 static struct _glapi_ext_entrypoint ExtEntryTable[_GLAPI_EXTRA_SLOTS];
292 static GLuint NumExtEntryPoints = 0;
293
294
295
296 /*
297 * Generate a dispatch function (entrypoint) which jumps through
298 * the given slot number (offset) in the current dispatch table.
299 */
300 static void *
301 generate_entrypoint(GLuint offset)
302 {
303 /* XXX need to generate some assembly code here */
304
305 return NULL;
306 }
307
308
309
310 /*
311 * Add a new extension function entrypoint.
312 * Return: GL_TRUE = success or GL_FALSE = failure
313 */
314 GLboolean
315 _glapi_add_entrypoint(const char *funcName, GLuint offset)
316 {
317 GLint index;
318
319 /* Make sure we don't try to add a new entrypoint after someone
320 * has already called _glapi_get_dispatch_table_size()! If that's
321 * happened the caller's information will now be out of date.
322 */
323 assert(!GetSizeCalled);
324
325 /* first check if the named function is already statically present */
326 index = get_static_proc_offset(funcName);
327
328 if (index >= 0) {
329 assert(index == offset);
330 return GL_TRUE;
331 }
332 /* else if (offset < _glapi_get_dispatch_table_size()) { */
333 else {
334 /* be sure index and name match known data */
335 GLuint i;
336 for (i = 0; i < NumExtEntryPoints; i++) {
337 if (strcmp(ExtEntryTable[i].Name, funcName) == 0) {
338 /* function already registered with api */
339 if (ExtEntryTable[i].Offset == offset) {
340 return GL_TRUE; /* offsets match */
341 }
342 else {
343 return GL_FALSE; /* bad offset! */
344 }
345 }
346 }
347 assert(NumExtEntryPoints < _GLAPI_EXTRA_SLOTS);
348 ExtEntryTable[NumExtEntryPoints].Name = strdup(funcName);
349 ExtEntryTable[NumExtEntryPoints].Offset = offset;
350 ExtEntryTable[NumExtEntryPoints].Address = generate_entrypoint(offset);
351 NumExtEntryPoints++;
352
353 if (offset > MaxDispatchOffset)
354 MaxDispatchOffset = offset;
355
356 return GL_TRUE;
357 }
358 /*
359 else {
360 return GL_FALSE;
361 }
362 */
363 }
364
365
366
367 /*
368 * Return offset of entrypoint for named function within dispatch table.
369 */
370 GLint
371 _glapi_get_proc_offset(const char *funcName)
372 {
373 /* search extension functions first */
374 GLint i;
375 for (i = 0; i < NumExtEntryPoints; i++) {
376 if (strcmp(ExtEntryTable[i].Name, funcName) == 0) {
377 return ExtEntryTable[i].Offset;
378 }
379 }
380
381 /* search static functions */
382 return get_static_proc_offset(funcName);
383 }
384
385
386
387 /*
388 * Return entrypoint for named function.
389 */
390 const GLvoid *
391 _glapi_get_proc_address(const char *funcName)
392 {
393 /* search extension functions first */
394 GLint i;
395 for (i = 0; i < NumExtEntryPoints; i++) {
396 if (strcmp(ExtEntryTable[i].Name, funcName) == 0) {
397 return ExtEntryTable[i].Address;
398 }
399 }
400
401 /* search static functions */
402 return get_static_proc_address(funcName);
403 }
404
405
406
407
408 /*
409 * Return the name of the function at the given dispatch offset.
410 * This is only intended for debugging.
411 */
412 const char *
413 _glapi_get_proc_name(GLuint offset)
414 {
415 GLuint n = sizeof(static_functions) / sizeof(struct name_address_pair);
416 if (offset < n) {
417 return static_functions[offset].Name;
418 }
419 else {
420 /* search added extension functions */
421 GLuint i;
422 for (i = 0; i < NumExtEntryPoints; i++) {
423 if (ExtEntryTable[i].Offset == offset) {
424 return ExtEntryTable[i].Name;
425 }
426 }
427 return NULL;
428 }
429 }
430
431
432
433 /*
434 * Make sure there are no NULL pointers in the given dispatch table.
435 * Intented for debugging purposes.
436 */
437 void
438 _glapi_check_table(const struct _glapi_table *table)
439 {
440 const GLuint entries = _glapi_get_dispatch_table_size();
441 const void **tab = (const void **) table;
442 GLuint i;
443 for (i = 1; i < entries; i++) {
444 assert(tab[i]);
445 }
446
447 /* Do some spot checks to be sure that the dispatch table
448 * slots are assigned correctly.
449 */
450 {
451 GLuint BeginOffset = _glapi_get_proc_offset("glBegin");
452 char *BeginFunc = (char*) &table->Begin;
453 GLuint offset = (BeginFunc - (char *) table) / sizeof(void *);
454 assert(BeginOffset == _gloffset_Begin);
455 assert(BeginOffset == offset);
456 }
457 {
458 GLuint viewportOffset = _glapi_get_proc_offset("glViewport");
459 char *viewportFunc = (char*) &table->Viewport;
460 GLuint offset = (viewportFunc - (char *) table) / sizeof(void *);
461 assert(viewportOffset == _gloffset_Viewport);
462 assert(viewportOffset == offset);
463 }
464 {
465 GLuint VertexPointerOffset = _glapi_get_proc_offset("glVertexPointer");
466 char *VertexPointerFunc = (char*) &table->VertexPointer;
467 GLuint offset = (VertexPointerFunc - (char *) table) / sizeof(void *);
468 assert(VertexPointerOffset == _gloffset_VertexPointer);
469 assert(VertexPointerOffset == offset);
470 }
471 {
472 GLuint ResetMinMaxOffset = _glapi_get_proc_offset("glResetMinmax");
473 char *ResetMinMaxFunc = (char*) &table->ResetMinmax;
474 GLuint offset = (ResetMinMaxFunc - (char *) table) / sizeof(void *);
475 assert(ResetMinMaxOffset == _gloffset_ResetMinmax);
476 assert(ResetMinMaxOffset == offset);
477 }
478 {
479 GLuint blendColorOffset = _glapi_get_proc_offset("glBlendColorEXT");
480 char *blendColorFunc = (char*) &table->BlendColorEXT;
481 GLuint offset = (blendColorFunc - (char *) table) / sizeof(void *);
482 assert(blendColorOffset == _gloffset_BlendColorEXT);
483 assert(blendColorOffset == offset);
484 }
485 {
486 GLuint istextureOffset = _glapi_get_proc_offset("glIsTextureEXT");
487 char *istextureFunc = (char*) &table->IsTextureEXT;
488 GLuint offset = (istextureFunc - (char *) table) / sizeof(void *);
489 assert(istextureOffset == _gloffset_IsTextureEXT);
490 assert(istextureOffset == offset);
491 }
492 }
493
494
495
496 /**********************************************************************
497 * Generate the GL entrypoint functions here.
498 */
499
500 #define KEYWORD1
501 #define KEYWORD2 GLAPIENTRY
502 #ifdef USE_MGL_NAMESPACE
503 #define NAME(func) mgl##func
504 #else
505 #define NAME(func) gl##func
506 #endif
507
508 #define DISPATCH_SETUP \
509 const struct _glapi_table *dispatch; \
510 if (_glapi_ThreadSafe) { \
511 dispatch = _glapi_get_dispatch(); \
512 } \
513 else { \
514 dispatch = Dispatch; \
515 }
516
517 #define DISPATCH(FUNC, ARGS) (dispatch->FUNC) ARGS
518
519
520
521
522 #include "glapitemp.h"
523
524
525
526 /*
527 * For each entry in static_functions[] which use this function
528 * we should implement a dispatch function in glapitemp.h and
529 * in glapinoop.c
530 */
531 static void NotImplemented(void)
532 {
533 }
534
535
536
537 static struct name_address_pair static_functions[] = {
538 { "NotImplemented", (GLvoid *) NotImplemented },
539
540 /* GL 1.1 */
541 { "glAccum", (GLvoid *) glAccum },
542 { "glAlphaFunc", (GLvoid *) glAlphaFunc },
543 { "glBegin", (GLvoid *) glBegin },
544 { "glBitmap", (GLvoid *) glBitmap },
545 { "glBlendFunc", (GLvoid *) glBlendFunc },
546 { "glCallList", (GLvoid *) glCallList },
547 { "glCallLists", (GLvoid *) glCallLists },
548 { "glClear", (GLvoid *) glClear },
549 { "glClearAccum", (GLvoid *) glClearAccum },
550 { "glClearColor", (GLvoid *) glClearColor },
551 { "glClearDepth", (GLvoid *) glClearDepth },
552 { "glClearIndex", (GLvoid *) glClearIndex },
553 { "glClearStencil", (GLvoid *) glClearStencil },
554 { "glClipPlane", (GLvoid *) glClipPlane },
555 { "glColor3b", (GLvoid *) glColor3b },
556 { "glColor3bv", (GLvoid *) glColor3bv },
557 { "glColor3d", (GLvoid *) glColor3d },
558 { "glColor3dv", (GLvoid *) glColor3dv },
559 { "glColor3f", (GLvoid *) glColor3f },
560 { "glColor3fv", (GLvoid *) glColor3fv },
561 { "glColor3i", (GLvoid *) glColor3i },
562 { "glColor3iv", (GLvoid *) glColor3iv },
563 { "glColor3s", (GLvoid *) glColor3s },
564 { "glColor3sv", (GLvoid *) glColor3sv },
565 { "glColor3ub", (GLvoid *) glColor3ub },
566 { "glColor3ubv", (GLvoid *) glColor3ubv },
567 { "glColor3ui", (GLvoid *) glColor3ui },
568 { "glColor3uiv", (GLvoid *) glColor3uiv },
569 { "glColor3us", (GLvoid *) glColor3us },
570 { "glColor3usv", (GLvoid *) glColor3usv },
571 { "glColor4b", (GLvoid *) glColor4b },
572 { "glColor4bv", (GLvoid *) glColor4bv },
573 { "glColor4d", (GLvoid *) glColor4d },
574 { "glColor4dv", (GLvoid *) glColor4dv },
575 { "glColor4f", (GLvoid *) glColor4f },
576 { "glColor4fv", (GLvoid *) glColor4fv },
577 { "glColor4i", (GLvoid *) glColor4i },
578 { "glColor4iv", (GLvoid *) glColor4iv },
579 { "glColor4s", (GLvoid *) glColor4s },
580 { "glColor4sv", (GLvoid *) glColor4sv },
581 { "glColor4ub", (GLvoid *) glColor4ub },
582 { "glColor4ubv", (GLvoid *) glColor4ubv },
583 { "glColor4ui", (GLvoid *) glColor4ui },
584 { "glColor4uiv", (GLvoid *) glColor4uiv },
585 { "glColor4us", (GLvoid *) glColor4us },
586 { "glColor4usv", (GLvoid *) glColor4usv },
587 { "glColorMask", (GLvoid *) glColorMask },
588 { "glColorMaterial", (GLvoid *) glColorMaterial },
589 { "glCopyPixels", (GLvoid *) glCopyPixels },
590 { "glCullFace", (GLvoid *) glCullFace },
591 { "glDeleteLists", (GLvoid *) glDeleteLists },
592 { "glDepthFunc", (GLvoid *) glDepthFunc },
593 { "glDepthMask", (GLvoid *) glDepthMask },
594 { "glDepthRange", (GLvoid *) glDepthRange },
595 { "glDisable", (GLvoid *) glDisable },
596 { "glDrawBuffer", (GLvoid *) glDrawBuffer },
597 { "glDrawPixels", (GLvoid *) glDrawPixels },
598 { "glEdgeFlag", (GLvoid *) glEdgeFlag },
599 { "glEdgeFlagv", (GLvoid *) glEdgeFlagv },
600 { "glEnable", (GLvoid *) glEnable },
601 { "glEnd", (GLvoid *) glEnd },
602 { "glEndList", (GLvoid *) glEndList },
603 { "glEvalCoord1d", (GLvoid *) glEvalCoord1d },
604 { "glEvalCoord1dv", (GLvoid *) glEvalCoord1dv },
605 { "glEvalCoord1f", (GLvoid *) glEvalCoord1f },
606 { "glEvalCoord1fv", (GLvoid *) glEvalCoord1fv },
607 { "glEvalCoord2d", (GLvoid *) glEvalCoord2d },
608 { "glEvalCoord2dv", (GLvoid *) glEvalCoord2dv },
609 { "glEvalCoord2f", (GLvoid *) glEvalCoord2f },
610 { "glEvalCoord2fv", (GLvoid *) glEvalCoord2fv },
611 { "glEvalMesh1", (GLvoid *) glEvalMesh1 },
612 { "glEvalMesh2", (GLvoid *) glEvalMesh2 },
613 { "glEvalPoint1", (GLvoid *) glEvalPoint1 },
614 { "glEvalPoint2", (GLvoid *) glEvalPoint2 },
615 { "glFeedbackBuffer", (GLvoid *) glFeedbackBuffer },
616 { "glFinish", (GLvoid *) glFinish },
617 { "glFlush", (GLvoid *) glFlush },
618 { "glFogf", (GLvoid *) glFogf },
619 { "glFogfv", (GLvoid *) glFogfv },
620 { "glFogi", (GLvoid *) glFogi },
621 { "glFogiv", (GLvoid *) glFogiv },
622 { "glFrontFace", (GLvoid *) glFrontFace },
623 { "glFrustum", (GLvoid *) glFrustum },
624 { "glGenLists", (GLvoid *) glGenLists },
625 { "glGetBooleanv", (GLvoid *) glGetBooleanv },
626 { "glGetClipPlane", (GLvoid *) glGetClipPlane },
627 { "glGetDoublev", (GLvoid *) glGetDoublev },
628 { "glGetError", (GLvoid *) glGetError },
629 { "glGetFloatv", (GLvoid *) glGetFloatv },
630 { "glGetIntegerv", (GLvoid *) glGetIntegerv },
631 { "glGetLightfv", (GLvoid *) glGetLightfv },
632 { "glGetLightiv", (GLvoid *) glGetLightiv },
633 { "glGetMapdv", (GLvoid *) glGetMapdv },
634 { "glGetMapfv", (GLvoid *) glGetMapfv },
635 { "glGetMapiv", (GLvoid *) glGetMapiv },
636 { "glGetMaterialfv", (GLvoid *) glGetMaterialfv },
637 { "glGetMaterialiv", (GLvoid *) glGetMaterialiv },
638 { "glGetPixelMapfv", (GLvoid *) glGetPixelMapfv },
639 { "glGetPixelMapuiv", (GLvoid *) glGetPixelMapuiv },
640 { "glGetPixelMapusv", (GLvoid *) glGetPixelMapusv },
641 { "glGetPolygonStipple", (GLvoid *) glGetPolygonStipple },
642 { "glGetString", (GLvoid *) glGetString },
643 { "glGetTexEnvfv", (GLvoid *) glGetTexEnvfv },
644 { "glGetTexEnviv", (GLvoid *) glGetTexEnviv },
645 { "glGetTexGendv", (GLvoid *) glGetTexGendv },
646 { "glGetTexGenfv", (GLvoid *) glGetTexGenfv },
647 { "glGetTexGeniv", (GLvoid *) glGetTexGeniv },
648 { "glGetTexImage", (GLvoid *) glGetTexImage },
649 { "glGetTexLevelParameterfv", (GLvoid *) glGetTexLevelParameterfv },
650 { "glGetTexLevelParameteriv", (GLvoid *) glGetTexLevelParameteriv },
651 { "glGetTexParameterfv", (GLvoid *) glGetTexParameterfv },
652 { "glGetTexParameteriv", (GLvoid *) glGetTexParameteriv },
653 { "glHint", (GLvoid *) glHint },
654 { "glIndexMask", (GLvoid *) glIndexMask },
655 { "glIndexd", (GLvoid *) glIndexd },
656 { "glIndexdv", (GLvoid *) glIndexdv },
657 { "glIndexf", (GLvoid *) glIndexf },
658 { "glIndexfv", (GLvoid *) glIndexfv },
659 { "glIndexi", (GLvoid *) glIndexi },
660 { "glIndexiv", (GLvoid *) glIndexiv },
661 { "glIndexs", (GLvoid *) glIndexs },
662 { "glIndexsv", (GLvoid *) glIndexsv },
663 { "glInitNames", (GLvoid *) glInitNames },
664 { "glIsEnabled", (GLvoid *) glIsEnabled },
665 { "glIsList", (GLvoid *) glIsList },
666 { "glLightModelf", (GLvoid *) glLightModelf },
667 { "glLightModelfv", (GLvoid *) glLightModelfv },
668 { "glLightModeli", (GLvoid *) glLightModeli },
669 { "glLightModeliv", (GLvoid *) glLightModeliv },
670 { "glLightf", (GLvoid *) glLightf },
671 { "glLightfv", (GLvoid *) glLightfv },
672 { "glLighti", (GLvoid *) glLighti },
673 { "glLightiv", (GLvoid *) glLightiv },
674 { "glLineStipple", (GLvoid *) glLineStipple },
675 { "glLineWidth", (GLvoid *) glLineWidth },
676 { "glListBase", (GLvoid *) glListBase },
677 { "glLoadIdentity", (GLvoid *) glLoadIdentity },
678 { "glLoadMatrixd", (GLvoid *) glLoadMatrixd },
679 { "glLoadMatrixf", (GLvoid *) glLoadMatrixf },
680 { "glLoadName", (GLvoid *) glLoadName },
681 { "glLogicOp", (GLvoid *) glLogicOp },
682 { "glMap1d", (GLvoid *) glMap1d },
683 { "glMap1f", (GLvoid *) glMap1f },
684 { "glMap2d", (GLvoid *) glMap2d },
685 { "glMap2f", (GLvoid *) glMap2f },
686 { "glMapGrid1d", (GLvoid *) glMapGrid1d },
687 { "glMapGrid1f", (GLvoid *) glMapGrid1f },
688 { "glMapGrid2d", (GLvoid *) glMapGrid2d },
689 { "glMapGrid2f", (GLvoid *) glMapGrid2f },
690 { "glMaterialf", (GLvoid *) glMaterialf },
691 { "glMaterialfv", (GLvoid *) glMaterialfv },
692 { "glMateriali", (GLvoid *) glMateriali },
693 { "glMaterialiv", (GLvoid *) glMaterialiv },
694 { "glMatrixMode", (GLvoid *) glMatrixMode },
695 { "glMultMatrixd", (GLvoid *) glMultMatrixd },
696 { "glMultMatrixf", (GLvoid *) glMultMatrixf },
697 { "glNewList", (GLvoid *) glNewList },
698 { "glNormal3b", (GLvoid *) glNormal3b },
699 { "glNormal3bv", (GLvoid *) glNormal3bv },
700 { "glNormal3d", (GLvoid *) glNormal3d },
701 { "glNormal3dv", (GLvoid *) glNormal3dv },
702 { "glNormal3f", (GLvoid *) glNormal3f },
703 { "glNormal3fv", (GLvoid *) glNormal3fv },
704 { "glNormal3i", (GLvoid *) glNormal3i },
705 { "glNormal3iv", (GLvoid *) glNormal3iv },
706 { "glNormal3s", (GLvoid *) glNormal3s },
707 { "glNormal3sv", (GLvoid *) glNormal3sv },
708 { "glOrtho", (GLvoid *) glOrtho },
709 { "glPassThrough", (GLvoid *) glPassThrough },
710 { "glPixelMapfv", (GLvoid *) glPixelMapfv },
711 { "glPixelMapuiv", (GLvoid *) glPixelMapuiv },
712 { "glPixelMapusv", (GLvoid *) glPixelMapusv },
713 { "glPixelStoref", (GLvoid *) glPixelStoref },
714 { "glPixelStorei", (GLvoid *) glPixelStorei },
715 { "glPixelTransferf", (GLvoid *) glPixelTransferf },
716 { "glPixelTransferi", (GLvoid *) glPixelTransferi },
717 { "glPixelZoom", (GLvoid *) glPixelZoom },
718 { "glPointSize", (GLvoid *) glPointSize },
719 { "glPolygonMode", (GLvoid *) glPolygonMode },
720 { "glPolygonOffset", (GLvoid *) glPolygonOffset },
721 { "glPolygonStipple", (GLvoid *) glPolygonStipple },
722 { "glPopAttrib", (GLvoid *) glPopAttrib },
723 { "glPopMatrix", (GLvoid *) glPopMatrix },
724 { "glPopName", (GLvoid *) glPopName },
725 { "glPushAttrib", (GLvoid *) glPushAttrib },
726 { "glPushMatrix", (GLvoid *) glPushMatrix },
727 { "glPushName", (GLvoid *) glPushName },
728 { "glRasterPos2d", (GLvoid *) glRasterPos2d },
729 { "glRasterPos2dv", (GLvoid *) glRasterPos2dv },
730 { "glRasterPos2f", (GLvoid *) glRasterPos2f },
731 { "glRasterPos2fv", (GLvoid *) glRasterPos2fv },
732 { "glRasterPos2i", (GLvoid *) glRasterPos2i },
733 { "glRasterPos2iv", (GLvoid *) glRasterPos2iv },
734 { "glRasterPos2s", (GLvoid *) glRasterPos2s },
735 { "glRasterPos2sv", (GLvoid *) glRasterPos2sv },
736 { "glRasterPos3d", (GLvoid *) glRasterPos3d },
737 { "glRasterPos3dv", (GLvoid *) glRasterPos3dv },
738 { "glRasterPos3f", (GLvoid *) glRasterPos3f },
739 { "glRasterPos3fv", (GLvoid *) glRasterPos3fv },
740 { "glRasterPos3i", (GLvoid *) glRasterPos3i },
741 { "glRasterPos3iv", (GLvoid *) glRasterPos3iv },
742 { "glRasterPos3s", (GLvoid *) glRasterPos3s },
743 { "glRasterPos3sv", (GLvoid *) glRasterPos3sv },
744 { "glRasterPos4d", (GLvoid *) glRasterPos4d },
745 { "glRasterPos4dv", (GLvoid *) glRasterPos4dv },
746 { "glRasterPos4f", (GLvoid *) glRasterPos4f },
747 { "glRasterPos4fv", (GLvoid *) glRasterPos4fv },
748 { "glRasterPos4i", (GLvoid *) glRasterPos4i },
749 { "glRasterPos4iv", (GLvoid *) glRasterPos4iv },
750 { "glRasterPos4s", (GLvoid *) glRasterPos4s },
751 { "glRasterPos4sv", (GLvoid *) glRasterPos4sv },
752 { "glReadBuffer", (GLvoid *) glReadBuffer },
753 { "glReadPixels", (GLvoid *) glReadPixels },
754 { "glRectd", (GLvoid *) glRectd },
755 { "glRectdv", (GLvoid *) glRectdv },
756 { "glRectf", (GLvoid *) glRectf },
757 { "glRectfv", (GLvoid *) glRectfv },
758 { "glRecti", (GLvoid *) glRecti },
759 { "glRectiv", (GLvoid *) glRectiv },
760 { "glRects", (GLvoid *) glRects },
761 { "glRectsv", (GLvoid *) glRectsv },
762 { "glRenderMode", (GLvoid *) glRenderMode },
763 { "glRotated", (GLvoid *) glRotated },
764 { "glRotatef", (GLvoid *) glRotatef },
765 { "glScaled", (GLvoid *) glScaled },
766 { "glScalef", (GLvoid *) glScalef },
767 { "glScissor", (GLvoid *) glScissor },
768 { "glSelectBuffer", (GLvoid *) glSelectBuffer },
769 { "glShadeModel", (GLvoid *) glShadeModel },
770 { "glStencilFunc", (GLvoid *) glStencilFunc },
771 { "glStencilMask", (GLvoid *) glStencilMask },
772 { "glStencilOp", (GLvoid *) glStencilOp },
773 { "glTexCoord1d", (GLvoid *) glTexCoord1d },
774 { "glTexCoord1dv", (GLvoid *) glTexCoord1dv },
775 { "glTexCoord1f", (GLvoid *) glTexCoord1f },
776 { "glTexCoord1fv", (GLvoid *) glTexCoord1fv },
777 { "glTexCoord1i", (GLvoid *) glTexCoord1i },
778 { "glTexCoord1iv", (GLvoid *) glTexCoord1iv },
779 { "glTexCoord1s", (GLvoid *) glTexCoord1s },
780 { "glTexCoord1sv", (GLvoid *) glTexCoord1sv },
781 { "glTexCoord2d", (GLvoid *) glTexCoord2d },
782 { "glTexCoord2dv", (GLvoid *) glTexCoord2dv },
783 { "glTexCoord2f", (GLvoid *) glTexCoord2f },
784 { "glTexCoord2fv", (GLvoid *) glTexCoord2fv },
785 { "glTexCoord2i", (GLvoid *) glTexCoord2i },
786 { "glTexCoord2iv", (GLvoid *) glTexCoord2iv },
787 { "glTexCoord2s", (GLvoid *) glTexCoord2s },
788 { "glTexCoord2sv", (GLvoid *) glTexCoord2sv },
789 { "glTexCoord3d", (GLvoid *) glTexCoord3d },
790 { "glTexCoord3dv", (GLvoid *) glTexCoord3dv },
791 { "glTexCoord3f", (GLvoid *) glTexCoord3f },
792 { "glTexCoord3fv", (GLvoid *) glTexCoord3fv },
793 { "glTexCoord3i", (GLvoid *) glTexCoord3i },
794 { "glTexCoord3iv", (GLvoid *) glTexCoord3iv },
795 { "glTexCoord3s", (GLvoid *) glTexCoord3s },
796 { "glTexCoord3sv", (GLvoid *) glTexCoord3sv },
797 { "glTexCoord4d", (GLvoid *) glTexCoord4d },
798 { "glTexCoord4dv", (GLvoid *) glTexCoord4dv },
799 { "glTexCoord4f", (GLvoid *) glTexCoord4f },
800 { "glTexCoord4fv", (GLvoid *) glTexCoord4fv },
801 { "glTexCoord4i", (GLvoid *) glTexCoord4i },
802 { "glTexCoord4iv", (GLvoid *) glTexCoord4iv },
803 { "glTexCoord4s", (GLvoid *) glTexCoord4s },
804 { "glTexCoord4sv", (GLvoid *) glTexCoord4sv },
805 { "glTexEnvf", (GLvoid *) glTexEnvf },
806 { "glTexEnvfv", (GLvoid *) glTexEnvfv },
807 { "glTexEnvi", (GLvoid *) glTexEnvi },
808 { "glTexEnviv", (GLvoid *) glTexEnviv },
809 { "glTexGend", (GLvoid *) glTexGend },
810 { "glTexGendv", (GLvoid *) glTexGendv },
811 { "glTexGenf", (GLvoid *) glTexGenf },
812 { "glTexGenfv", (GLvoid *) glTexGenfv },
813 { "glTexGeni", (GLvoid *) glTexGeni },
814 { "glTexGeniv", (GLvoid *) glTexGeniv },
815 { "glTexImage1D", (GLvoid *) glTexImage1D },
816 { "glTexImage2D", (GLvoid *) glTexImage2D },
817 { "glTexParameterf", (GLvoid *) glTexParameterf },
818 { "glTexParameterfv", (GLvoid *) glTexParameterfv },
819 { "glTexParameteri", (GLvoid *) glTexParameteri },
820 { "glTexParameteriv", (GLvoid *) glTexParameteriv },
821 { "glTranslated", (GLvoid *) glTranslated },
822 { "glTranslatef", (GLvoid *) glTranslatef },
823 { "glVertex2d", (GLvoid *) glVertex2d },
824 { "glVertex2dv", (GLvoid *) glVertex2dv },
825 { "glVertex2f", (GLvoid *) glVertex2f },
826 { "glVertex2fv", (GLvoid *) glVertex2fv },
827 { "glVertex2i", (GLvoid *) glVertex2i },
828 { "glVertex2iv", (GLvoid *) glVertex2iv },
829 { "glVertex2s", (GLvoid *) glVertex2s },
830 { "glVertex2sv", (GLvoid *) glVertex2sv },
831 { "glVertex3d", (GLvoid *) glVertex3d },
832 { "glVertex3dv", (GLvoid *) glVertex3dv },
833 { "glVertex3f", (GLvoid *) glVertex3f },
834 { "glVertex3fv", (GLvoid *) glVertex3fv },
835 { "glVertex3i", (GLvoid *) glVertex3i },
836 { "glVertex3iv", (GLvoid *) glVertex3iv },
837 { "glVertex3s", (GLvoid *) glVertex3s },
838 { "glVertex3sv", (GLvoid *) glVertex3sv },
839 { "glVertex4d", (GLvoid *) glVertex4d },
840 { "glVertex4dv", (GLvoid *) glVertex4dv },
841 { "glVertex4f", (GLvoid *) glVertex4f },
842 { "glVertex4fv", (GLvoid *) glVertex4fv },
843 { "glVertex4i", (GLvoid *) glVertex4i },
844 { "glVertex4iv", (GLvoid *) glVertex4iv },
845 { "glVertex4s", (GLvoid *) glVertex4s },
846 { "glVertex4sv", (GLvoid *) glVertex4sv },
847 { "glViewport", (GLvoid *) glViewport },
848
849 /* GL 1.1 */
850 { "glAreTexturesResident", (GLvoid *) glAreTexturesResident },
851 { "glArrayElement", (GLvoid *) glArrayElement },
852 { "glBindTexture", (GLvoid *) glBindTexture },
853 { "glColorPointer", (GLvoid *) glColorPointer },
854 { "glCopyTexImage1D", (GLvoid *) glCopyTexImage1D },
855 { "glCopyTexImage2D", (GLvoid *) glCopyTexImage2D },
856 { "glCopyTexSubImage1D", (GLvoid *) glCopyTexSubImage1D },
857 { "glCopyTexSubImage2D", (GLvoid *) glCopyTexSubImage2D },
858 { "glDeleteTextures", (GLvoid *) glDeleteTextures },
859 { "glDisableClientState", (GLvoid *) glDisableClientState },
860 { "glDrawArrays", (GLvoid *) glDrawArrays },
861 { "glDrawElements", (GLvoid *) glDrawElements },
862 { "glEdgeFlagPointer", (GLvoid *) glEdgeFlagPointer },
863 { "glEnableClientState", (GLvoid *) glEnableClientState },
864 { "glGenTextures", (GLvoid *) glGenTextures },
865 { "glGetPointerv", (GLvoid *) glGetPointerv },
866 { "glIndexPointer", (GLvoid *) glIndexPointer },
867 { "glIndexub", (GLvoid *) glIndexub },
868 { "glIndexubv", (GLvoid *) glIndexubv },
869 { "glInterleavedArrays", (GLvoid *) glInterleavedArrays },
870 { "glIsTexture", (GLvoid *) glIsTexture },
871 { "glNormalPointer", (GLvoid *) glNormalPointer },
872 { "glPopClientAttrib", (GLvoid *) glPopClientAttrib },
873 { "glPrioritizeTextures", (GLvoid *) glPrioritizeTextures },
874 { "glPushClientAttrib", (GLvoid *) glPushClientAttrib },
875 { "glTexCoordPointer", (GLvoid *) glTexCoordPointer },
876 { "glTexSubImage1D", (GLvoid *) glTexSubImage1D },
877 { "glTexSubImage2D", (GLvoid *) glTexSubImage2D },
878 { "glVertexPointer", (GLvoid *) glVertexPointer },
879
880 /* GL 1.2 */
881 { "glCopyTexSubImage3D", (GLvoid *) glCopyTexSubImage3D },
882 { "glDrawRangeElements", (GLvoid *) glDrawRangeElements },
883 { "glTexImage3D", (GLvoid *) glTexImage3D },
884 { "glTexSubImage3D", (GLvoid *) glTexSubImage3D },
885
886 /* GL_ARB_imaging */
887 { "glBlendColor", (GLvoid *) glBlendColor },
888 { "glBlendEquation", (GLvoid *) glBlendEquation },
889 { "glColorSubTable", (GLvoid *) glColorSubTable },
890 { "glColorTable", (GLvoid *) glColorTable },
891 { "glColorTableParameterfv", (GLvoid *) glColorTableParameterfv },
892 { "glColorTableParameteriv", (GLvoid *) glColorTableParameteriv },
893 { "glConvolutionFilter1D", (GLvoid *) glConvolutionFilter1D },
894 { "glConvolutionFilter2D", (GLvoid *) glConvolutionFilter2D },
895 { "glConvolutionParameterf", (GLvoid *) glConvolutionParameterf },
896 { "glConvolutionParameterfv", (GLvoid *) glConvolutionParameterfv },
897 { "glConvolutionParameteri", (GLvoid *) glConvolutionParameteri },
898 { "glConvolutionParameteriv", (GLvoid *) glConvolutionParameteriv },
899 { "glCopyColorSubTable", (GLvoid *) glCopyColorSubTable },
900 { "glCopyColorTable", (GLvoid *) glCopyColorTable },
901 { "glCopyConvolutionFilter1D", (GLvoid *) glCopyConvolutionFilter1D },
902 { "glCopyConvolutionFilter2D", (GLvoid *) glCopyConvolutionFilter2D },
903 { "glGetColorTable", (GLvoid *) glGetColorTable },
904 { "glGetColorTableParameterfv", (GLvoid *) glGetColorTableParameterfv },
905 { "glGetColorTableParameteriv", (GLvoid *) glGetColorTableParameteriv },
906 { "glGetConvolutionFilter", (GLvoid *) glGetConvolutionFilter },
907 { "glGetConvolutionParameterfv", (GLvoid *) glGetConvolutionParameterfv },
908 { "glGetConvolutionParameteriv", (GLvoid *) glGetConvolutionParameteriv },
909 { "glGetHistogram", (GLvoid *) glGetHistogram },
910 { "glGetHistogramParameterfv", (GLvoid *) glGetHistogramParameterfv },
911 { "glGetHistogramParameteriv", (GLvoid *) glGetHistogramParameteriv },
912 { "glGetMinmax", (GLvoid *) glGetMinmax },
913 { "glGetMinmaxParameterfv", (GLvoid *) glGetMinmaxParameterfv },
914 { "glGetMinmaxParameteriv", (GLvoid *) glGetMinmaxParameteriv },
915 { "glGetSeparableFilter", (GLvoid *) glGetSeparableFilter },
916 { "glHistogram", (GLvoid *) glHistogram },
917 { "glMinmax", (GLvoid *) glMinmax },
918 { "glResetHistogram", (GLvoid *) glResetHistogram },
919 { "glResetMinmax", (GLvoid *) glResetMinmax },
920 { "glSeparableFilter2D", (GLvoid *) glSeparableFilter2D },
921
922 /* GL_ARB_multitexture */
923 { "glActiveTextureARB", (GLvoid *) glActiveTextureARB },
924 { "glClientActiveTextureARB", (GLvoid *) glClientActiveTextureARB },
925 { "glMultiTexCoord1dARB", (GLvoid *) glMultiTexCoord1dARB },
926 { "glMultiTexCoord1dvARB", (GLvoid *) glMultiTexCoord1dvARB },
927 { "glMultiTexCoord1fARB", (GLvoid *) glMultiTexCoord1fARB },
928 { "glMultiTexCoord1fvARB", (GLvoid *) glMultiTexCoord1fvARB },
929 { "glMultiTexCoord1iARB", (GLvoid *) glMultiTexCoord1iARB },
930 { "glMultiTexCoord1ivARB", (GLvoid *) glMultiTexCoord1ivARB },
931 { "glMultiTexCoord1sARB", (GLvoid *) glMultiTexCoord1sARB },
932 { "glMultiTexCoord1svARB", (GLvoid *) glMultiTexCoord1svARB },
933 { "glMultiTexCoord2dARB", (GLvoid *) glMultiTexCoord2dARB },
934 { "glMultiTexCoord2dvARB", (GLvoid *) glMultiTexCoord2dvARB },
935 { "glMultiTexCoord2fARB", (GLvoid *) glMultiTexCoord2fARB },
936 { "glMultiTexCoord2fvARB", (GLvoid *) glMultiTexCoord2fvARB },
937 { "glMultiTexCoord2iARB", (GLvoid *) glMultiTexCoord2iARB },
938 { "glMultiTexCoord2ivARB", (GLvoid *) glMultiTexCoord2ivARB },
939 { "glMultiTexCoord2sARB", (GLvoid *) glMultiTexCoord2sARB },
940 { "glMultiTexCoord2svARB", (GLvoid *) glMultiTexCoord2svARB },
941 { "glMultiTexCoord3dARB", (GLvoid *) glMultiTexCoord3dARB },
942 { "glMultiTexCoord3dvARB", (GLvoid *) glMultiTexCoord3dvARB },
943 { "glMultiTexCoord3fARB", (GLvoid *) glMultiTexCoord3fARB },
944 { "glMultiTexCoord3fvARB", (GLvoid *) glMultiTexCoord3fvARB },
945 { "glMultiTexCoord3iARB", (GLvoid *) glMultiTexCoord3iARB },
946 { "glMultiTexCoord3ivARB", (GLvoid *) glMultiTexCoord3ivARB },
947 { "glMultiTexCoord3sARB", (GLvoid *) glMultiTexCoord3sARB },
948 { "glMultiTexCoord3svARB", (GLvoid *) glMultiTexCoord3svARB },
949 { "glMultiTexCoord4dARB", (GLvoid *) glMultiTexCoord4dARB },
950 { "glMultiTexCoord4dvARB", (GLvoid *) glMultiTexCoord4dvARB },
951 { "glMultiTexCoord4fARB", (GLvoid *) glMultiTexCoord4fARB },
952 { "glMultiTexCoord4fvARB", (GLvoid *) glMultiTexCoord4fvARB },
953 { "glMultiTexCoord4iARB", (GLvoid *) glMultiTexCoord4iARB },
954 { "glMultiTexCoord4ivARB", (GLvoid *) glMultiTexCoord4ivARB },
955 { "glMultiTexCoord4sARB", (GLvoid *) glMultiTexCoord4sARB },
956 { "glMultiTexCoord4svARB", (GLvoid *) glMultiTexCoord4svARB },
957
958 /* 2. GL_EXT_blend_color */
959 { "glBlendColorEXT", (GLvoid *) glBlendColorEXT },
960
961 /* 3. GL_EXT_polygon_offset */
962 { "glPolygonOffsetEXT", (GLvoid *) glPolygonOffsetEXT },
963
964 /* 6. GL_EXT_texture3D */
965 { "glCopyTexSubImage3DEXT", (GLvoid *) glCopyTexSubImage3DEXT },
966 { "glTexImage3DEXT", (GLvoid *) glTexImage3DEXT },
967 { "glTexSubImage3DEXT", (GLvoid *) glTexSubImage3DEXT },
968
969 /* 7. GL_SGI_texture_filter4 */
970 { "glGetTexFilterFuncSGIS", (GLvoid *) glGetTexFilterFuncSGIS },
971 { "glTexFilterFuncSGIS", (GLvoid *) glTexFilterFuncSGIS },
972
973 /* 9. GL_EXT_subtexture */
974 { "glTexSubImage1DEXT", (GLvoid *) glTexSubImage1DEXT },
975 { "glTexSubImage2DEXT", (GLvoid *) glTexSubImage2DEXT },
976
977 /* 10. GL_EXT_copy_texture */
978 { "glCopyTexImage1DEXT", (GLvoid *) glCopyTexImage1DEXT },
979 { "glCopyTexImage2DEXT", (GLvoid *) glCopyTexImage2DEXT },
980 { "glCopyTexSubImage1DEXT", (GLvoid *) glCopyTexSubImage1DEXT },
981 { "glCopyTexSubImage2DEXT", (GLvoid *) glCopyTexSubImage2DEXT },
982
983 /* 11. GL_EXT_histogram */
984 { "glGetHistogramEXT", (GLvoid *) glGetHistogramEXT },
985 { "glGetHistogramParameterfvEXT", (GLvoid *) glGetHistogramParameterfvEXT },
986 { "glGetHistogramParameterivEXT", (GLvoid *) glGetHistogramParameterivEXT },
987 { "glGetMinmaxEXT", (GLvoid *) glGetMinmaxEXT },
988 { "glGetMinmaxParameterfvEXT", (GLvoid *) glGetMinmaxParameterfvEXT },
989 { "glGetMinmaxParameterivEXT", (GLvoid *) glGetMinmaxParameterivEXT },
990 { "glHistogramEXT", (GLvoid *) glHistogramEXT },
991 { "glMinmaxEXT", (GLvoid *) glMinmaxEXT },
992 { "glResetHistogramEXT", (GLvoid *) glResetHistogramEXT },
993 { "glResetMinmaxEXT", (GLvoid *) glResetMinmaxEXT },
994
995 /* 12. GL_EXT_convolution */
996 { "glConvolutionFilter1DEXT", (GLvoid *) glConvolutionFilter1DEXT },
997 { "glConvolutionFilter2DEXT", (GLvoid *) glConvolutionFilter2DEXT },
998 { "glConvolutionParameterfEXT", (GLvoid *) glConvolutionParameterfEXT },
999 { "glConvolutionParameterfvEXT", (GLvoid *) glConvolutionParameterfvEXT },
1000 { "glConvolutionParameteriEXT", (GLvoid *) glConvolutionParameteriEXT },
1001 { "glConvolutionParameterivEXT", (GLvoid *) glConvolutionParameterivEXT },
1002 { "glCopyConvolutionFilter1DEXT", (GLvoid *) glCopyConvolutionFilter1DEXT },
1003 { "glCopyConvolutionFilter2DEXT", (GLvoid *) glCopyConvolutionFilter2DEXT },
1004 { "glGetConvolutionFilterEXT", (GLvoid *) glGetConvolutionFilterEXT },
1005 { "glGetConvolutionParameterivEXT", (GLvoid *) glGetConvolutionParameterivEXT },
1006 { "glGetConvolutionParameterfvEXT", (GLvoid *) glGetConvolutionParameterfvEXT },
1007 { "glGetSeparableFilterEXT", (GLvoid *) glGetSeparableFilterEXT },
1008 { "glSeparableFilter2DEXT", (GLvoid *) glSeparableFilter2DEXT },
1009
1010 /* 14. GL_SGI_color_table */
1011 { "glColorTableSGI", (GLvoid *) NotImplemented },
1012 { "glColorTableParameterfvSGI", (GLvoid *) NotImplemented },
1013 { "glColorTableParameterivSGI", (GLvoid *) NotImplemented },
1014 { "glCopyColorTableSGI", (GLvoid *) NotImplemented },
1015 { "glGetColorTableSGI", (GLvoid *) NotImplemented },
1016 { "glGetColorTableParameterfvSGI", (GLvoid *) NotImplemented },
1017 { "glGetColorTableParameterivSGI", (GLvoid *) NotImplemented },
1018
1019 /* 15. GL_SGIS_pixel_texture */
1020 { "glPixelTexGenParameterfSGIS", (GLvoid *) NotImplemented },
1021 { "glPixelTexGenParameteriSGIS", (GLvoid *) NotImplemented },
1022 { "glGetPixelTexGenParameterfvSGIS", (GLvoid *) NotImplemented },
1023 { "glGetPixelTexGenParameterivSGIS", (GLvoid *) NotImplemented },
1024
1025 /* 16. GL_SGIS_texture4D */
1026 { "glTexImage4DSGIS", (GLvoid *) NotImplemented },
1027 { "glTexSubImage4DSGIS", (GLvoid *) NotImplemented },
1028
1029 /* 20. GL_EXT_texture_object */
1030 { "glAreTexturesResidentEXT", (GLvoid *) glAreTexturesResidentEXT },
1031 { "glBindTextureEXT", (GLvoid *) glBindTextureEXT },
1032 { "glDeleteTexturesEXT", (GLvoid *) glDeleteTexturesEXT },
1033 { "glGenTexturesEXT", (GLvoid *) glGenTexturesEXT },
1034 { "glIsTextureEXT", (GLvoid *) glIsTextureEXT },
1035 { "glPrioritizeTexturesEXT", (GLvoid *) glPrioritizeTexturesEXT },
1036
1037 /* 21. GL_SGIS_detail_texture */
1038 { "glDetailTexFuncSGIS", (GLvoid *) NotImplemented },
1039 { "glGetDetailTexFuncSGIS", (GLvoid *) NotImplemented },
1040
1041 /* 22. GL_SGIS_sharpen_texture */
1042 { "glGetSharpenTexFuncSGIS", (GLvoid *) NotImplemented },
1043 { "glSharpenTexFuncSGIS", (GLvoid *) NotImplemented },
1044
1045 /* 25. GL_SGIS_multisample */
1046 { "glSampleMaskSGIS", (GLvoid *) NotImplemented },
1047 { "glSamplePatternSGIS", (GLvoid *) NotImplemented },
1048
1049 /* 30. GL_EXT_vertex_array */
1050 { "glArrayElementEXT", (GLvoid *) glArrayElementEXT },
1051 { "glColorPointerEXT", (GLvoid *) glColorPointerEXT },
1052 { "glDrawArraysEXT", (GLvoid *) glDrawArraysEXT },
1053 { "glEdgeFlagPointerEXT", (GLvoid *) glEdgeFlagPointerEXT },
1054 { "glGetPointervEXT", (GLvoid *) glGetPointervEXT },
1055 { "glIndexPointerEXT", (GLvoid *) glIndexPointerEXT },
1056 { "glNormalPointerEXT", (GLvoid *) glNormalPointerEXT },
1057 { "glTexCoordPointerEXT", (GLvoid *) glTexCoordPointerEXT },
1058 { "glVertexPointerEXT", (GLvoid *) glVertexPointerEXT },
1059
1060 /* 37. GL_EXT_blend_minmax */
1061 { "glBlendEquationEXT", (GLvoid *) glBlendEquationEXT },
1062
1063 /* 52. GL_SGIX_sprite */
1064 { "glSpriteParameterfSGIX", (GLvoid *) NotImplemented },
1065 { "glSpriteParameterfvSGIX", (GLvoid *) NotImplemented },
1066 { "glSpriteParameteriSGIX", (GLvoid *) NotImplemented },
1067 { "glSpriteParameterivSGIX", (GLvoid *) NotImplemented },
1068
1069 /* 54. GL_EXT_point_parameters */
1070 { "glPointParameterfEXT", (GLvoid *) NotImplemented },
1071 { "glPointParameterfvEXT", (GLvoid *) NotImplemented },
1072
1073 /* 55. GL_SGIX_instruments */
1074 { "glInstrumentsBufferSGIX", (GLvoid *) NotImplemented },
1075 { "glStartInstrumentsSGIX", (GLvoid *) NotImplemented },
1076 { "glStopInstrumentsSGIX", (GLvoid *) NotImplemented },
1077 { "glReadInstrumentsSGIX", (GLvoid *) NotImplemented },
1078 { "glPollInstrumentsSGIX", (GLvoid *) NotImplemented },
1079 { "glGetInstrumentsSGIX", (GLvoid *) NotImplemented },
1080
1081 /* 57. GL_SGIX_framezoom */
1082 { "glFrameZoomSGIX", (GLvoid *) NotImplemented },
1083
1084 /* 60. GL_SGIX_reference_plane */
1085 { "glReferencePlaneSGIX", (GLvoid *) NotImplemented },
1086
1087 /* 61. GL_SGIX_flush_raster */
1088 { "glFlushRasterSGIX", (GLvoid *) NotImplemented },
1089
1090 /* 66. GL_HP_image_transform */
1091 { "glGetImageTransformParameterfvHP", (GLvoid *) NotImplemented },
1092 { "glGetImageTransformParameterivHP", (GLvoid *) NotImplemented },
1093 { "glImageTransformParameterfHP", (GLvoid *) NotImplemented },
1094 { "glImageTransformParameterfvHP", (GLvoid *) NotImplemented },
1095 { "glImageTransformParameteriHP", (GLvoid *) NotImplemented },
1096 { "glImageTransformParameterivHP", (GLvoid *) NotImplemented },
1097
1098 /* 74. GL_EXT_color_subtable */
1099 { "glColorSubTableEXT", (GLvoid *) NotImplemented },
1100 { "glCopyColorSubTableEXT", (GLvoid *) NotImplemented },
1101
1102 /* 77. GL_PGI_misc_hints */
1103 { "glHintPGI", (GLvoid *) NotImplemented },
1104
1105 /* 78. GL_EXT_paletted_texture */
1106 { "glColorTableEXT", (GLvoid *) glColorTableEXT },
1107 { "glGetColorTableEXT", (GLvoid *) glGetColorTableEXT },
1108 { "glGetColorTableParameterfvEXT", (GLvoid *) glGetColorTableParameterfvEXT },
1109 { "glGetColorTableParameterivEXT", (GLvoid *) glGetColorTableParameterivEXT },
1110
1111 /* 80. GL_SGIX_list_priority */
1112 { "glGetListParameterfvSGIX", (GLvoid *) NotImplemented },
1113 { "glGetListParameterivSGIX", (GLvoid *) NotImplemented },
1114 { "glListParameterfSGIX", (GLvoid *) NotImplemented },
1115 { "glListParameterfvSGIX", (GLvoid *) NotImplemented },
1116 { "glListParameteriSGIX", (GLvoid *) NotImplemented },
1117 { "glListParameterivSGIX", (GLvoid *) NotImplemented },
1118
1119 /* 94. GL_EXT_index_material */
1120 { "glIndexMaterialEXT", (GLvoid *) NotImplemented },
1121
1122 /* 95. GL_EXT_index_func */
1123 { "glIndexFuncEXT", (GLvoid *) NotImplemented },
1124
1125 /* 97. GL_EXT_compiled_vertex_array */
1126 { "glLockArraysEXT", (GLvoid *) glLockArraysEXT },
1127 { "glUnlockArraysEXT", (GLvoid *) glUnlockArraysEXT },
1128
1129 /* 98. GL_EXT_cull_vertex */
1130 { "glCullParameterfvEXT", (GLvoid *) NotImplemented },
1131 { "glCullParameterdvEXT", (GLvoid *) NotImplemented },
1132
1133 /* 173. GL_EXT/INGR_blend_func_separate */
1134 { "glBlendFuncSeparateINGR", (GLvoid *) glBlendFuncSeparateINGR },
1135
1136 /* GL_MESA_window_pos */
1137 { "glWindowPos4fMESA", (GLvoid *) glWindowPos4fMESA },
1138
1139 /* GL_MESA_resize_buffers */
1140 { "glResizeBuffersMESA", (GLvoid *) glResizeBuffersMESA },
1141
1142 /* GL_ARB_transpose_matrix */
1143 { "glLoadTransposeMatrixdARB", (GLvoid *) glLoadTransposeMatrixdARB },
1144 { "glLoadTransposeMatrixfARB", (GLvoid *) glLoadTransposeMatrixfARB },
1145 { "glMultTransposeMatrixdARB", (GLvoid *) glMultTransposeMatrixdARB },
1146 { "glMultTransposeMatrixfARB", (GLvoid *) glMultTransposeMatrixfARB },
1147
1148 { NULL, NULL } /* end of list marker */
1149 };
1150