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