1 /* $Id: glapi.c,v 1.19 2000/01/05 04:36:17 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
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:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
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.
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.
40 #include <stdlib.h> /* to get NULL */
43 #include "glapinoop.h"
44 #include "glapioffsets.h"
45 #include "glapitable.h"
51 /* Flag to indicate whether thread-safe dispatch is enabled */
52 static GLboolean ThreadSafe
= GL_FALSE
;
54 /* This is used when thread safety is disabled */
55 static struct _glapi_table
*Dispatch
= &__glapi_noop_table
;
57 /* Used when thread safety disabled */
58 void *_glapi_CurrentContext
= NULL
;
65 static _glthread_TSD DispatchTSD
;
67 static void dispatch_thread_init()
69 _glthread_InitTSD(&DispatchTSD
);
73 static _glthread_TSD ContextTSD
;
75 static void context_thread_init()
77 _glthread_InitTSD(&ContextTSD
);
84 static GLuint MaxDispatchOffset
= sizeof(struct _glapi_table
) / sizeof(void *) - 1;
85 static GLboolean GetSizeCalled
= GL_FALSE
;
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()
95 _glapi_check_multithread(void)
99 static unsigned long knownID
;
100 static GLboolean firstCall
= GL_TRUE
;
102 knownID
= _glthread_GetID();
103 firstCall
= GL_FALSE
;
105 else if (knownID
!= _glthread_GetID()) {
106 ThreadSafe
= GL_TRUE
;
110 /* make sure that this thread's dispatch pointer isn't null */
111 if (!_glapi_get_dispatch()) {
112 _glapi_set_dispatch(NULL
);
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.
126 _glapi_set_current_context(void *context
)
129 _glthread_SetTSD(&ContextTSD
, context
, context_thread_init
);
131 _glapi_CurrentContext
= NULL
; /* to help with debugging */
133 _glapi_CurrentContext
= context
;
135 _glapi_CurrentContext
= context
;
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.
147 _glapi_get_current_context(void)
151 return _glthread_GetTSD(&ContextTSD
);
154 return _glapi_CurrentContext
;
157 return _glapi_CurrentContext
;
164 * Set the global or per-thread dispatch table pointer.
167 _glapi_set_dispatch(struct _glapi_table
*dispatch
)
170 /* use the no-op functions */
171 dispatch
= &__glapi_noop_table
;
175 _glapi_check_table(dispatch
);
180 _glthread_SetTSD(&DispatchTSD
, (void*) dispatch
, dispatch_thread_init
);
182 Dispatch
= NULL
; /* to help with debugging */
193 * Return pointer to current dispatch table for calling thread.
195 struct _glapi_table
*
196 _glapi_get_dispatch(void)
200 return (struct _glapi_table
*) _glthread_GetTSD(&DispatchTSD
);
214 * Return size of dispatch table struct as number of functions (or
218 _glapi_get_dispatch_table_size(void)
220 /* return sizeof(struct _glapi_table) / sizeof(void *);*/
221 GetSizeCalled
= GL_TRUE
;
222 return MaxDispatchOffset
+ 1;
228 * Get API dispatcher version string.
229 * XXX this isn't well defined yet.
232 _glapi_get_version(void)
238 struct name_address_pair
{
243 static struct name_address_pair static_functions
[1000];
248 * Return dispatch table offset of the named static (built-in) function.
249 * Return -1 if function not found.
252 get_static_proc_offset(const char *funcName
)
255 for (i
= 0; static_functions
[i
].Name
; i
++) {
256 if (strcmp(static_functions
[i
].Name
, funcName
) == 0) {
265 * Return dispatch function address the named static (built-in) function.
266 * Return NULL if function not found.
269 get_static_proc_address(const char *funcName
)
271 GLuint i
= get_static_proc_offset(funcName
);
273 return static_functions
[i
].Address
;
280 /**********************************************************************
281 * Extension function management.
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 */
291 static struct _glapi_ext_entrypoint ExtEntryTable
[_GLAPI_EXTRA_SLOTS
];
292 static GLuint NumExtEntryPoints
= 0;
297 * Generate a dispatch function (entrypoint) which jumps through
298 * the given slot number (offset) in the current dispatch table.
301 generate_entrypoint(GLuint offset
)
303 /* XXX need to generate some assembly code here */
311 * Add a new extension function entrypoint.
312 * Return: GL_TRUE = success or GL_FALSE = failure
315 _glapi_add_entrypoint(const char *funcName
, GLuint offset
)
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.
323 assert(!GetSizeCalled
);
325 /* first check if the named function is already statically present */
326 index
= get_static_proc_offset(funcName
);
329 assert(index
== offset
);
332 /* else if (offset < _glapi_get_dispatch_table_size()) { */
334 /* be sure index and name match known data */
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 */
343 return GL_FALSE
; /* bad offset! */
347 assert(NumExtEntryPoints
< _GLAPI_EXTRA_SLOTS
);
348 ExtEntryTable
[NumExtEntryPoints
].Name
= strdup(funcName
);
349 ExtEntryTable
[NumExtEntryPoints
].Offset
= offset
;
350 ExtEntryTable
[NumExtEntryPoints
].Address
= generate_entrypoint(offset
);
353 if (offset
> MaxDispatchOffset
)
354 MaxDispatchOffset
= offset
;
368 * Return offset of entrypoint for named function within dispatch table.
371 _glapi_get_proc_offset(const char *funcName
)
373 /* search extension functions first */
375 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
376 if (strcmp(ExtEntryTable
[i
].Name
, funcName
) == 0) {
377 return ExtEntryTable
[i
].Offset
;
381 /* search static functions */
382 return get_static_proc_offset(funcName
);
388 * Return entrypoint for named function.
391 _glapi_get_proc_address(const char *funcName
)
393 /* search extension functions first */
395 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
396 if (strcmp(ExtEntryTable
[i
].Name
, funcName
) == 0) {
397 return ExtEntryTable
[i
].Address
;
401 /* search static functions */
402 return get_static_proc_address(funcName
);
409 * Return the name of the function at the given dispatch offset.
410 * This is only intended for debugging.
413 _glapi_get_proc_name(GLuint offset
)
415 GLuint n
= sizeof(static_functions
) / sizeof(struct name_address_pair
);
417 return static_functions
[offset
].Name
;
420 /* search added extension functions */
422 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
423 if (ExtEntryTable
[i
].Offset
== offset
) {
424 return ExtEntryTable
[i
].Name
;
434 * Make sure there are no NULL pointers in the given dispatch table.
435 * Intented for debugging purposes.
438 _glapi_check_table(const struct _glapi_table
*table
)
440 const GLuint entries
= _glapi_get_dispatch_table_size();
441 const void **tab
= (const void **) table
;
443 for (i
= 1; i
< entries
; i
++) {
447 /* Do some spot checks to be sure that the dispatch table
448 * slots are assigned correctly.
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
);
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
);
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
);
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
);
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
);
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
);
496 /**********************************************************************
497 * Generate the GL entrypoint functions here.
501 #define KEYWORD2 GLAPIENTRY
502 #ifdef USE_MGL_NAMESPACE
503 #define NAME(func) mgl##func
505 #define NAME(func) gl##func
508 #define DISPATCH_SETUP \
509 const struct _glapi_table *dispatch; \
510 dispatch = Dispatch ? Dispatch : _glapi_get_dispatch();
512 #define DISPATCH(FUNC, ARGS) (dispatch->FUNC) ARGS
517 #include "glapitemp.h"
522 * For each entry in static_functions[] which use this function
523 * we should implement a dispatch function in glapitemp.h and
526 static void NotImplemented(void)
532 static struct name_address_pair static_functions
[] = {
533 { "NotImplemented", (GLvoid
*) NotImplemented
},
536 { "glAccum", (GLvoid
*) glAccum
},
537 { "glAlphaFunc", (GLvoid
*) glAlphaFunc
},
538 { "glBegin", (GLvoid
*) glBegin
},
539 { "glBitmap", (GLvoid
*) glBitmap
},
540 { "glBlendFunc", (GLvoid
*) glBlendFunc
},
541 { "glCallList", (GLvoid
*) glCallList
},
542 { "glCallLists", (GLvoid
*) glCallLists
},
543 { "glClear", (GLvoid
*) glClear
},
544 { "glClearAccum", (GLvoid
*) glClearAccum
},
545 { "glClearColor", (GLvoid
*) glClearColor
},
546 { "glClearDepth", (GLvoid
*) glClearDepth
},
547 { "glClearIndex", (GLvoid
*) glClearIndex
},
548 { "glClearStencil", (GLvoid
*) glClearStencil
},
549 { "glClipPlane", (GLvoid
*) glClipPlane
},
550 { "glColor3b", (GLvoid
*) glColor3b
},
551 { "glColor3bv", (GLvoid
*) glColor3bv
},
552 { "glColor3d", (GLvoid
*) glColor3d
},
553 { "glColor3dv", (GLvoid
*) glColor3dv
},
554 { "glColor3f", (GLvoid
*) glColor3f
},
555 { "glColor3fv", (GLvoid
*) glColor3fv
},
556 { "glColor3i", (GLvoid
*) glColor3i
},
557 { "glColor3iv", (GLvoid
*) glColor3iv
},
558 { "glColor3s", (GLvoid
*) glColor3s
},
559 { "glColor3sv", (GLvoid
*) glColor3sv
},
560 { "glColor3ub", (GLvoid
*) glColor3ub
},
561 { "glColor3ubv", (GLvoid
*) glColor3ubv
},
562 { "glColor3ui", (GLvoid
*) glColor3ui
},
563 { "glColor3uiv", (GLvoid
*) glColor3uiv
},
564 { "glColor3us", (GLvoid
*) glColor3us
},
565 { "glColor3usv", (GLvoid
*) glColor3usv
},
566 { "glColor4b", (GLvoid
*) glColor4b
},
567 { "glColor4bv", (GLvoid
*) glColor4bv
},
568 { "glColor4d", (GLvoid
*) glColor4d
},
569 { "glColor4dv", (GLvoid
*) glColor4dv
},
570 { "glColor4f", (GLvoid
*) glColor4f
},
571 { "glColor4fv", (GLvoid
*) glColor4fv
},
572 { "glColor4i", (GLvoid
*) glColor4i
},
573 { "glColor4iv", (GLvoid
*) glColor4iv
},
574 { "glColor4s", (GLvoid
*) glColor4s
},
575 { "glColor4sv", (GLvoid
*) glColor4sv
},
576 { "glColor4ub", (GLvoid
*) glColor4ub
},
577 { "glColor4ubv", (GLvoid
*) glColor4ubv
},
578 { "glColor4ui", (GLvoid
*) glColor4ui
},
579 { "glColor4uiv", (GLvoid
*) glColor4uiv
},
580 { "glColor4us", (GLvoid
*) glColor4us
},
581 { "glColor4usv", (GLvoid
*) glColor4usv
},
582 { "glColorMask", (GLvoid
*) glColorMask
},
583 { "glColorMaterial", (GLvoid
*) glColorMaterial
},
584 { "glCopyPixels", (GLvoid
*) glCopyPixels
},
585 { "glCullFace", (GLvoid
*) glCullFace
},
586 { "glDeleteLists", (GLvoid
*) glDeleteLists
},
587 { "glDepthFunc", (GLvoid
*) glDepthFunc
},
588 { "glDepthMask", (GLvoid
*) glDepthMask
},
589 { "glDepthRange", (GLvoid
*) glDepthRange
},
590 { "glDisable", (GLvoid
*) glDisable
},
591 { "glDrawBuffer", (GLvoid
*) glDrawBuffer
},
592 { "glDrawPixels", (GLvoid
*) glDrawPixels
},
593 { "glEdgeFlag", (GLvoid
*) glEdgeFlag
},
594 { "glEdgeFlagv", (GLvoid
*) glEdgeFlagv
},
595 { "glEnable", (GLvoid
*) glEnable
},
596 { "glEnd", (GLvoid
*) glEnd
},
597 { "glEndList", (GLvoid
*) glEndList
},
598 { "glEvalCoord1d", (GLvoid
*) glEvalCoord1d
},
599 { "glEvalCoord1dv", (GLvoid
*) glEvalCoord1dv
},
600 { "glEvalCoord1f", (GLvoid
*) glEvalCoord1f
},
601 { "glEvalCoord1fv", (GLvoid
*) glEvalCoord1fv
},
602 { "glEvalCoord2d", (GLvoid
*) glEvalCoord2d
},
603 { "glEvalCoord2dv", (GLvoid
*) glEvalCoord2dv
},
604 { "glEvalCoord2f", (GLvoid
*) glEvalCoord2f
},
605 { "glEvalCoord2fv", (GLvoid
*) glEvalCoord2fv
},
606 { "glEvalMesh1", (GLvoid
*) glEvalMesh1
},
607 { "glEvalMesh2", (GLvoid
*) glEvalMesh2
},
608 { "glEvalPoint1", (GLvoid
*) glEvalPoint1
},
609 { "glEvalPoint2", (GLvoid
*) glEvalPoint2
},
610 { "glFeedbackBuffer", (GLvoid
*) glFeedbackBuffer
},
611 { "glFinish", (GLvoid
*) glFinish
},
612 { "glFlush", (GLvoid
*) glFlush
},
613 { "glFogf", (GLvoid
*) glFogf
},
614 { "glFogfv", (GLvoid
*) glFogfv
},
615 { "glFogi", (GLvoid
*) glFogi
},
616 { "glFogiv", (GLvoid
*) glFogiv
},
617 { "glFrontFace", (GLvoid
*) glFrontFace
},
618 { "glFrustum", (GLvoid
*) glFrustum
},
619 { "glGenLists", (GLvoid
*) glGenLists
},
620 { "glGetBooleanv", (GLvoid
*) glGetBooleanv
},
621 { "glGetClipPlane", (GLvoid
*) glGetClipPlane
},
622 { "glGetDoublev", (GLvoid
*) glGetDoublev
},
623 { "glGetError", (GLvoid
*) glGetError
},
624 { "glGetFloatv", (GLvoid
*) glGetFloatv
},
625 { "glGetIntegerv", (GLvoid
*) glGetIntegerv
},
626 { "glGetLightfv", (GLvoid
*) glGetLightfv
},
627 { "glGetLightiv", (GLvoid
*) glGetLightiv
},
628 { "glGetMapdv", (GLvoid
*) glGetMapdv
},
629 { "glGetMapfv", (GLvoid
*) glGetMapfv
},
630 { "glGetMapiv", (GLvoid
*) glGetMapiv
},
631 { "glGetMaterialfv", (GLvoid
*) glGetMaterialfv
},
632 { "glGetMaterialiv", (GLvoid
*) glGetMaterialiv
},
633 { "glGetPixelMapfv", (GLvoid
*) glGetPixelMapfv
},
634 { "glGetPixelMapuiv", (GLvoid
*) glGetPixelMapuiv
},
635 { "glGetPixelMapusv", (GLvoid
*) glGetPixelMapusv
},
636 { "glGetPolygonStipple", (GLvoid
*) glGetPolygonStipple
},
637 { "glGetString", (GLvoid
*) glGetString
},
638 { "glGetTexEnvfv", (GLvoid
*) glGetTexEnvfv
},
639 { "glGetTexEnviv", (GLvoid
*) glGetTexEnviv
},
640 { "glGetTexGendv", (GLvoid
*) glGetTexGendv
},
641 { "glGetTexGenfv", (GLvoid
*) glGetTexGenfv
},
642 { "glGetTexGeniv", (GLvoid
*) glGetTexGeniv
},
643 { "glGetTexImage", (GLvoid
*) glGetTexImage
},
644 { "glGetTexLevelParameterfv", (GLvoid
*) glGetTexLevelParameterfv
},
645 { "glGetTexLevelParameteriv", (GLvoid
*) glGetTexLevelParameteriv
},
646 { "glGetTexParameterfv", (GLvoid
*) glGetTexParameterfv
},
647 { "glGetTexParameteriv", (GLvoid
*) glGetTexParameteriv
},
648 { "glHint", (GLvoid
*) glHint
},
649 { "glIndexMask", (GLvoid
*) glIndexMask
},
650 { "glIndexd", (GLvoid
*) glIndexd
},
651 { "glIndexdv", (GLvoid
*) glIndexdv
},
652 { "glIndexf", (GLvoid
*) glIndexf
},
653 { "glIndexfv", (GLvoid
*) glIndexfv
},
654 { "glIndexi", (GLvoid
*) glIndexi
},
655 { "glIndexiv", (GLvoid
*) glIndexiv
},
656 { "glIndexs", (GLvoid
*) glIndexs
},
657 { "glIndexsv", (GLvoid
*) glIndexsv
},
658 { "glInitNames", (GLvoid
*) glInitNames
},
659 { "glIsEnabled", (GLvoid
*) glIsEnabled
},
660 { "glIsList", (GLvoid
*) glIsList
},
661 { "glLightModelf", (GLvoid
*) glLightModelf
},
662 { "glLightModelfv", (GLvoid
*) glLightModelfv
},
663 { "glLightModeli", (GLvoid
*) glLightModeli
},
664 { "glLightModeliv", (GLvoid
*) glLightModeliv
},
665 { "glLightf", (GLvoid
*) glLightf
},
666 { "glLightfv", (GLvoid
*) glLightfv
},
667 { "glLighti", (GLvoid
*) glLighti
},
668 { "glLightiv", (GLvoid
*) glLightiv
},
669 { "glLineStipple", (GLvoid
*) glLineStipple
},
670 { "glLineWidth", (GLvoid
*) glLineWidth
},
671 { "glListBase", (GLvoid
*) glListBase
},
672 { "glLoadIdentity", (GLvoid
*) glLoadIdentity
},
673 { "glLoadMatrixd", (GLvoid
*) glLoadMatrixd
},
674 { "glLoadMatrixf", (GLvoid
*) glLoadMatrixf
},
675 { "glLoadName", (GLvoid
*) glLoadName
},
676 { "glLogicOp", (GLvoid
*) glLogicOp
},
677 { "glMap1d", (GLvoid
*) glMap1d
},
678 { "glMap1f", (GLvoid
*) glMap1f
},
679 { "glMap2d", (GLvoid
*) glMap2d
},
680 { "glMap2f", (GLvoid
*) glMap2f
},
681 { "glMapGrid1d", (GLvoid
*) glMapGrid1d
},
682 { "glMapGrid1f", (GLvoid
*) glMapGrid1f
},
683 { "glMapGrid2d", (GLvoid
*) glMapGrid2d
},
684 { "glMapGrid2f", (GLvoid
*) glMapGrid2f
},
685 { "glMaterialf", (GLvoid
*) glMaterialf
},
686 { "glMaterialfv", (GLvoid
*) glMaterialfv
},
687 { "glMateriali", (GLvoid
*) glMateriali
},
688 { "glMaterialiv", (GLvoid
*) glMaterialiv
},
689 { "glMatrixMode", (GLvoid
*) glMatrixMode
},
690 { "glMultMatrixd", (GLvoid
*) glMultMatrixd
},
691 { "glMultMatrixf", (GLvoid
*) glMultMatrixf
},
692 { "glNewList", (GLvoid
*) glNewList
},
693 { "glNormal3b", (GLvoid
*) glNormal3b
},
694 { "glNormal3bv", (GLvoid
*) glNormal3bv
},
695 { "glNormal3d", (GLvoid
*) glNormal3d
},
696 { "glNormal3dv", (GLvoid
*) glNormal3dv
},
697 { "glNormal3f", (GLvoid
*) glNormal3f
},
698 { "glNormal3fv", (GLvoid
*) glNormal3fv
},
699 { "glNormal3i", (GLvoid
*) glNormal3i
},
700 { "glNormal3iv", (GLvoid
*) glNormal3iv
},
701 { "glNormal3s", (GLvoid
*) glNormal3s
},
702 { "glNormal3sv", (GLvoid
*) glNormal3sv
},
703 { "glOrtho", (GLvoid
*) glOrtho
},
704 { "glPassThrough", (GLvoid
*) glPassThrough
},
705 { "glPixelMapfv", (GLvoid
*) glPixelMapfv
},
706 { "glPixelMapuiv", (GLvoid
*) glPixelMapuiv
},
707 { "glPixelMapusv", (GLvoid
*) glPixelMapusv
},
708 { "glPixelStoref", (GLvoid
*) glPixelStoref
},
709 { "glPixelStorei", (GLvoid
*) glPixelStorei
},
710 { "glPixelTransferf", (GLvoid
*) glPixelTransferf
},
711 { "glPixelTransferi", (GLvoid
*) glPixelTransferi
},
712 { "glPixelZoom", (GLvoid
*) glPixelZoom
},
713 { "glPointSize", (GLvoid
*) glPointSize
},
714 { "glPolygonMode", (GLvoid
*) glPolygonMode
},
715 { "glPolygonOffset", (GLvoid
*) glPolygonOffset
},
716 { "glPolygonStipple", (GLvoid
*) glPolygonStipple
},
717 { "glPopAttrib", (GLvoid
*) glPopAttrib
},
718 { "glPopMatrix", (GLvoid
*) glPopMatrix
},
719 { "glPopName", (GLvoid
*) glPopName
},
720 { "glPushAttrib", (GLvoid
*) glPushAttrib
},
721 { "glPushMatrix", (GLvoid
*) glPushMatrix
},
722 { "glPushName", (GLvoid
*) glPushName
},
723 { "glRasterPos2d", (GLvoid
*) glRasterPos2d
},
724 { "glRasterPos2dv", (GLvoid
*) glRasterPos2dv
},
725 { "glRasterPos2f", (GLvoid
*) glRasterPos2f
},
726 { "glRasterPos2fv", (GLvoid
*) glRasterPos2fv
},
727 { "glRasterPos2i", (GLvoid
*) glRasterPos2i
},
728 { "glRasterPos2iv", (GLvoid
*) glRasterPos2iv
},
729 { "glRasterPos2s", (GLvoid
*) glRasterPos2s
},
730 { "glRasterPos2sv", (GLvoid
*) glRasterPos2sv
},
731 { "glRasterPos3d", (GLvoid
*) glRasterPos3d
},
732 { "glRasterPos3dv", (GLvoid
*) glRasterPos3dv
},
733 { "glRasterPos3f", (GLvoid
*) glRasterPos3f
},
734 { "glRasterPos3fv", (GLvoid
*) glRasterPos3fv
},
735 { "glRasterPos3i", (GLvoid
*) glRasterPos3i
},
736 { "glRasterPos3iv", (GLvoid
*) glRasterPos3iv
},
737 { "glRasterPos3s", (GLvoid
*) glRasterPos3s
},
738 { "glRasterPos3sv", (GLvoid
*) glRasterPos3sv
},
739 { "glRasterPos4d", (GLvoid
*) glRasterPos4d
},
740 { "glRasterPos4dv", (GLvoid
*) glRasterPos4dv
},
741 { "glRasterPos4f", (GLvoid
*) glRasterPos4f
},
742 { "glRasterPos4fv", (GLvoid
*) glRasterPos4fv
},
743 { "glRasterPos4i", (GLvoid
*) glRasterPos4i
},
744 { "glRasterPos4iv", (GLvoid
*) glRasterPos4iv
},
745 { "glRasterPos4s", (GLvoid
*) glRasterPos4s
},
746 { "glRasterPos4sv", (GLvoid
*) glRasterPos4sv
},
747 { "glReadBuffer", (GLvoid
*) glReadBuffer
},
748 { "glReadPixels", (GLvoid
*) glReadPixels
},
749 { "glRectd", (GLvoid
*) glRectd
},
750 { "glRectdv", (GLvoid
*) glRectdv
},
751 { "glRectf", (GLvoid
*) glRectf
},
752 { "glRectfv", (GLvoid
*) glRectfv
},
753 { "glRecti", (GLvoid
*) glRecti
},
754 { "glRectiv", (GLvoid
*) glRectiv
},
755 { "glRects", (GLvoid
*) glRects
},
756 { "glRectsv", (GLvoid
*) glRectsv
},
757 { "glRenderMode", (GLvoid
*) glRenderMode
},
758 { "glRotated", (GLvoid
*) glRotated
},
759 { "glRotatef", (GLvoid
*) glRotatef
},
760 { "glScaled", (GLvoid
*) glScaled
},
761 { "glScalef", (GLvoid
*) glScalef
},
762 { "glScissor", (GLvoid
*) glScissor
},
763 { "glSelectBuffer", (GLvoid
*) glSelectBuffer
},
764 { "glShadeModel", (GLvoid
*) glShadeModel
},
765 { "glStencilFunc", (GLvoid
*) glStencilFunc
},
766 { "glStencilMask", (GLvoid
*) glStencilMask
},
767 { "glStencilOp", (GLvoid
*) glStencilOp
},
768 { "glTexCoord1d", (GLvoid
*) glTexCoord1d
},
769 { "glTexCoord1dv", (GLvoid
*) glTexCoord1dv
},
770 { "glTexCoord1f", (GLvoid
*) glTexCoord1f
},
771 { "glTexCoord1fv", (GLvoid
*) glTexCoord1fv
},
772 { "glTexCoord1i", (GLvoid
*) glTexCoord1i
},
773 { "glTexCoord1iv", (GLvoid
*) glTexCoord1iv
},
774 { "glTexCoord1s", (GLvoid
*) glTexCoord1s
},
775 { "glTexCoord1sv", (GLvoid
*) glTexCoord1sv
},
776 { "glTexCoord2d", (GLvoid
*) glTexCoord2d
},
777 { "glTexCoord2dv", (GLvoid
*) glTexCoord2dv
},
778 { "glTexCoord2f", (GLvoid
*) glTexCoord2f
},
779 { "glTexCoord2fv", (GLvoid
*) glTexCoord2fv
},
780 { "glTexCoord2i", (GLvoid
*) glTexCoord2i
},
781 { "glTexCoord2iv", (GLvoid
*) glTexCoord2iv
},
782 { "glTexCoord2s", (GLvoid
*) glTexCoord2s
},
783 { "glTexCoord2sv", (GLvoid
*) glTexCoord2sv
},
784 { "glTexCoord3d", (GLvoid
*) glTexCoord3d
},
785 { "glTexCoord3dv", (GLvoid
*) glTexCoord3dv
},
786 { "glTexCoord3f", (GLvoid
*) glTexCoord3f
},
787 { "glTexCoord3fv", (GLvoid
*) glTexCoord3fv
},
788 { "glTexCoord3i", (GLvoid
*) glTexCoord3i
},
789 { "glTexCoord3iv", (GLvoid
*) glTexCoord3iv
},
790 { "glTexCoord3s", (GLvoid
*) glTexCoord3s
},
791 { "glTexCoord3sv", (GLvoid
*) glTexCoord3sv
},
792 { "glTexCoord4d", (GLvoid
*) glTexCoord4d
},
793 { "glTexCoord4dv", (GLvoid
*) glTexCoord4dv
},
794 { "glTexCoord4f", (GLvoid
*) glTexCoord4f
},
795 { "glTexCoord4fv", (GLvoid
*) glTexCoord4fv
},
796 { "glTexCoord4i", (GLvoid
*) glTexCoord4i
},
797 { "glTexCoord4iv", (GLvoid
*) glTexCoord4iv
},
798 { "glTexCoord4s", (GLvoid
*) glTexCoord4s
},
799 { "glTexCoord4sv", (GLvoid
*) glTexCoord4sv
},
800 { "glTexEnvf", (GLvoid
*) glTexEnvf
},
801 { "glTexEnvfv", (GLvoid
*) glTexEnvfv
},
802 { "glTexEnvi", (GLvoid
*) glTexEnvi
},
803 { "glTexEnviv", (GLvoid
*) glTexEnviv
},
804 { "glTexGend", (GLvoid
*) glTexGend
},
805 { "glTexGendv", (GLvoid
*) glTexGendv
},
806 { "glTexGenf", (GLvoid
*) glTexGenf
},
807 { "glTexGenfv", (GLvoid
*) glTexGenfv
},
808 { "glTexGeni", (GLvoid
*) glTexGeni
},
809 { "glTexGeniv", (GLvoid
*) glTexGeniv
},
810 { "glTexImage1D", (GLvoid
*) glTexImage1D
},
811 { "glTexImage2D", (GLvoid
*) glTexImage2D
},
812 { "glTexParameterf", (GLvoid
*) glTexParameterf
},
813 { "glTexParameterfv", (GLvoid
*) glTexParameterfv
},
814 { "glTexParameteri", (GLvoid
*) glTexParameteri
},
815 { "glTexParameteriv", (GLvoid
*) glTexParameteriv
},
816 { "glTranslated", (GLvoid
*) glTranslated
},
817 { "glTranslatef", (GLvoid
*) glTranslatef
},
818 { "glVertex2d", (GLvoid
*) glVertex2d
},
819 { "glVertex2dv", (GLvoid
*) glVertex2dv
},
820 { "glVertex2f", (GLvoid
*) glVertex2f
},
821 { "glVertex2fv", (GLvoid
*) glVertex2fv
},
822 { "glVertex2i", (GLvoid
*) glVertex2i
},
823 { "glVertex2iv", (GLvoid
*) glVertex2iv
},
824 { "glVertex2s", (GLvoid
*) glVertex2s
},
825 { "glVertex2sv", (GLvoid
*) glVertex2sv
},
826 { "glVertex3d", (GLvoid
*) glVertex3d
},
827 { "glVertex3dv", (GLvoid
*) glVertex3dv
},
828 { "glVertex3f", (GLvoid
*) glVertex3f
},
829 { "glVertex3fv", (GLvoid
*) glVertex3fv
},
830 { "glVertex3i", (GLvoid
*) glVertex3i
},
831 { "glVertex3iv", (GLvoid
*) glVertex3iv
},
832 { "glVertex3s", (GLvoid
*) glVertex3s
},
833 { "glVertex3sv", (GLvoid
*) glVertex3sv
},
834 { "glVertex4d", (GLvoid
*) glVertex4d
},
835 { "glVertex4dv", (GLvoid
*) glVertex4dv
},
836 { "glVertex4f", (GLvoid
*) glVertex4f
},
837 { "glVertex4fv", (GLvoid
*) glVertex4fv
},
838 { "glVertex4i", (GLvoid
*) glVertex4i
},
839 { "glVertex4iv", (GLvoid
*) glVertex4iv
},
840 { "glVertex4s", (GLvoid
*) glVertex4s
},
841 { "glVertex4sv", (GLvoid
*) glVertex4sv
},
842 { "glViewport", (GLvoid
*) glViewport
},
845 { "glAreTexturesResident", (GLvoid
*) glAreTexturesResident
},
846 { "glArrayElement", (GLvoid
*) glArrayElement
},
847 { "glBindTexture", (GLvoid
*) glBindTexture
},
848 { "glColorPointer", (GLvoid
*) glColorPointer
},
849 { "glCopyTexImage1D", (GLvoid
*) glCopyTexImage1D
},
850 { "glCopyTexImage2D", (GLvoid
*) glCopyTexImage2D
},
851 { "glCopyTexSubImage1D", (GLvoid
*) glCopyTexSubImage1D
},
852 { "glCopyTexSubImage2D", (GLvoid
*) glCopyTexSubImage2D
},
853 { "glDeleteTextures", (GLvoid
*) glDeleteTextures
},
854 { "glDisableClientState", (GLvoid
*) glDisableClientState
},
855 { "glDrawArrays", (GLvoid
*) glDrawArrays
},
856 { "glDrawElements", (GLvoid
*) glDrawElements
},
857 { "glEdgeFlagPointer", (GLvoid
*) glEdgeFlagPointer
},
858 { "glEnableClientState", (GLvoid
*) glEnableClientState
},
859 { "glGenTextures", (GLvoid
*) glGenTextures
},
860 { "glGetPointerv", (GLvoid
*) glGetPointerv
},
861 { "glIndexPointer", (GLvoid
*) glIndexPointer
},
862 { "glIndexub", (GLvoid
*) glIndexub
},
863 { "glIndexubv", (GLvoid
*) glIndexubv
},
864 { "glInterleavedArrays", (GLvoid
*) glInterleavedArrays
},
865 { "glIsTexture", (GLvoid
*) glIsTexture
},
866 { "glNormalPointer", (GLvoid
*) glNormalPointer
},
867 { "glPopClientAttrib", (GLvoid
*) glPopClientAttrib
},
868 { "glPrioritizeTextures", (GLvoid
*) glPrioritizeTextures
},
869 { "glPushClientAttrib", (GLvoid
*) glPushClientAttrib
},
870 { "glTexCoordPointer", (GLvoid
*) glTexCoordPointer
},
871 { "glTexSubImage1D", (GLvoid
*) glTexSubImage1D
},
872 { "glTexSubImage2D", (GLvoid
*) glTexSubImage2D
},
873 { "glVertexPointer", (GLvoid
*) glVertexPointer
},
876 { "glCopyTexSubImage3D", (GLvoid
*) glCopyTexSubImage3D
},
877 { "glDrawRangeElements", (GLvoid
*) glDrawRangeElements
},
878 { "glTexImage3D", (GLvoid
*) glTexImage3D
},
879 { "glTexSubImage3D", (GLvoid
*) glTexSubImage3D
},
882 { "glBlendColor", (GLvoid
*) glBlendColor
},
883 { "glBlendEquation", (GLvoid
*) glBlendEquation
},
884 { "glColorSubTable", (GLvoid
*) glColorSubTable
},
885 { "glColorTable", (GLvoid
*) glColorTable
},
886 { "glColorTableParameterfv", (GLvoid
*) glColorTableParameterfv
},
887 { "glColorTableParameteriv", (GLvoid
*) glColorTableParameteriv
},
888 { "glConvolutionFilter1D", (GLvoid
*) glConvolutionFilter1D
},
889 { "glConvolutionFilter2D", (GLvoid
*) glConvolutionFilter2D
},
890 { "glConvolutionParameterf", (GLvoid
*) glConvolutionParameterf
},
891 { "glConvolutionParameterfv", (GLvoid
*) glConvolutionParameterfv
},
892 { "glConvolutionParameteri", (GLvoid
*) glConvolutionParameteri
},
893 { "glConvolutionParameteriv", (GLvoid
*) glConvolutionParameteriv
},
894 { "glCopyColorSubTable", (GLvoid
*) glCopyColorSubTable
},
895 { "glCopyColorTable", (GLvoid
*) glCopyColorTable
},
896 { "glCopyConvolutionFilter1D", (GLvoid
*) glCopyConvolutionFilter1D
},
897 { "glCopyConvolutionFilter2D", (GLvoid
*) glCopyConvolutionFilter2D
},
898 { "glGetColorTable", (GLvoid
*) glGetColorTable
},
899 { "glGetColorTableParameterfv", (GLvoid
*) glGetColorTableParameterfv
},
900 { "glGetColorTableParameteriv", (GLvoid
*) glGetColorTableParameteriv
},
901 { "glGetConvolutionFilter", (GLvoid
*) glGetConvolutionFilter
},
902 { "glGetConvolutionParameterfv", (GLvoid
*) glGetConvolutionParameterfv
},
903 { "glGetConvolutionParameteriv", (GLvoid
*) glGetConvolutionParameteriv
},
904 { "glGetHistogram", (GLvoid
*) glGetHistogram
},
905 { "glGetHistogramParameterfv", (GLvoid
*) glGetHistogramParameterfv
},
906 { "glGetHistogramParameteriv", (GLvoid
*) glGetHistogramParameteriv
},
907 { "glGetMinmax", (GLvoid
*) glGetMinmax
},
908 { "glGetMinmaxParameterfv", (GLvoid
*) glGetMinmaxParameterfv
},
909 { "glGetMinmaxParameteriv", (GLvoid
*) glGetMinmaxParameteriv
},
910 { "glGetSeparableFilter", (GLvoid
*) glGetSeparableFilter
},
911 { "glHistogram", (GLvoid
*) glHistogram
},
912 { "glMinmax", (GLvoid
*) glMinmax
},
913 { "glResetHistogram", (GLvoid
*) glResetHistogram
},
914 { "glResetMinmax", (GLvoid
*) glResetMinmax
},
915 { "glSeparableFilter2D", (GLvoid
*) glSeparableFilter2D
},
917 /* GL_ARB_multitexture */
918 { "glActiveTextureARB", (GLvoid
*) glActiveTextureARB
},
919 { "glClientActiveTextureARB", (GLvoid
*) glClientActiveTextureARB
},
920 { "glMultiTexCoord1dARB", (GLvoid
*) glMultiTexCoord1dARB
},
921 { "glMultiTexCoord1dvARB", (GLvoid
*) glMultiTexCoord1dvARB
},
922 { "glMultiTexCoord1fARB", (GLvoid
*) glMultiTexCoord1fARB
},
923 { "glMultiTexCoord1fvARB", (GLvoid
*) glMultiTexCoord1fvARB
},
924 { "glMultiTexCoord1iARB", (GLvoid
*) glMultiTexCoord1iARB
},
925 { "glMultiTexCoord1ivARB", (GLvoid
*) glMultiTexCoord1ivARB
},
926 { "glMultiTexCoord1sARB", (GLvoid
*) glMultiTexCoord1sARB
},
927 { "glMultiTexCoord1svARB", (GLvoid
*) glMultiTexCoord1svARB
},
928 { "glMultiTexCoord2dARB", (GLvoid
*) glMultiTexCoord2dARB
},
929 { "glMultiTexCoord2dvARB", (GLvoid
*) glMultiTexCoord2dvARB
},
930 { "glMultiTexCoord2fARB", (GLvoid
*) glMultiTexCoord2fARB
},
931 { "glMultiTexCoord2fvARB", (GLvoid
*) glMultiTexCoord2fvARB
},
932 { "glMultiTexCoord2iARB", (GLvoid
*) glMultiTexCoord2iARB
},
933 { "glMultiTexCoord2ivARB", (GLvoid
*) glMultiTexCoord2ivARB
},
934 { "glMultiTexCoord2sARB", (GLvoid
*) glMultiTexCoord2sARB
},
935 { "glMultiTexCoord2svARB", (GLvoid
*) glMultiTexCoord2svARB
},
936 { "glMultiTexCoord3dARB", (GLvoid
*) glMultiTexCoord3dARB
},
937 { "glMultiTexCoord3dvARB", (GLvoid
*) glMultiTexCoord3dvARB
},
938 { "glMultiTexCoord3fARB", (GLvoid
*) glMultiTexCoord3fARB
},
939 { "glMultiTexCoord3fvARB", (GLvoid
*) glMultiTexCoord3fvARB
},
940 { "glMultiTexCoord3iARB", (GLvoid
*) glMultiTexCoord3iARB
},
941 { "glMultiTexCoord3ivARB", (GLvoid
*) glMultiTexCoord3ivARB
},
942 { "glMultiTexCoord3sARB", (GLvoid
*) glMultiTexCoord3sARB
},
943 { "glMultiTexCoord3svARB", (GLvoid
*) glMultiTexCoord3svARB
},
944 { "glMultiTexCoord4dARB", (GLvoid
*) glMultiTexCoord4dARB
},
945 { "glMultiTexCoord4dvARB", (GLvoid
*) glMultiTexCoord4dvARB
},
946 { "glMultiTexCoord4fARB", (GLvoid
*) glMultiTexCoord4fARB
},
947 { "glMultiTexCoord4fvARB", (GLvoid
*) glMultiTexCoord4fvARB
},
948 { "glMultiTexCoord4iARB", (GLvoid
*) glMultiTexCoord4iARB
},
949 { "glMultiTexCoord4ivARB", (GLvoid
*) glMultiTexCoord4ivARB
},
950 { "glMultiTexCoord4sARB", (GLvoid
*) glMultiTexCoord4sARB
},
951 { "glMultiTexCoord4svARB", (GLvoid
*) glMultiTexCoord4svARB
},
953 /* 2. GL_EXT_blend_color */
954 { "glBlendColorEXT", (GLvoid
*) glBlendColorEXT
},
956 /* 3. GL_EXT_polygon_offset */
957 { "glPolygonOffsetEXT", (GLvoid
*) glPolygonOffsetEXT
},
959 /* 6. GL_EXT_texture3D */
960 { "glCopyTexSubImage3DEXT", (GLvoid
*) glCopyTexSubImage3DEXT
},
961 { "glTexImage3DEXT", (GLvoid
*) glTexImage3DEXT
},
962 { "glTexSubImage3DEXT", (GLvoid
*) glTexSubImage3DEXT
},
964 /* 7. GL_SGI_texture_filter4 */
965 { "glGetTexFilterFuncSGIS", (GLvoid
*) glGetTexFilterFuncSGIS
},
966 { "glTexFilterFuncSGIS", (GLvoid
*) glTexFilterFuncSGIS
},
968 /* 9. GL_EXT_subtexture */
969 { "glTexSubImage1DEXT", (GLvoid
*) glTexSubImage1DEXT
},
970 { "glTexSubImage2DEXT", (GLvoid
*) glTexSubImage2DEXT
},
972 /* 10. GL_EXT_copy_texture */
973 { "glCopyTexImage1DEXT", (GLvoid
*) glCopyTexImage1DEXT
},
974 { "glCopyTexImage2DEXT", (GLvoid
*) glCopyTexImage2DEXT
},
975 { "glCopyTexSubImage1DEXT", (GLvoid
*) glCopyTexSubImage1DEXT
},
976 { "glCopyTexSubImage2DEXT", (GLvoid
*) glCopyTexSubImage2DEXT
},
978 /* 11. GL_EXT_histogram */
979 { "glGetHistogramEXT", (GLvoid
*) glGetHistogramEXT
},
980 { "glGetHistogramParameterfvEXT", (GLvoid
*) glGetHistogramParameterfvEXT
},
981 { "glGetHistogramParameterivEXT", (GLvoid
*) glGetHistogramParameterivEXT
},
982 { "glGetMinmaxEXT", (GLvoid
*) glGetMinmaxEXT
},
983 { "glGetMinmaxParameterfvEXT", (GLvoid
*) glGetMinmaxParameterfvEXT
},
984 { "glGetMinmaxParameterivEXT", (GLvoid
*) glGetMinmaxParameterivEXT
},
985 { "glHistogramEXT", (GLvoid
*) glHistogramEXT
},
986 { "glMinmaxEXT", (GLvoid
*) glMinmaxEXT
},
987 { "glResetHistogramEXT", (GLvoid
*) glResetHistogramEXT
},
988 { "glResetMinmaxEXT", (GLvoid
*) glResetMinmaxEXT
},
990 /* 12. GL_EXT_convolution */
991 { "glConvolutionFilter1DEXT", (GLvoid
*) glConvolutionFilter1DEXT
},
992 { "glConvolutionFilter2DEXT", (GLvoid
*) glConvolutionFilter2DEXT
},
993 { "glConvolutionParameterfEXT", (GLvoid
*) glConvolutionParameterfEXT
},
994 { "glConvolutionParameterfvEXT", (GLvoid
*) glConvolutionParameterfvEXT
},
995 { "glConvolutionParameteriEXT", (GLvoid
*) glConvolutionParameteriEXT
},
996 { "glConvolutionParameterivEXT", (GLvoid
*) glConvolutionParameterivEXT
},
997 { "glCopyConvolutionFilter1DEXT", (GLvoid
*) glCopyConvolutionFilter1DEXT
},
998 { "glCopyConvolutionFilter2DEXT", (GLvoid
*) glCopyConvolutionFilter2DEXT
},
999 { "glGetConvolutionFilterEXT", (GLvoid
*) glGetConvolutionFilterEXT
},
1000 { "glGetConvolutionParameterivEXT", (GLvoid
*) glGetConvolutionParameterivEXT
},
1001 { "glGetConvolutionParameterfvEXT", (GLvoid
*) glGetConvolutionParameterfvEXT
},
1002 { "glGetSeparableFilterEXT", (GLvoid
*) glGetSeparableFilterEXT
},
1003 { "glSeparableFilter2DEXT", (GLvoid
*) glSeparableFilter2DEXT
},
1005 /* 14. GL_SGI_color_table */
1006 { "glColorTableSGI", (GLvoid
*) NotImplemented
},
1007 { "glColorTableParameterfvSGI", (GLvoid
*) NotImplemented
},
1008 { "glColorTableParameterivSGI", (GLvoid
*) NotImplemented
},
1009 { "glCopyColorTableSGI", (GLvoid
*) NotImplemented
},
1010 { "glGetColorTableSGI", (GLvoid
*) NotImplemented
},
1011 { "glGetColorTableParameterfvSGI", (GLvoid
*) NotImplemented
},
1012 { "glGetColorTableParameterivSGI", (GLvoid
*) NotImplemented
},
1014 /* 15. GL_SGIS_pixel_texture */
1015 { "glPixelTexGenParameterfSGIS", (GLvoid
*) NotImplemented
},
1016 { "glPixelTexGenParameteriSGIS", (GLvoid
*) NotImplemented
},
1017 { "glGetPixelTexGenParameterfvSGIS", (GLvoid
*) NotImplemented
},
1018 { "glGetPixelTexGenParameterivSGIS", (GLvoid
*) NotImplemented
},
1020 /* 16. GL_SGIS_texture4D */
1021 { "glTexImage4DSGIS", (GLvoid
*) NotImplemented
},
1022 { "glTexSubImage4DSGIS", (GLvoid
*) NotImplemented
},
1024 /* 20. GL_EXT_texture_object */
1025 { "glAreTexturesResidentEXT", (GLvoid
*) glAreTexturesResidentEXT
},
1026 { "glBindTextureEXT", (GLvoid
*) glBindTextureEXT
},
1027 { "glDeleteTexturesEXT", (GLvoid
*) glDeleteTexturesEXT
},
1028 { "glGenTexturesEXT", (GLvoid
*) glGenTexturesEXT
},
1029 { "glIsTextureEXT", (GLvoid
*) glIsTextureEXT
},
1030 { "glPrioritizeTexturesEXT", (GLvoid
*) glPrioritizeTexturesEXT
},
1032 /* 21. GL_SGIS_detail_texture */
1033 { "glDetailTexFuncSGIS", (GLvoid
*) NotImplemented
},
1034 { "glGetDetailTexFuncSGIS", (GLvoid
*) NotImplemented
},
1036 /* 22. GL_SGIS_sharpen_texture */
1037 { "glGetSharpenTexFuncSGIS", (GLvoid
*) NotImplemented
},
1038 { "glSharpenTexFuncSGIS", (GLvoid
*) NotImplemented
},
1040 /* 25. GL_SGIS_multisample */
1041 { "glSampleMaskSGIS", (GLvoid
*) NotImplemented
},
1042 { "glSamplePatternSGIS", (GLvoid
*) NotImplemented
},
1044 /* 30. GL_EXT_vertex_array */
1045 { "glArrayElementEXT", (GLvoid
*) glArrayElementEXT
},
1046 { "glColorPointerEXT", (GLvoid
*) glColorPointerEXT
},
1047 { "glDrawArraysEXT", (GLvoid
*) glDrawArraysEXT
},
1048 { "glEdgeFlagPointerEXT", (GLvoid
*) glEdgeFlagPointerEXT
},
1049 { "glGetPointervEXT", (GLvoid
*) glGetPointervEXT
},
1050 { "glIndexPointerEXT", (GLvoid
*) glIndexPointerEXT
},
1051 { "glNormalPointerEXT", (GLvoid
*) glNormalPointerEXT
},
1052 { "glTexCoordPointerEXT", (GLvoid
*) glTexCoordPointerEXT
},
1053 { "glVertexPointerEXT", (GLvoid
*) glVertexPointerEXT
},
1055 /* 37. GL_EXT_blend_minmax */
1056 { "glBlendEquationEXT", (GLvoid
*) glBlendEquationEXT
},
1058 /* 52. GL_SGIX_sprite */
1059 { "glSpriteParameterfSGIX", (GLvoid
*) NotImplemented
},
1060 { "glSpriteParameterfvSGIX", (GLvoid
*) NotImplemented
},
1061 { "glSpriteParameteriSGIX", (GLvoid
*) NotImplemented
},
1062 { "glSpriteParameterivSGIX", (GLvoid
*) NotImplemented
},
1064 /* 54. GL_EXT_point_parameters */
1065 { "glPointParameterfEXT", (GLvoid
*) NotImplemented
},
1066 { "glPointParameterfvEXT", (GLvoid
*) NotImplemented
},
1068 /* 55. GL_SGIX_instruments */
1069 { "glInstrumentsBufferSGIX", (GLvoid
*) NotImplemented
},
1070 { "glStartInstrumentsSGIX", (GLvoid
*) NotImplemented
},
1071 { "glStopInstrumentsSGIX", (GLvoid
*) NotImplemented
},
1072 { "glReadInstrumentsSGIX", (GLvoid
*) NotImplemented
},
1073 { "glPollInstrumentsSGIX", (GLvoid
*) NotImplemented
},
1074 { "glGetInstrumentsSGIX", (GLvoid
*) NotImplemented
},
1076 /* 57. GL_SGIX_framezoom */
1077 { "glFrameZoomSGIX", (GLvoid
*) NotImplemented
},
1079 /* 60. GL_SGIX_reference_plane */
1080 { "glReferencePlaneSGIX", (GLvoid
*) NotImplemented
},
1082 /* 61. GL_SGIX_flush_raster */
1083 { "glFlushRasterSGIX", (GLvoid
*) NotImplemented
},
1085 /* 66. GL_HP_image_transform */
1086 { "glGetImageTransformParameterfvHP", (GLvoid
*) NotImplemented
},
1087 { "glGetImageTransformParameterivHP", (GLvoid
*) NotImplemented
},
1088 { "glImageTransformParameterfHP", (GLvoid
*) NotImplemented
},
1089 { "glImageTransformParameterfvHP", (GLvoid
*) NotImplemented
},
1090 { "glImageTransformParameteriHP", (GLvoid
*) NotImplemented
},
1091 { "glImageTransformParameterivHP", (GLvoid
*) NotImplemented
},
1093 /* 74. GL_EXT_color_subtable */
1094 { "glColorSubTableEXT", (GLvoid
*) NotImplemented
},
1095 { "glCopyColorSubTableEXT", (GLvoid
*) NotImplemented
},
1097 /* 77. GL_PGI_misc_hints */
1098 { "glHintPGI", (GLvoid
*) NotImplemented
},
1100 /* 78. GL_EXT_paletted_texture */
1101 { "glColorTableEXT", (GLvoid
*) glColorTableEXT
},
1102 { "glGetColorTableEXT", (GLvoid
*) glGetColorTableEXT
},
1103 { "glGetColorTableParameterfvEXT", (GLvoid
*) glGetColorTableParameterfvEXT
},
1104 { "glGetColorTableParameterivEXT", (GLvoid
*) glGetColorTableParameterivEXT
},
1106 /* 80. GL_SGIX_list_priority */
1107 { "glGetListParameterfvSGIX", (GLvoid
*) NotImplemented
},
1108 { "glGetListParameterivSGIX", (GLvoid
*) NotImplemented
},
1109 { "glListParameterfSGIX", (GLvoid
*) NotImplemented
},
1110 { "glListParameterfvSGIX", (GLvoid
*) NotImplemented
},
1111 { "glListParameteriSGIX", (GLvoid
*) NotImplemented
},
1112 { "glListParameterivSGIX", (GLvoid
*) NotImplemented
},
1114 /* 94. GL_EXT_index_material */
1115 { "glIndexMaterialEXT", (GLvoid
*) NotImplemented
},
1117 /* 95. GL_EXT_index_func */
1118 { "glIndexFuncEXT", (GLvoid
*) NotImplemented
},
1120 /* 97. GL_EXT_compiled_vertex_array */
1121 { "glLockArraysEXT", (GLvoid
*) glLockArraysEXT
},
1122 { "glUnlockArraysEXT", (GLvoid
*) glUnlockArraysEXT
},
1124 /* 98. GL_EXT_cull_vertex */
1125 { "glCullParameterfvEXT", (GLvoid
*) NotImplemented
},
1126 { "glCullParameterdvEXT", (GLvoid
*) NotImplemented
},
1128 /* 173. GL_EXT/INGR_blend_func_separate */
1129 { "glBlendFuncSeparateINGR", (GLvoid
*) glBlendFuncSeparateINGR
},
1131 /* GL_MESA_window_pos */
1132 { "glWindowPos4fMESA", (GLvoid
*) glWindowPos4fMESA
},
1134 /* GL_MESA_resize_buffers */
1135 { "glResizeBuffersMESA", (GLvoid
*) glResizeBuffersMESA
},
1137 /* GL_ARB_transpose_matrix */
1138 { "glLoadTransposeMatrixdARB", (GLvoid
*) glLoadTransposeMatrixdARB
},
1139 { "glLoadTransposeMatrixfARB", (GLvoid
*) glLoadTransposeMatrixfARB
},
1140 { "glMultTransposeMatrixdARB", (GLvoid
*) glMultTransposeMatrixdARB
},
1141 { "glMultTransposeMatrixfARB", (GLvoid
*) glMultTransposeMatrixfARB
},
1143 { NULL
, NULL
} /* end of list marker */