1 /* $Id: glapi.c,v 1.23 2000/01/14 16:35:25 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999-2000 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"
49 /* This is used when thread safety is disabled */
50 static struct _glapi_table
*Dispatch
= &__glapi_noop_table
;
52 /* Used when thread safety disabled */
53 void *_glapi_CurrentContext
= NULL
;
60 /* Flag to indicate whether thread-safe dispatch is enabled */
61 static GLboolean ThreadSafe
= GL_FALSE
;
63 static _glthread_TSD DispatchTSD
;
65 static void dispatch_thread_init()
67 _glthread_InitTSD(&DispatchTSD
);
71 static _glthread_TSD ContextTSD
;
73 static void context_thread_init()
75 _glthread_InitTSD(&ContextTSD
);
82 static GLuint MaxDispatchOffset
= sizeof(struct _glapi_table
) / sizeof(void *) - 1;
83 static GLboolean GetSizeCalled
= GL_FALSE
;
88 * We should call this periodically from a function such as glXMakeCurrent
89 * in order to test if multiple threads are being used. When we detect
90 * that situation we should then call _glapi_enable_thread_safety()
93 _glapi_check_multithread(void)
97 static unsigned long knownID
;
98 static GLboolean firstCall
= GL_TRUE
;
100 knownID
= _glthread_GetID();
101 firstCall
= GL_FALSE
;
103 else if (knownID
!= _glthread_GetID()) {
104 ThreadSafe
= GL_TRUE
;
108 /* make sure that this thread's dispatch pointer isn't null */
109 if (!_glapi_get_dispatch()) {
110 _glapi_set_dispatch(NULL
);
119 * Set the current context pointer for this thread.
120 * The context pointer is an opaque type which should be cast to
121 * void from the real context pointer type.
124 _glapi_set_current_context(void *context
)
127 _glthread_SetTSD(&ContextTSD
, context
, context_thread_init
);
129 _glapi_CurrentContext
= NULL
; /* to help with debugging */
131 _glapi_CurrentContext
= context
;
133 _glapi_CurrentContext
= context
;
140 * Get the current context pointer for this thread.
141 * The context pointer is an opaque type which should be cast from
142 * void to the real context pointer type.
145 _glapi_get_current_context(void)
149 return _glthread_GetTSD(&ContextTSD
);
152 return _glapi_CurrentContext
;
155 return _glapi_CurrentContext
;
162 * Set the global or per-thread dispatch table pointer.
165 _glapi_set_dispatch(struct _glapi_table
*dispatch
)
168 /* use the no-op functions */
169 dispatch
= &__glapi_noop_table
;
173 _glapi_check_table(dispatch
);
178 _glthread_SetTSD(&DispatchTSD
, (void*) dispatch
, dispatch_thread_init
);
180 Dispatch
= NULL
; /* to help with debugging */
191 * Return pointer to current dispatch table for calling thread.
193 struct _glapi_table
*
194 _glapi_get_dispatch(void)
198 return (struct _glapi_table
*) _glthread_GetTSD(&DispatchTSD
);
212 * Return size of dispatch table struct as number of functions (or
216 _glapi_get_dispatch_table_size(void)
218 /* return sizeof(struct _glapi_table) / sizeof(void *);*/
219 GetSizeCalled
= GL_TRUE
;
220 return MaxDispatchOffset
+ 1;
226 * Get API dispatcher version string.
227 * XXX this isn't well defined yet.
230 _glapi_get_version(void)
236 struct name_address_pair
{
241 static struct name_address_pair static_functions
[1000];
246 * Return dispatch table offset of the named static (built-in) function.
247 * Return -1 if function not found.
250 get_static_proc_offset(const char *funcName
)
253 for (i
= 0; static_functions
[i
].Name
; i
++) {
254 if (strcmp(static_functions
[i
].Name
, funcName
) == 0) {
263 * Return dispatch function address the named static (built-in) function.
264 * Return NULL if function not found.
267 get_static_proc_address(const char *funcName
)
269 GLuint i
= get_static_proc_offset(funcName
);
271 return static_functions
[i
].Address
;
278 /**********************************************************************
279 * Extension function management.
283 struct _glapi_ext_entrypoint
{
284 const char *Name
; /* the extension function's name */
285 GLuint Offset
; /* relative to start of dispatch table */
286 GLvoid
*Address
; /* address of dispatch function */
289 static struct _glapi_ext_entrypoint ExtEntryTable
[_GLAPI_EXTRA_SLOTS
];
290 static GLuint NumExtEntryPoints
= 0;
295 * Generate a dispatch function (entrypoint) which jumps through
296 * the given slot number (offset) in the current dispatch table.
299 generate_entrypoint(GLuint offset
)
301 /* XXX need to generate some assembly code here */
309 * Add a new extension function entrypoint.
310 * Return: GL_TRUE = success or GL_FALSE = failure
313 _glapi_add_entrypoint(const char *funcName
, GLuint offset
)
317 /* Make sure we don't try to add a new entrypoint after someone
318 * has already called _glapi_get_dispatch_table_size()! If that's
319 * happened the caller's information will now be out of date.
321 assert(!GetSizeCalled
);
323 /* first check if the named function is already statically present */
324 index
= get_static_proc_offset(funcName
);
327 assert(index
== offset
);
330 /* else if (offset < _glapi_get_dispatch_table_size()) { */
332 /* be sure index and name match known data */
334 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
335 if (strcmp(ExtEntryTable
[i
].Name
, funcName
) == 0) {
336 /* function already registered with api */
337 if (ExtEntryTable
[i
].Offset
== offset
) {
338 return GL_TRUE
; /* offsets match */
341 return GL_FALSE
; /* bad offset! */
345 assert(NumExtEntryPoints
< _GLAPI_EXTRA_SLOTS
);
346 ExtEntryTable
[NumExtEntryPoints
].Name
= strdup(funcName
);
347 ExtEntryTable
[NumExtEntryPoints
].Offset
= offset
;
348 ExtEntryTable
[NumExtEntryPoints
].Address
= generate_entrypoint(offset
);
351 if (offset
> MaxDispatchOffset
)
352 MaxDispatchOffset
= offset
;
366 * Return offset of entrypoint for named function within dispatch table.
369 _glapi_get_proc_offset(const char *funcName
)
371 /* search extension functions first */
373 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
374 if (strcmp(ExtEntryTable
[i
].Name
, funcName
) == 0) {
375 return ExtEntryTable
[i
].Offset
;
379 /* search static functions */
380 return get_static_proc_offset(funcName
);
386 * Return entrypoint for named function.
389 _glapi_get_proc_address(const char *funcName
)
391 /* search extension functions first */
393 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
394 if (strcmp(ExtEntryTable
[i
].Name
, funcName
) == 0) {
395 return ExtEntryTable
[i
].Address
;
399 /* search static functions */
400 return get_static_proc_address(funcName
);
407 * Return the name of the function at the given dispatch offset.
408 * This is only intended for debugging.
411 _glapi_get_proc_name(GLuint offset
)
413 GLuint n
= sizeof(static_functions
) / sizeof(struct name_address_pair
);
415 return static_functions
[offset
].Name
;
418 /* search added extension functions */
420 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
421 if (ExtEntryTable
[i
].Offset
== offset
) {
422 return ExtEntryTable
[i
].Name
;
432 * Make sure there are no NULL pointers in the given dispatch table.
433 * Intented for debugging purposes.
436 _glapi_check_table(const struct _glapi_table
*table
)
438 const GLuint entries
= _glapi_get_dispatch_table_size();
439 const void **tab
= (const void **) table
;
441 for (i
= 1; i
< entries
; i
++) {
446 /* Do some spot checks to be sure that the dispatch table
447 * slots are assigned correctly.
450 GLuint BeginOffset
= _glapi_get_proc_offset("glBegin");
451 char *BeginFunc
= (char*) &table
->Begin
;
452 GLuint offset
= (BeginFunc
- (char *) table
) / sizeof(void *);
453 assert(BeginOffset
== _gloffset_Begin
);
454 assert(BeginOffset
== offset
);
457 GLuint viewportOffset
= _glapi_get_proc_offset("glViewport");
458 char *viewportFunc
= (char*) &table
->Viewport
;
459 GLuint offset
= (viewportFunc
- (char *) table
) / sizeof(void *);
460 assert(viewportOffset
== _gloffset_Viewport
);
461 assert(viewportOffset
== offset
);
464 GLuint VertexPointerOffset
= _glapi_get_proc_offset("glVertexPointer");
465 char *VertexPointerFunc
= (char*) &table
->VertexPointer
;
466 GLuint offset
= (VertexPointerFunc
- (char *) table
) / sizeof(void *);
467 assert(VertexPointerOffset
== _gloffset_VertexPointer
);
468 assert(VertexPointerOffset
== offset
);
471 GLuint ResetMinMaxOffset
= _glapi_get_proc_offset("glResetMinmax");
472 char *ResetMinMaxFunc
= (char*) &table
->ResetMinmax
;
473 GLuint offset
= (ResetMinMaxFunc
- (char *) table
) / sizeof(void *);
474 assert(ResetMinMaxOffset
== _gloffset_ResetMinmax
);
475 assert(ResetMinMaxOffset
== offset
);
478 GLuint blendColorOffset
= _glapi_get_proc_offset("glBlendColorEXT");
479 char *blendColorFunc
= (char*) &table
->BlendColorEXT
;
480 GLuint offset
= (blendColorFunc
- (char *) table
) / sizeof(void *);
481 assert(blendColorOffset
== _gloffset_BlendColorEXT
);
482 assert(blendColorOffset
== offset
);
485 GLuint istextureOffset
= _glapi_get_proc_offset("glIsTextureEXT");
486 char *istextureFunc
= (char*) &table
->IsTextureEXT
;
487 GLuint offset
= (istextureFunc
- (char *) table
) / sizeof(void *);
488 assert(istextureOffset
== _gloffset_IsTextureEXT
);
489 assert(istextureOffset
== offset
);
495 /**********************************************************************
496 * Generate the GL entrypoint functions here.
500 #define KEYWORD2 GLAPIENTRY
501 #ifdef USE_MGL_NAMESPACE
502 #define NAME(func) mgl##func
504 #define NAME(func) gl##func
514 static int trace
= -1;
516 trace
= getenv("MESA_TRACE") ? 1 : 0;
520 #define DISPATCH(FUNC, ARGS, MESSAGE) \
521 const struct _glapi_table *dispatch; \
522 dispatch = Dispatch ? Dispatch : _glapi_get_dispatch(); \
523 if (trace()) printf MESSAGE; \
524 (dispatch->FUNC) ARGS
526 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
527 const struct _glapi_table *dispatch; \
528 dispatch = Dispatch ? Dispatch : _glapi_get_dispatch(); \
529 if (trace()) printf MESSAGE; \
530 return (dispatch->FUNC) ARGS
534 #define DISPATCH(FUNC, ARGS, MESSAGE) \
535 const struct _glapi_table *dispatch; \
536 dispatch = Dispatch ? Dispatch : _glapi_get_dispatch(); \
537 (dispatch->FUNC) ARGS
539 #define RETURN_DISPATCH(FUNC, ARGS, MESSAGE) \
540 const struct _glapi_table *dispatch; \
541 dispatch = Dispatch ? Dispatch : _glapi_get_dispatch(); \
542 return (dispatch->FUNC) ARGS
551 #include "glapitemp.h"
555 * For each entry in static_functions[] which use this function
556 * we should implement a dispatch function in glapitemp.h and
559 static int NotImplemented(void)
566 static struct name_address_pair static_functions
[] = {
567 { "NotImplemented", (GLvoid
*) NotImplemented
},
570 { "glAccum", (GLvoid
*) glAccum
},
571 { "glAlphaFunc", (GLvoid
*) glAlphaFunc
},
572 { "glBegin", (GLvoid
*) glBegin
},
573 { "glBitmap", (GLvoid
*) glBitmap
},
574 { "glBlendFunc", (GLvoid
*) glBlendFunc
},
575 { "glCallList", (GLvoid
*) glCallList
},
576 { "glCallLists", (GLvoid
*) glCallLists
},
577 { "glClear", (GLvoid
*) glClear
},
578 { "glClearAccum", (GLvoid
*) glClearAccum
},
579 { "glClearColor", (GLvoid
*) glClearColor
},
580 { "glClearDepth", (GLvoid
*) glClearDepth
},
581 { "glClearIndex", (GLvoid
*) glClearIndex
},
582 { "glClearStencil", (GLvoid
*) glClearStencil
},
583 { "glClipPlane", (GLvoid
*) glClipPlane
},
584 { "glColor3b", (GLvoid
*) glColor3b
},
585 { "glColor3bv", (GLvoid
*) glColor3bv
},
586 { "glColor3d", (GLvoid
*) glColor3d
},
587 { "glColor3dv", (GLvoid
*) glColor3dv
},
588 { "glColor3f", (GLvoid
*) glColor3f
},
589 { "glColor3fv", (GLvoid
*) glColor3fv
},
590 { "glColor3i", (GLvoid
*) glColor3i
},
591 { "glColor3iv", (GLvoid
*) glColor3iv
},
592 { "glColor3s", (GLvoid
*) glColor3s
},
593 { "glColor3sv", (GLvoid
*) glColor3sv
},
594 { "glColor3ub", (GLvoid
*) glColor3ub
},
595 { "glColor3ubv", (GLvoid
*) glColor3ubv
},
596 { "glColor3ui", (GLvoid
*) glColor3ui
},
597 { "glColor3uiv", (GLvoid
*) glColor3uiv
},
598 { "glColor3us", (GLvoid
*) glColor3us
},
599 { "glColor3usv", (GLvoid
*) glColor3usv
},
600 { "glColor4b", (GLvoid
*) glColor4b
},
601 { "glColor4bv", (GLvoid
*) glColor4bv
},
602 { "glColor4d", (GLvoid
*) glColor4d
},
603 { "glColor4dv", (GLvoid
*) glColor4dv
},
604 { "glColor4f", (GLvoid
*) glColor4f
},
605 { "glColor4fv", (GLvoid
*) glColor4fv
},
606 { "glColor4i", (GLvoid
*) glColor4i
},
607 { "glColor4iv", (GLvoid
*) glColor4iv
},
608 { "glColor4s", (GLvoid
*) glColor4s
},
609 { "glColor4sv", (GLvoid
*) glColor4sv
},
610 { "glColor4ub", (GLvoid
*) glColor4ub
},
611 { "glColor4ubv", (GLvoid
*) glColor4ubv
},
612 { "glColor4ui", (GLvoid
*) glColor4ui
},
613 { "glColor4uiv", (GLvoid
*) glColor4uiv
},
614 { "glColor4us", (GLvoid
*) glColor4us
},
615 { "glColor4usv", (GLvoid
*) glColor4usv
},
616 { "glColorMask", (GLvoid
*) glColorMask
},
617 { "glColorMaterial", (GLvoid
*) glColorMaterial
},
618 { "glCopyPixels", (GLvoid
*) glCopyPixels
},
619 { "glCullFace", (GLvoid
*) glCullFace
},
620 { "glDeleteLists", (GLvoid
*) glDeleteLists
},
621 { "glDepthFunc", (GLvoid
*) glDepthFunc
},
622 { "glDepthMask", (GLvoid
*) glDepthMask
},
623 { "glDepthRange", (GLvoid
*) glDepthRange
},
624 { "glDisable", (GLvoid
*) glDisable
},
625 { "glDrawBuffer", (GLvoid
*) glDrawBuffer
},
626 { "glDrawPixels", (GLvoid
*) glDrawPixels
},
627 { "glEdgeFlag", (GLvoid
*) glEdgeFlag
},
628 { "glEdgeFlagv", (GLvoid
*) glEdgeFlagv
},
629 { "glEnable", (GLvoid
*) glEnable
},
630 { "glEnd", (GLvoid
*) glEnd
},
631 { "glEndList", (GLvoid
*) glEndList
},
632 { "glEvalCoord1d", (GLvoid
*) glEvalCoord1d
},
633 { "glEvalCoord1dv", (GLvoid
*) glEvalCoord1dv
},
634 { "glEvalCoord1f", (GLvoid
*) glEvalCoord1f
},
635 { "glEvalCoord1fv", (GLvoid
*) glEvalCoord1fv
},
636 { "glEvalCoord2d", (GLvoid
*) glEvalCoord2d
},
637 { "glEvalCoord2dv", (GLvoid
*) glEvalCoord2dv
},
638 { "glEvalCoord2f", (GLvoid
*) glEvalCoord2f
},
639 { "glEvalCoord2fv", (GLvoid
*) glEvalCoord2fv
},
640 { "glEvalMesh1", (GLvoid
*) glEvalMesh1
},
641 { "glEvalMesh2", (GLvoid
*) glEvalMesh2
},
642 { "glEvalPoint1", (GLvoid
*) glEvalPoint1
},
643 { "glEvalPoint2", (GLvoid
*) glEvalPoint2
},
644 { "glFeedbackBuffer", (GLvoid
*) glFeedbackBuffer
},
645 { "glFinish", (GLvoid
*) glFinish
},
646 { "glFlush", (GLvoid
*) glFlush
},
647 { "glFogf", (GLvoid
*) glFogf
},
648 { "glFogfv", (GLvoid
*) glFogfv
},
649 { "glFogi", (GLvoid
*) glFogi
},
650 { "glFogiv", (GLvoid
*) glFogiv
},
651 { "glFrontFace", (GLvoid
*) glFrontFace
},
652 { "glFrustum", (GLvoid
*) glFrustum
},
653 { "glGenLists", (GLvoid
*) glGenLists
},
654 { "glGetBooleanv", (GLvoid
*) glGetBooleanv
},
655 { "glGetClipPlane", (GLvoid
*) glGetClipPlane
},
656 { "glGetDoublev", (GLvoid
*) glGetDoublev
},
657 { "glGetError", (GLvoid
*) glGetError
},
658 { "glGetFloatv", (GLvoid
*) glGetFloatv
},
659 { "glGetIntegerv", (GLvoid
*) glGetIntegerv
},
660 { "glGetLightfv", (GLvoid
*) glGetLightfv
},
661 { "glGetLightiv", (GLvoid
*) glGetLightiv
},
662 { "glGetMapdv", (GLvoid
*) glGetMapdv
},
663 { "glGetMapfv", (GLvoid
*) glGetMapfv
},
664 { "glGetMapiv", (GLvoid
*) glGetMapiv
},
665 { "glGetMaterialfv", (GLvoid
*) glGetMaterialfv
},
666 { "glGetMaterialiv", (GLvoid
*) glGetMaterialiv
},
667 { "glGetPixelMapfv", (GLvoid
*) glGetPixelMapfv
},
668 { "glGetPixelMapuiv", (GLvoid
*) glGetPixelMapuiv
},
669 { "glGetPixelMapusv", (GLvoid
*) glGetPixelMapusv
},
670 { "glGetPolygonStipple", (GLvoid
*) glGetPolygonStipple
},
671 { "glGetString", (GLvoid
*) glGetString
},
672 { "glGetTexEnvfv", (GLvoid
*) glGetTexEnvfv
},
673 { "glGetTexEnviv", (GLvoid
*) glGetTexEnviv
},
674 { "glGetTexGendv", (GLvoid
*) glGetTexGendv
},
675 { "glGetTexGenfv", (GLvoid
*) glGetTexGenfv
},
676 { "glGetTexGeniv", (GLvoid
*) glGetTexGeniv
},
677 { "glGetTexImage", (GLvoid
*) glGetTexImage
},
678 { "glGetTexLevelParameterfv", (GLvoid
*) glGetTexLevelParameterfv
},
679 { "glGetTexLevelParameteriv", (GLvoid
*) glGetTexLevelParameteriv
},
680 { "glGetTexParameterfv", (GLvoid
*) glGetTexParameterfv
},
681 { "glGetTexParameteriv", (GLvoid
*) glGetTexParameteriv
},
682 { "glHint", (GLvoid
*) glHint
},
683 { "glIndexMask", (GLvoid
*) glIndexMask
},
684 { "glIndexd", (GLvoid
*) glIndexd
},
685 { "glIndexdv", (GLvoid
*) glIndexdv
},
686 { "glIndexf", (GLvoid
*) glIndexf
},
687 { "glIndexfv", (GLvoid
*) glIndexfv
},
688 { "glIndexi", (GLvoid
*) glIndexi
},
689 { "glIndexiv", (GLvoid
*) glIndexiv
},
690 { "glIndexs", (GLvoid
*) glIndexs
},
691 { "glIndexsv", (GLvoid
*) glIndexsv
},
692 { "glInitNames", (GLvoid
*) glInitNames
},
693 { "glIsEnabled", (GLvoid
*) glIsEnabled
},
694 { "glIsList", (GLvoid
*) glIsList
},
695 { "glLightModelf", (GLvoid
*) glLightModelf
},
696 { "glLightModelfv", (GLvoid
*) glLightModelfv
},
697 { "glLightModeli", (GLvoid
*) glLightModeli
},
698 { "glLightModeliv", (GLvoid
*) glLightModeliv
},
699 { "glLightf", (GLvoid
*) glLightf
},
700 { "glLightfv", (GLvoid
*) glLightfv
},
701 { "glLighti", (GLvoid
*) glLighti
},
702 { "glLightiv", (GLvoid
*) glLightiv
},
703 { "glLineStipple", (GLvoid
*) glLineStipple
},
704 { "glLineWidth", (GLvoid
*) glLineWidth
},
705 { "glListBase", (GLvoid
*) glListBase
},
706 { "glLoadIdentity", (GLvoid
*) glLoadIdentity
},
707 { "glLoadMatrixd", (GLvoid
*) glLoadMatrixd
},
708 { "glLoadMatrixf", (GLvoid
*) glLoadMatrixf
},
709 { "glLoadName", (GLvoid
*) glLoadName
},
710 { "glLogicOp", (GLvoid
*) glLogicOp
},
711 { "glMap1d", (GLvoid
*) glMap1d
},
712 { "glMap1f", (GLvoid
*) glMap1f
},
713 { "glMap2d", (GLvoid
*) glMap2d
},
714 { "glMap2f", (GLvoid
*) glMap2f
},
715 { "glMapGrid1d", (GLvoid
*) glMapGrid1d
},
716 { "glMapGrid1f", (GLvoid
*) glMapGrid1f
},
717 { "glMapGrid2d", (GLvoid
*) glMapGrid2d
},
718 { "glMapGrid2f", (GLvoid
*) glMapGrid2f
},
719 { "glMaterialf", (GLvoid
*) glMaterialf
},
720 { "glMaterialfv", (GLvoid
*) glMaterialfv
},
721 { "glMateriali", (GLvoid
*) glMateriali
},
722 { "glMaterialiv", (GLvoid
*) glMaterialiv
},
723 { "glMatrixMode", (GLvoid
*) glMatrixMode
},
724 { "glMultMatrixd", (GLvoid
*) glMultMatrixd
},
725 { "glMultMatrixf", (GLvoid
*) glMultMatrixf
},
726 { "glNewList", (GLvoid
*) glNewList
},
727 { "glNormal3b", (GLvoid
*) glNormal3b
},
728 { "glNormal3bv", (GLvoid
*) glNormal3bv
},
729 { "glNormal3d", (GLvoid
*) glNormal3d
},
730 { "glNormal3dv", (GLvoid
*) glNormal3dv
},
731 { "glNormal3f", (GLvoid
*) glNormal3f
},
732 { "glNormal3fv", (GLvoid
*) glNormal3fv
},
733 { "glNormal3i", (GLvoid
*) glNormal3i
},
734 { "glNormal3iv", (GLvoid
*) glNormal3iv
},
735 { "glNormal3s", (GLvoid
*) glNormal3s
},
736 { "glNormal3sv", (GLvoid
*) glNormal3sv
},
737 { "glOrtho", (GLvoid
*) glOrtho
},
738 { "glPassThrough", (GLvoid
*) glPassThrough
},
739 { "glPixelMapfv", (GLvoid
*) glPixelMapfv
},
740 { "glPixelMapuiv", (GLvoid
*) glPixelMapuiv
},
741 { "glPixelMapusv", (GLvoid
*) glPixelMapusv
},
742 { "glPixelStoref", (GLvoid
*) glPixelStoref
},
743 { "glPixelStorei", (GLvoid
*) glPixelStorei
},
744 { "glPixelTransferf", (GLvoid
*) glPixelTransferf
},
745 { "glPixelTransferi", (GLvoid
*) glPixelTransferi
},
746 { "glPixelZoom", (GLvoid
*) glPixelZoom
},
747 { "glPointSize", (GLvoid
*) glPointSize
},
748 { "glPolygonMode", (GLvoid
*) glPolygonMode
},
749 { "glPolygonOffset", (GLvoid
*) glPolygonOffset
},
750 { "glPolygonStipple", (GLvoid
*) glPolygonStipple
},
751 { "glPopAttrib", (GLvoid
*) glPopAttrib
},
752 { "glPopMatrix", (GLvoid
*) glPopMatrix
},
753 { "glPopName", (GLvoid
*) glPopName
},
754 { "glPushAttrib", (GLvoid
*) glPushAttrib
},
755 { "glPushMatrix", (GLvoid
*) glPushMatrix
},
756 { "glPushName", (GLvoid
*) glPushName
},
757 { "glRasterPos2d", (GLvoid
*) glRasterPos2d
},
758 { "glRasterPos2dv", (GLvoid
*) glRasterPos2dv
},
759 { "glRasterPos2f", (GLvoid
*) glRasterPos2f
},
760 { "glRasterPos2fv", (GLvoid
*) glRasterPos2fv
},
761 { "glRasterPos2i", (GLvoid
*) glRasterPos2i
},
762 { "glRasterPos2iv", (GLvoid
*) glRasterPos2iv
},
763 { "glRasterPos2s", (GLvoid
*) glRasterPos2s
},
764 { "glRasterPos2sv", (GLvoid
*) glRasterPos2sv
},
765 { "glRasterPos3d", (GLvoid
*) glRasterPos3d
},
766 { "glRasterPos3dv", (GLvoid
*) glRasterPos3dv
},
767 { "glRasterPos3f", (GLvoid
*) glRasterPos3f
},
768 { "glRasterPos3fv", (GLvoid
*) glRasterPos3fv
},
769 { "glRasterPos3i", (GLvoid
*) glRasterPos3i
},
770 { "glRasterPos3iv", (GLvoid
*) glRasterPos3iv
},
771 { "glRasterPos3s", (GLvoid
*) glRasterPos3s
},
772 { "glRasterPos3sv", (GLvoid
*) glRasterPos3sv
},
773 { "glRasterPos4d", (GLvoid
*) glRasterPos4d
},
774 { "glRasterPos4dv", (GLvoid
*) glRasterPos4dv
},
775 { "glRasterPos4f", (GLvoid
*) glRasterPos4f
},
776 { "glRasterPos4fv", (GLvoid
*) glRasterPos4fv
},
777 { "glRasterPos4i", (GLvoid
*) glRasterPos4i
},
778 { "glRasterPos4iv", (GLvoid
*) glRasterPos4iv
},
779 { "glRasterPos4s", (GLvoid
*) glRasterPos4s
},
780 { "glRasterPos4sv", (GLvoid
*) glRasterPos4sv
},
781 { "glReadBuffer", (GLvoid
*) glReadBuffer
},
782 { "glReadPixels", (GLvoid
*) glReadPixels
},
783 { "glRectd", (GLvoid
*) glRectd
},
784 { "glRectdv", (GLvoid
*) glRectdv
},
785 { "glRectf", (GLvoid
*) glRectf
},
786 { "glRectfv", (GLvoid
*) glRectfv
},
787 { "glRecti", (GLvoid
*) glRecti
},
788 { "glRectiv", (GLvoid
*) glRectiv
},
789 { "glRects", (GLvoid
*) glRects
},
790 { "glRectsv", (GLvoid
*) glRectsv
},
791 { "glRenderMode", (GLvoid
*) glRenderMode
},
792 { "glRotated", (GLvoid
*) glRotated
},
793 { "glRotatef", (GLvoid
*) glRotatef
},
794 { "glScaled", (GLvoid
*) glScaled
},
795 { "glScalef", (GLvoid
*) glScalef
},
796 { "glScissor", (GLvoid
*) glScissor
},
797 { "glSelectBuffer", (GLvoid
*) glSelectBuffer
},
798 { "glShadeModel", (GLvoid
*) glShadeModel
},
799 { "glStencilFunc", (GLvoid
*) glStencilFunc
},
800 { "glStencilMask", (GLvoid
*) glStencilMask
},
801 { "glStencilOp", (GLvoid
*) glStencilOp
},
802 { "glTexCoord1d", (GLvoid
*) glTexCoord1d
},
803 { "glTexCoord1dv", (GLvoid
*) glTexCoord1dv
},
804 { "glTexCoord1f", (GLvoid
*) glTexCoord1f
},
805 { "glTexCoord1fv", (GLvoid
*) glTexCoord1fv
},
806 { "glTexCoord1i", (GLvoid
*) glTexCoord1i
},
807 { "glTexCoord1iv", (GLvoid
*) glTexCoord1iv
},
808 { "glTexCoord1s", (GLvoid
*) glTexCoord1s
},
809 { "glTexCoord1sv", (GLvoid
*) glTexCoord1sv
},
810 { "glTexCoord2d", (GLvoid
*) glTexCoord2d
},
811 { "glTexCoord2dv", (GLvoid
*) glTexCoord2dv
},
812 { "glTexCoord2f", (GLvoid
*) glTexCoord2f
},
813 { "glTexCoord2fv", (GLvoid
*) glTexCoord2fv
},
814 { "glTexCoord2i", (GLvoid
*) glTexCoord2i
},
815 { "glTexCoord2iv", (GLvoid
*) glTexCoord2iv
},
816 { "glTexCoord2s", (GLvoid
*) glTexCoord2s
},
817 { "glTexCoord2sv", (GLvoid
*) glTexCoord2sv
},
818 { "glTexCoord3d", (GLvoid
*) glTexCoord3d
},
819 { "glTexCoord3dv", (GLvoid
*) glTexCoord3dv
},
820 { "glTexCoord3f", (GLvoid
*) glTexCoord3f
},
821 { "glTexCoord3fv", (GLvoid
*) glTexCoord3fv
},
822 { "glTexCoord3i", (GLvoid
*) glTexCoord3i
},
823 { "glTexCoord3iv", (GLvoid
*) glTexCoord3iv
},
824 { "glTexCoord3s", (GLvoid
*) glTexCoord3s
},
825 { "glTexCoord3sv", (GLvoid
*) glTexCoord3sv
},
826 { "glTexCoord4d", (GLvoid
*) glTexCoord4d
},
827 { "glTexCoord4dv", (GLvoid
*) glTexCoord4dv
},
828 { "glTexCoord4f", (GLvoid
*) glTexCoord4f
},
829 { "glTexCoord4fv", (GLvoid
*) glTexCoord4fv
},
830 { "glTexCoord4i", (GLvoid
*) glTexCoord4i
},
831 { "glTexCoord4iv", (GLvoid
*) glTexCoord4iv
},
832 { "glTexCoord4s", (GLvoid
*) glTexCoord4s
},
833 { "glTexCoord4sv", (GLvoid
*) glTexCoord4sv
},
834 { "glTexEnvf", (GLvoid
*) glTexEnvf
},
835 { "glTexEnvfv", (GLvoid
*) glTexEnvfv
},
836 { "glTexEnvi", (GLvoid
*) glTexEnvi
},
837 { "glTexEnviv", (GLvoid
*) glTexEnviv
},
838 { "glTexGend", (GLvoid
*) glTexGend
},
839 { "glTexGendv", (GLvoid
*) glTexGendv
},
840 { "glTexGenf", (GLvoid
*) glTexGenf
},
841 { "glTexGenfv", (GLvoid
*) glTexGenfv
},
842 { "glTexGeni", (GLvoid
*) glTexGeni
},
843 { "glTexGeniv", (GLvoid
*) glTexGeniv
},
844 { "glTexImage1D", (GLvoid
*) glTexImage1D
},
845 { "glTexImage2D", (GLvoid
*) glTexImage2D
},
846 { "glTexParameterf", (GLvoid
*) glTexParameterf
},
847 { "glTexParameterfv", (GLvoid
*) glTexParameterfv
},
848 { "glTexParameteri", (GLvoid
*) glTexParameteri
},
849 { "glTexParameteriv", (GLvoid
*) glTexParameteriv
},
850 { "glTranslated", (GLvoid
*) glTranslated
},
851 { "glTranslatef", (GLvoid
*) glTranslatef
},
852 { "glVertex2d", (GLvoid
*) glVertex2d
},
853 { "glVertex2dv", (GLvoid
*) glVertex2dv
},
854 { "glVertex2f", (GLvoid
*) glVertex2f
},
855 { "glVertex2fv", (GLvoid
*) glVertex2fv
},
856 { "glVertex2i", (GLvoid
*) glVertex2i
},
857 { "glVertex2iv", (GLvoid
*) glVertex2iv
},
858 { "glVertex2s", (GLvoid
*) glVertex2s
},
859 { "glVertex2sv", (GLvoid
*) glVertex2sv
},
860 { "glVertex3d", (GLvoid
*) glVertex3d
},
861 { "glVertex3dv", (GLvoid
*) glVertex3dv
},
862 { "glVertex3f", (GLvoid
*) glVertex3f
},
863 { "glVertex3fv", (GLvoid
*) glVertex3fv
},
864 { "glVertex3i", (GLvoid
*) glVertex3i
},
865 { "glVertex3iv", (GLvoid
*) glVertex3iv
},
866 { "glVertex3s", (GLvoid
*) glVertex3s
},
867 { "glVertex3sv", (GLvoid
*) glVertex3sv
},
868 { "glVertex4d", (GLvoid
*) glVertex4d
},
869 { "glVertex4dv", (GLvoid
*) glVertex4dv
},
870 { "glVertex4f", (GLvoid
*) glVertex4f
},
871 { "glVertex4fv", (GLvoid
*) glVertex4fv
},
872 { "glVertex4i", (GLvoid
*) glVertex4i
},
873 { "glVertex4iv", (GLvoid
*) glVertex4iv
},
874 { "glVertex4s", (GLvoid
*) glVertex4s
},
875 { "glVertex4sv", (GLvoid
*) glVertex4sv
},
876 { "glViewport", (GLvoid
*) glViewport
},
879 #ifdef GL_VERSION_1_1
882 #define NAME(X) NotImplemented
884 { "glAreTexturesResident", (GLvoid
*) NAME(glAreTexturesResident
) },
885 { "glArrayElement", (GLvoid
*) NAME(glArrayElement
) },
886 { "glBindTexture", (GLvoid
*) NAME(glBindTexture
) },
887 { "glColorPointer", (GLvoid
*) NAME(glColorPointer
) },
888 { "glCopyTexImage1D", (GLvoid
*) NAME(glCopyTexImage1D
) },
889 { "glCopyTexImage2D", (GLvoid
*) NAME(glCopyTexImage2D
) },
890 { "glCopyTexSubImage1D", (GLvoid
*) NAME(glCopyTexSubImage1D
) },
891 { "glCopyTexSubImage2D", (GLvoid
*) NAME(glCopyTexSubImage2D
) },
892 { "glDeleteTextures", (GLvoid
*) NAME(glDeleteTextures
) },
893 { "glDisableClientState", (GLvoid
*) NAME(glDisableClientState
) },
894 { "glDrawArrays", (GLvoid
*) NAME(glDrawArrays
) },
895 { "glDrawElements", (GLvoid
*) NAME(glDrawElements
) },
896 { "glEdgeFlagPointer", (GLvoid
*) NAME(glEdgeFlagPointer
) },
897 { "glEnableClientState", (GLvoid
*) NAME(glEnableClientState
) },
898 { "glGenTextures", (GLvoid
*) NAME(glGenTextures
) },
899 { "glGetPointerv", (GLvoid
*) NAME(glGetPointerv
) },
900 { "glIndexPointer", (GLvoid
*) NAME(glIndexPointer
) },
901 { "glIndexub", (GLvoid
*) NAME(glIndexub
) },
902 { "glIndexubv", (GLvoid
*) NAME(glIndexubv
) },
903 { "glInterleavedArrays", (GLvoid
*) NAME(glInterleavedArrays
) },
904 { "glIsTexture", (GLvoid
*) NAME(glIsTexture
) },
905 { "glNormalPointer", (GLvoid
*) NAME(glNormalPointer
) },
906 { "glPopClientAttrib", (GLvoid
*) NAME(glPopClientAttrib
) },
907 { "glPrioritizeTextures", (GLvoid
*) NAME(glPrioritizeTextures
) },
908 { "glPushClientAttrib", (GLvoid
*) NAME(glPushClientAttrib
) },
909 { "glTexCoordPointer", (GLvoid
*) NAME(glTexCoordPointer
) },
910 { "glTexSubImage1D", (GLvoid
*) NAME(glTexSubImage1D
) },
911 { "glTexSubImage2D", (GLvoid
*) NAME(glTexSubImage2D
) },
912 { "glVertexPointer", (GLvoid
*) NAME(glVertexPointer
) },
916 #ifdef GL_VERSION_1_2
919 #define NAME(X) NotImplemented
921 { "glCopyTexSubImage3D", (GLvoid
*) NAME(glCopyTexSubImage3D
) },
922 { "glDrawRangeElements", (GLvoid
*) NAME(glDrawRangeElements
) },
923 { "glTexImage3D", (GLvoid
*) NAME(glTexImage3D
) },
924 { "glTexSubImage3D", (GLvoid
*) NAME(glTexSubImage3D
) },
928 #ifdef GL_ARB_imaging
931 #define NAME(X) NotImplemented
933 { "glBlendColor", (GLvoid
*) NAME(glBlendColor
) },
934 { "glBlendEquation", (GLvoid
*) NAME(glBlendEquation
) },
935 { "glColorSubTable", (GLvoid
*) NAME(glColorSubTable
) },
936 { "glColorTable", (GLvoid
*) NAME(glColorTable
) },
937 { "glColorTableParameterfv", (GLvoid
*) NAME(glColorTableParameterfv
) },
938 { "glColorTableParameteriv", (GLvoid
*) NAME(glColorTableParameteriv
) },
939 { "glConvolutionFilter1D", (GLvoid
*) NAME(glConvolutionFilter1D
) },
940 { "glConvolutionFilter2D", (GLvoid
*) NAME(glConvolutionFilter2D
) },
941 { "glConvolutionParameterf", (GLvoid
*) NAME(glConvolutionParameterf
) },
942 { "glConvolutionParameterfv", (GLvoid
*) NAME(glConvolutionParameterfv
) },
943 { "glConvolutionParameteri", (GLvoid
*) NAME(glConvolutionParameteri
) },
944 { "glConvolutionParameteriv", (GLvoid
*) NAME(glConvolutionParameteriv
) },
945 { "glCopyColorSubTable", (GLvoid
*) NAME(glCopyColorSubTable
) },
946 { "glCopyColorTable", (GLvoid
*) NAME(glCopyColorTable
) },
947 { "glCopyConvolutionFilter1D", (GLvoid
*) NAME(glCopyConvolutionFilter1D
) },
948 { "glCopyConvolutionFilter2D", (GLvoid
*) NAME(glCopyConvolutionFilter2D
) },
949 { "glGetColorTable", (GLvoid
*) NAME(glGetColorTable
) },
950 { "glGetColorTableParameterfv", (GLvoid
*) NAME(glGetColorTableParameterfv
) },
951 { "glGetColorTableParameteriv", (GLvoid
*) NAME(glGetColorTableParameteriv
) },
952 { "glGetConvolutionFilter", (GLvoid
*) NAME(glGetConvolutionFilter
) },
953 { "glGetConvolutionParameterfv", (GLvoid
*) NAME(glGetConvolutionParameterfv
) },
954 { "glGetConvolutionParameteriv", (GLvoid
*) NAME(glGetConvolutionParameteriv
) },
955 { "glGetHistogram", (GLvoid
*) NAME(glGetHistogram
) },
956 { "glGetHistogramParameterfv", (GLvoid
*) NAME(glGetHistogramParameterfv
) },
957 { "glGetHistogramParameteriv", (GLvoid
*) NAME(glGetHistogramParameteriv
) },
958 { "glGetMinmax", (GLvoid
*) NAME(glGetMinmax
) },
959 { "glGetMinmaxParameterfv", (GLvoid
*) NAME(glGetMinmaxParameterfv
) },
960 { "glGetMinmaxParameteriv", (GLvoid
*) NAME(glGetMinmaxParameteriv
) },
961 { "glGetSeparableFilter", (GLvoid
*) NAME(glGetSeparableFilter
) },
962 { "glHistogram", (GLvoid
*) NAME(glHistogram
) },
963 { "glMinmax", (GLvoid
*) NAME(glMinmax
) },
964 { "glResetHistogram", (GLvoid
*) NAME(glResetHistogram
) },
965 { "glResetMinmax", (GLvoid
*) NAME(glResetMinmax
) },
966 { "glSeparableFilter2D", (GLvoid
*) NAME(glSeparableFilter2D
) },
969 /* GL_ARB_multitexture */
970 #ifdef GL_ARB_multitexture
973 #define NAME(X) NotImplemented
975 { "glActiveTextureARB", (GLvoid
*) NAME(glActiveTextureARB
) },
976 { "glClientActiveTextureARB", (GLvoid
*) NAME(glClientActiveTextureARB
) },
977 { "glMultiTexCoord1dARB", (GLvoid
*) NAME(glMultiTexCoord1dARB
) },
978 { "glMultiTexCoord1dvARB", (GLvoid
*) NAME(glMultiTexCoord1dvARB
) },
979 { "glMultiTexCoord1fARB", (GLvoid
*) NAME(glMultiTexCoord1fARB
) },
980 { "glMultiTexCoord1fvARB", (GLvoid
*) NAME(glMultiTexCoord1fvARB
) },
981 { "glMultiTexCoord1iARB", (GLvoid
*) NAME(glMultiTexCoord1iARB
) },
982 { "glMultiTexCoord1ivARB", (GLvoid
*) NAME(glMultiTexCoord1ivARB
) },
983 { "glMultiTexCoord1sARB", (GLvoid
*) NAME(glMultiTexCoord1sARB
) },
984 { "glMultiTexCoord1svARB", (GLvoid
*) NAME(glMultiTexCoord1svARB
) },
985 { "glMultiTexCoord2dARB", (GLvoid
*) NAME(glMultiTexCoord2dARB
) },
986 { "glMultiTexCoord2dvARB", (GLvoid
*) NAME(glMultiTexCoord2dvARB
) },
987 { "glMultiTexCoord2fARB", (GLvoid
*) NAME(glMultiTexCoord2fARB
) },
988 { "glMultiTexCoord2fvARB", (GLvoid
*) NAME(glMultiTexCoord2fvARB
) },
989 { "glMultiTexCoord2iARB", (GLvoid
*) NAME(glMultiTexCoord2iARB
) },
990 { "glMultiTexCoord2ivARB", (GLvoid
*) NAME(glMultiTexCoord2ivARB
) },
991 { "glMultiTexCoord2sARB", (GLvoid
*) NAME(glMultiTexCoord2sARB
) },
992 { "glMultiTexCoord2svARB", (GLvoid
*) NAME(glMultiTexCoord2svARB
) },
993 { "glMultiTexCoord3dARB", (GLvoid
*) NAME(glMultiTexCoord3dARB
) },
994 { "glMultiTexCoord3dvARB", (GLvoid
*) NAME(glMultiTexCoord3dvARB
) },
995 { "glMultiTexCoord3fARB", (GLvoid
*) NAME(glMultiTexCoord3fARB
) },
996 { "glMultiTexCoord3fvARB", (GLvoid
*) NAME(glMultiTexCoord3fvARB
) },
997 { "glMultiTexCoord3iARB", (GLvoid
*) NAME(glMultiTexCoord3iARB
) },
998 { "glMultiTexCoord3ivARB", (GLvoid
*) NAME(glMultiTexCoord3ivARB
) },
999 { "glMultiTexCoord3sARB", (GLvoid
*) NAME(glMultiTexCoord3sARB
) },
1000 { "glMultiTexCoord3svARB", (GLvoid
*) NAME(glMultiTexCoord3svARB
) },
1001 { "glMultiTexCoord4dARB", (GLvoid
*) NAME(glMultiTexCoord4dARB
) },
1002 { "glMultiTexCoord4dvARB", (GLvoid
*) NAME(glMultiTexCoord4dvARB
) },
1003 { "glMultiTexCoord4fARB", (GLvoid
*) NAME(glMultiTexCoord4fARB
) },
1004 { "glMultiTexCoord4fvARB", (GLvoid
*) NAME(glMultiTexCoord4fvARB
) },
1005 { "glMultiTexCoord4iARB", (GLvoid
*) NAME(glMultiTexCoord4iARB
) },
1006 { "glMultiTexCoord4ivARB", (GLvoid
*) NAME(glMultiTexCoord4ivARB
) },
1007 { "glMultiTexCoord4sARB", (GLvoid
*) NAME(glMultiTexCoord4sARB
) },
1008 { "glMultiTexCoord4svARB", (GLvoid
*) NAME(glMultiTexCoord4svARB
) },
1011 /* 2. GL_EXT_blend_color */
1012 #ifdef GL_EXT_blend_color
1015 #define NAME(X) NotImplemented
1017 { "glBlendColorEXT", (GLvoid
*) NAME(glBlendColorEXT
) },
1020 /* 3. GL_EXT_polygon_offset */
1021 #ifdef GL_EXT_polygon_offset
1024 #define NAME(X) NotImplemented
1026 { "glPolygonOffsetEXT", (GLvoid
*) NAME(glPolygonOffsetEXT
) },
1029 /* 6. GL_EXT_texture3D */
1030 #ifdef GL_EXT_texture3D
1033 #define NAME(X) NotImplemented
1035 { "glCopyTexSubImage3DEXT", (GLvoid
*) NAME(glCopyTexSubImage3DEXT
) },
1036 { "glTexImage3DEXT", (GLvoid
*) NAME(glTexImage3DEXT
) },
1037 { "glTexSubImage3DEXT", (GLvoid
*) NAME(glTexSubImage3DEXT
) },
1040 /* 7. GL_SGI_texture_filter4 */
1041 #ifdef GL_SGI_texture_filter4
1044 #define NAME(X) NotImplemented
1046 { "glGetTexFilterFuncSGIS", (GLvoid
*) NAME(glGetTexFilterFuncSGIS
) },
1047 { "glTexFilterFuncSGIS", (GLvoid
*) NAME(glTexFilterFuncSGIS
) },
1050 /* 9. GL_EXT_subtexture */
1051 #ifdef GL_EXT_subtexture
1054 #define NAME(X) NotImplemented
1056 { "glTexSubImage1DEXT", (GLvoid
*) NAME(glTexSubImage1DEXT
) },
1057 { "glTexSubImage2DEXT", (GLvoid
*) NAME(glTexSubImage2DEXT
) },
1060 /* 10. GL_EXT_copy_texture */
1061 #ifdef GL_EXT_copy_texture
1064 #define NAME(X) NotImplemented
1066 { "glCopyTexImage1DEXT", (GLvoid
*) NAME(glCopyTexImage1DEXT
) },
1067 { "glCopyTexImage2DEXT", (GLvoid
*) NAME(glCopyTexImage2DEXT
) },
1068 { "glCopyTexSubImage1DEXT", (GLvoid
*) NAME(glCopyTexSubImage1DEXT
) },
1069 { "glCopyTexSubImage2DEXT", (GLvoid
*) NAME(glCopyTexSubImage2DEXT
) },
1072 /* 11. GL_EXT_histogram */
1073 #ifdef GL_EXT_histogram
1076 #define NAME(X) NotImplemented
1078 { "glGetHistogramEXT", (GLvoid
*) NAME(glGetHistogramEXT
) },
1079 { "glGetHistogramParameterfvEXT", (GLvoid
*) NAME(glGetHistogramParameterfvEXT
) },
1080 { "glGetHistogramParameterivEXT", (GLvoid
*) NAME(glGetHistogramParameterivEXT
) },
1081 { "glGetMinmaxEXT", (GLvoid
*) NAME(glGetMinmaxEXT
) },
1082 { "glGetMinmaxParameterfvEXT", (GLvoid
*) NAME(glGetMinmaxParameterfvEXT
) },
1083 { "glGetMinmaxParameterivEXT", (GLvoid
*) NAME(glGetMinmaxParameterivEXT
) },
1084 { "glHistogramEXT", (GLvoid
*) NAME(glHistogramEXT
) },
1085 { "glMinmaxEXT", (GLvoid
*) NAME(glMinmaxEXT
) },
1086 { "glResetHistogramEXT", (GLvoid
*) NAME(glResetHistogramEXT
) },
1087 { "glResetMinmaxEXT", (GLvoid
*) NAME(glResetMinmaxEXT
) },
1090 /* 12. GL_EXT_convolution */
1091 #ifdef GL_EXT_convolution
1094 #define NAME(X) NotImplemented
1096 { "glConvolutionFilter1DEXT", (GLvoid
*) NAME(glConvolutionFilter1DEXT
) },
1097 { "glConvolutionFilter2DEXT", (GLvoid
*) NAME(glConvolutionFilter2DEXT
) },
1098 { "glConvolutionParameterfEXT", (GLvoid
*) NAME(glConvolutionParameterfEXT
) },
1099 { "glConvolutionParameterfvEXT", (GLvoid
*) NAME(glConvolutionParameterfvEXT
) },
1100 { "glConvolutionParameteriEXT", (GLvoid
*) NAME(glConvolutionParameteriEXT
) },
1101 { "glConvolutionParameterivEXT", (GLvoid
*) NAME(glConvolutionParameterivEXT
) },
1102 { "glCopyConvolutionFilter1DEXT", (GLvoid
*) NAME(glCopyConvolutionFilter1DEXT
) },
1103 { "glCopyConvolutionFilter2DEXT", (GLvoid
*) NAME(glCopyConvolutionFilter2DEXT
) },
1104 { "glGetConvolutionFilterEXT", (GLvoid
*) NAME(glGetConvolutionFilterEXT
) },
1105 { "glGetConvolutionParameterivEXT", (GLvoid
*) NAME(glGetConvolutionParameterivEXT
) },
1106 { "glGetConvolutionParameterfvEXT", (GLvoid
*) NAME(glGetConvolutionParameterfvEXT
) },
1107 { "glGetSeparableFilterEXT", (GLvoid
*) NAME(glGetSeparableFilterEXT
) },
1108 { "glSeparableFilter2DEXT", (GLvoid
*) NAME(glSeparableFilter2DEXT
) },
1111 /* 14. GL_SGI_color_table */
1112 #ifdef GL_SGI_color_table
1115 #define NAME(X) NotImplemented
1117 { "glColorTableSGI", (GLvoid
*) NAME(glColorTableSGI
) },
1118 { "glColorTableParameterfvSGI", (GLvoid
*) NAME(glColorTableParameterfvSGI
) },
1119 { "glColorTableParameterivSGI", (GLvoid
*) NAME(glColorTableParameterivSGI
) },
1120 { "glCopyColorTableSGI", (GLvoid
*) NAME(glCopyColorTableSGI
) },
1121 { "glGetColorTableSGI", (GLvoid
*) NAME(glGetColorTableSGI
) },
1122 { "glGetColorTableParameterfvSGI", (GLvoid
*) NAME(glGetColorTableParameterfvSGI
) },
1123 { "glGetColorTableParameterivSGI", (GLvoid
*) NAME(glGetColorTableParameterivSGI
) },
1126 /* 15. GL_SGIS_pixel_texture */
1127 #ifdef GL_SGIS_pixel_texture
1130 #define NAME(X) NotImplemented
1132 { "glPixelTexGenParameterfSGIS", (GLvoid
*) NAME(glPixelTexGenParameterfSGIS
) },
1133 { "glPixelTexGenParameteriSGIS", (GLvoid
*) NAME(glPixelTexGenParameteriSGIS
) },
1134 { "glGetPixelTexGenParameterfvSGIS", (GLvoid
*) NAME(glGetPixelTexGenParameterfvSGIS
) },
1135 { "glGetPixelTexGenParameterivSGIS", (GLvoid
*) NAME(glGetPixelTexGenParameterivSGIS
) },
1138 /* 16. GL_SGIS_texture4D */
1139 #ifdef GL_SGIS_texture4D
1142 #define NAME(X) NotImplemented
1144 { "glTexImage4DSGIS", (GLvoid
*) NAME(glTexImage4DSGIS
) },
1145 { "glTexSubImage4DSGIS", (GLvoid
*) NAME(glTexSubImage4DSGIS
) },
1148 /* 20. GL_EXT_texture_object */
1149 #ifdef GL_EXT_texture_object
1152 #define NAME(X) NotImplemented
1154 { "glAreTexturesResidentEXT", (GLvoid
*) NAME(glAreTexturesResidentEXT
) },
1155 { "glBindTextureEXT", (GLvoid
*) NAME(glBindTextureEXT
) },
1156 { "glDeleteTexturesEXT", (GLvoid
*) NAME(glDeleteTexturesEXT
) },
1157 { "glGenTexturesEXT", (GLvoid
*) NAME(glGenTexturesEXT
) },
1158 { "glIsTextureEXT", (GLvoid
*) NAME(glIsTextureEXT
) },
1159 { "glPrioritizeTexturesEXT", (GLvoid
*) NAME(glPrioritizeTexturesEXT
) },
1162 /* 21. GL_SGIS_detail_texture */
1163 #ifdef GL_SGIS_detail_texture
1166 #define NAME(X) NotImplemented
1168 { "glDetailTexFuncSGIS", (GLvoid
*) NAME(glDetailTexFuncSGIS
) },
1169 { "glGetDetailTexFuncSGIS", (GLvoid
*) NAME(glGetDetailTexFuncSGIS
) },
1172 /* 22. GL_SGIS_sharpen_texture */
1173 #ifdef GL_SGIS_sharpen_texture
1176 #define NAME(X) NotImplemented
1178 { "glGetSharpenTexFuncSGIS", (GLvoid
*) NAME(glGetSharpenTexFuncSGIS
) },
1179 { "glSharpenTexFuncSGIS", (GLvoid
*) NAME(glSharpenTexFuncSGIS
) },
1182 /* 25. GL_SGIS_multisample */
1183 #ifdef GL_SGIS_multisample
1186 #define NAME(X) NotImplemented
1188 { "glSampleMaskSGIS", (GLvoid
*) NAME(glSampleMaskSGIS
) },
1189 { "glSamplePatternSGIS", (GLvoid
*) NAME(glSamplePatternSGIS
) },
1192 /* 30. GL_EXT_vertex_array */
1193 #ifdef GL_EXT_vertex_array
1196 #define NAME(X) NotImplemented
1198 { "glArrayElementEXT", (GLvoid
*) NAME(glArrayElementEXT
) },
1199 { "glColorPointerEXT", (GLvoid
*) NAME(glColorPointerEXT
) },
1200 { "glDrawArraysEXT", (GLvoid
*) NAME(glDrawArraysEXT
) },
1201 { "glEdgeFlagPointerEXT", (GLvoid
*) NAME(glEdgeFlagPointerEXT
) },
1202 { "glGetPointervEXT", (GLvoid
*) NAME(glGetPointervEXT
) },
1203 { "glIndexPointerEXT", (GLvoid
*) NAME(glIndexPointerEXT
) },
1204 { "glNormalPointerEXT", (GLvoid
*) NAME(glNormalPointerEXT
) },
1205 { "glTexCoordPointerEXT", (GLvoid
*) NAME(glTexCoordPointerEXT
) },
1206 { "glVertexPointerEXT", (GLvoid
*) NAME(glVertexPointerEXT
) },
1209 /* 37. GL_EXT_blend_minmax */
1210 #ifdef GL_EXT_blend_minmax
1213 #define NAME(X) NotImplemented
1215 { "glBlendEquationEXT", (GLvoid
*) NAME(glBlendEquationEXT
) },
1218 /* 52. GL_SGIX_sprite */
1219 #ifdef GL_SGIX_sprite
1222 #define NAME(X) NotImplemented
1224 { "glSpriteParameterfSGIX", (GLvoid
*) NAME(glSpriteParameterfSGIX
) },
1225 { "glSpriteParameterfvSGIX", (GLvoid
*) NAME(glSpriteParameterfvSGIX
) },
1226 { "glSpriteParameteriSGIX", (GLvoid
*) NAME(glSpriteParameteriSGIX
) },
1227 { "glSpriteParameterivSGIX", (GLvoid
*) NAME(glSpriteParameterivSGIX
) },
1230 /* 54. GL_EXT_point_parameters */
1231 #ifdef GL_EXT_point_parameters
1234 #define NAME(X) NotImplemented
1236 { "glPointParameterfEXT", (GLvoid
*) NAME(glPointParameterfEXT
) },
1237 { "glPointParameterfvEXT", (GLvoid
*) NAME(glPointParameterfvEXT
) },
1240 /* 55. GL_SGIX_instruments */
1241 #ifdef GL_SGIX_instruments
1244 #define NAME(X) NotImplemented
1246 { "glInstrumentsBufferSGIX", (GLvoid
*) NAME(glInstrumentsBufferSGIX
) },
1247 { "glStartInstrumentsSGIX", (GLvoid
*) NAME(glStartInstrumentsSGIX
) },
1248 { "glStopInstrumentsSGIX", (GLvoid
*) NAME(glStopInstrumentsSGIX
) },
1249 { "glReadInstrumentsSGIX", (GLvoid
*) NAME(glReadInstrumentsSGIX
) },
1250 { "glPollInstrumentsSGIX", (GLvoid
*) NAME(glPollInstrumentsSGIX
) },
1251 { "glGetInstrumentsSGIX", (GLvoid
*) NAME(glGetInstrumentsSGIX
) },
1254 /* 57. GL_SGIX_framezoom */
1255 #ifdef GL_SGIX_framezoom
1258 #define NAME(X) NotImplemented
1260 { "glFrameZoomSGIX", (GLvoid
*) NAME(glFrameZoomSGIX
) },
1263 /* 60. GL_SGIX_reference_plane */
1264 #ifdef GL_SGIX_reference_plane
1267 #define NAME(X) NotImplemented
1269 { "glReferencePlaneSGIX", (GLvoid
*) NAME(glReferencePlaneSGIX
) },
1272 /* 61. GL_SGIX_flush_raster */
1273 #ifdef GL_SGIX_flush_raster
1276 #define NAME(X) NotImplemented
1278 { "glFlushRasterSGIX", (GLvoid
*) NAME(glFlushRasterSGIX
) },
1281 /* 66. GL_HP_image_transform */
1282 #ifdef GL_HP_image_transform
1285 #define NAME(X) NotImplemented
1287 { "glGetImageTransformParameterfvHP", (GLvoid
*) NAME(glGetImageTransformParameterfvHP
) },
1288 { "glGetImageTransformParameterivHP", (GLvoid
*) NAME(glGetImageTransformParameterivHP
) },
1289 { "glImageTransformParameterfHP", (GLvoid
*) NAME(glImageTransformParameterfHP
) },
1290 { "glImageTransformParameterfvHP", (GLvoid
*) NAME(glImageTransformParameterfvHP
) },
1291 { "glImageTransformParameteriHP", (GLvoid
*) NAME(glImageTransformParameteriHP
) },
1292 { "glImageTransformParameterivHP", (GLvoid
*) NAME(glImageTransformParameterivHP
) },
1295 /* 74. GL_EXT_color_subtable */
1296 #ifdef GL_EXT_color_subtable
1299 #define NAME(X) NotImplemented
1301 { "glColorSubTableEXT", (GLvoid
*) NAME(glColorSubTableEXT
) },
1302 { "glCopyColorSubTableEXT", (GLvoid
*) NAME(glCopyColorSubTableEXT
) },
1305 /* 77. GL_PGI_misc_hints */
1306 #ifdef GL_PGI_misc_hints
1309 #define NAME(X) NotImplemented
1311 { "glHintPGI", (GLvoid
*) NAME(glHintPGI
) },
1314 /* 78. GL_EXT_paletted_texture */
1315 #ifdef GL_EXT_paletted_texture
1318 #define NAME(X) NotImplemented
1320 { "glColorTableEXT", (GLvoid
*) NAME(glColorTableEXT
) },
1321 { "glGetColorTableEXT", (GLvoid
*) NAME(glGetColorTableEXT
) },
1322 { "glGetColorTableParameterfvEXT", (GLvoid
*) NAME(glGetColorTableParameterfvEXT
) },
1323 { "glGetColorTableParameterivEXT", (GLvoid
*) NAME(glGetColorTableParameterivEXT
) },
1326 /* 80. GL_SGIX_list_priority */
1327 #ifdef GL_SGIX_list_priority
1330 #define NAME(X) NotImplemented
1332 { "glGetListParameterfvSGIX", (GLvoid
*) NAME(glGetListParameterfvSGIX
) },
1333 { "glGetListParameterivSGIX", (GLvoid
*) NAME(glGetListParameterivSGIX
) },
1334 { "glListParameterfSGIX", (GLvoid
*) NAME(glListParameterfSGIX
) },
1335 { "glListParameterfvSGIX", (GLvoid
*) NAME(glListParameterfvSGIX
) },
1336 { "glListParameteriSGIX", (GLvoid
*) NAME(glListParameteriSGIX
) },
1337 { "glListParameterivSGIX", (GLvoid
*) NAME(glListParameterivSGIX
) },
1340 /* 94. GL_EXT_index_material */
1341 #ifdef GL_EXT_index_material
1344 #define NAME(X) NotImplemented
1346 { "glIndexMaterialEXT", (GLvoid
*) NAME(glIndexMaterialEXT
) },
1349 /* 95. GL_EXT_index_func */
1350 #ifdef GL_EXT_index_func
1353 #define NAME(X) NotImplemented
1355 { "glIndexFuncEXT", (GLvoid
*) NAME(glIndexFuncEXT
) },
1358 /* 97. GL_EXT_compiled_vertex_array */
1359 #ifdef GL_EXT_compiled_vertex_array
1362 #define NAME(X) NotImplemented
1364 { "glLockArraysEXT", (GLvoid
*) NAME(glLockArraysEXT
) },
1365 { "glUnlockArraysEXT", (GLvoid
*) NAME(glUnlockArraysEXT
) },
1368 /* 98. GL_EXT_cull_vertex */
1369 #ifdef GL_EXT_cull_vertex
1372 #define NAME(X) NotImplemented
1374 { "glCullParameterfvEXT", (GLvoid
*) NAME(glCullParameterfvEXT
) },
1375 { "glCullParameterdvEXT", (GLvoid
*) NAME(glCullParameterdvEXT
) },
1378 /* 173. GL_EXT/INGR_blend_func_separate */
1379 #ifdef GL_INGR_blend_func_separate
1382 #define NAME(X) NotImplemented
1384 { "glBlendFuncSeparateINGR", (GLvoid
*) NAME(glBlendFuncSeparateINGR
) },
1387 /* GL_MESA_window_pos */
1388 #ifdef MESA_window_pos
1391 #define NAME(X) NotImplemented
1393 { "glWindowPos4fMESA", (GLvoid
*) NAME(glWindowPos4fMESA
) },
1396 /* GL_MESA_resize_buffers */
1397 #ifdef MESA_resize_buffers
1400 #define NAME(X) NotImplemented
1402 { "glResizeBuffersMESA", (GLvoid
*) NAME(glResizeBuffersMESA
) },
1405 /* GL_ARB_transpose_matrix */
1406 #ifdef GL_ARB_transpose_matrix
1409 #define NAME(X) NotImplemented
1411 { "glLoadTransposeMatrixdARB", (GLvoid
*) NAME(glLoadTransposeMatrixdARB
) },
1412 { "glLoadTransposeMatrixfARB", (GLvoid
*) NAME(glLoadTransposeMatrixfARB
) },
1413 { "glMultTransposeMatrixdARB", (GLvoid
*) NAME(glMultTransposeMatrixdARB
) },
1414 { "glMultTransposeMatrixfARB", (GLvoid
*) NAME(glMultTransposeMatrixfARB
) },
1418 * XXX many more extenstion functions to add.
1421 { NULL
, NULL
} /* end of list marker */