1 /* $Id: glapi.c,v 1.8 1999/11/19 22:33:50 brianp Exp $ */
4 * Mesa 3-D graphics library
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #include <stdlib.h> /* to get NULL */
32 #include "glapinoop.h"
37 * Define the DISPATCH_SETUP and DISPATCH macros here dependant on
38 * whether or not threading is enabled.
42 /*** Thread-safe API dispatch ***/
44 static MesaTSD mesa_dispatch_tsd
;
45 static void mesa_dispatch_thread_init() {
46 MesaInitTSD(&mesa_dispatch_tsd
);
48 #define DISPATCH_SETUP struct _glapi_table *dispatch = (struct _glapi_table *) MesaGetTSD(&mesa_dispatch_tsd)
49 #define DISPATCH(FUNC) (dispatch->FUNC)
54 /*** Non-threaded API dispatch ***/
55 static struct _glapi_table
*Dispatch
= &__glapi_noop_table
;
56 #define DISPATCH_SETUP
57 #define DISPATCH(FUNC) (Dispatch->FUNC)
64 * Set the global or per-thread dispatch table pointer.
67 _glapi_set_dispatch(struct _glapi_table
*dispatch
)
70 /* use the no-op functions */
71 dispatch
= &__glapi_noop_table
;
75 _glapi_check_table(dispatch
);
80 MesaSetTSD(&mesa_dispatch_tsd
, (void*) dispatch
, mesa_dispatch_thread_init
);
88 * Get the global or per-thread dispatch table pointer.
91 _glapi_get_dispatch(void)
94 /* return this thread's dispatch pointer */
95 return (struct _glapi_table
*) MesaGetTSD(&mesa_dispatch_tsd
);
103 * Get API dispatcher version string.
104 * XXX this isn't well defined yet.
107 _glapi_get_version(void)
114 * Return list of hard-coded extension entrypoints in the dispatch table.
115 * XXX this isn't well defined yet.
118 _glapi_get_extensions(void)
120 return "GL_EXT_paletted_texture GL_EXT_compiled_vertex_array GL_EXT_point_parameters GL_EXT_polygon_offset GL_EXT_blend_minmax GL_EXT_blend_color GL_ARB_multitexture GL_INGR_blend_func_separate GL_MESA_window_pos GL_MESA_resize_buffers";
126 * XXX the following dynamic extension code is just a prototype and
129 struct _glapi_ext_entrypoint
{
134 #define MAX_EXT_ENTRYPOINTS 100
136 static struct _glapi_ext_entrypoint ExtEntryTable
[MAX_EXT_ENTRYPOINTS
];
137 static GLuint NumExtEntryPoints
;
142 * Dynamically allocate an extension entry point.
143 * Return a slot number or -1 if table is full.
146 _glapi_alloc_entrypoint(const char *funcName
)
149 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
150 if (strcmp(ExtEntryTable
[i
].Name
, funcName
) == 0) {
152 return (GLint
) ExtEntryTable
[i
].Offset
;
155 if (NumExtEntryPoints
< MAX_EXT_ENTRYPOINTS
) {
157 ExtEntryTable
[NumExtEntryPoints
].Name
= strdup(funcName
);
158 ExtEntryTable
[NumExtEntryPoints
].Offset
= NumExtEntryPoints
; /* OK? */
160 return (GLint
) (NumExtEntryPoints
- 1);
162 /* no more room in the table */
169 * Find the dynamic entry point for the named function.
170 * Return a slot number or -1 if not found.
173 _glapi_get_entrypoint(const char *funcName
)
176 for (i
= 0; i
< NumExtEntryPoints
; i
++) {
177 if (strcmp(ExtEntryTable
[i
].Name
, funcName
) == 0) {
179 return (GLint
) ExtEntryTable
[i
].Offset
;
189 get_static_proc_address(const char *funcName
)
191 struct name_address
{
195 static struct name_address apitable
[] = {
196 { "glAccum", (GLvoid
*) glAccum
},
197 { "glAlphaFunc", (GLvoid
*) glAlphaFunc
},
198 { "glBegin", (GLvoid
*) glBegin
},
199 { "glBitmap", (GLvoid
*) glBitmap
},
200 /* ... many more ... */
201 { NULL
, NULL
} /* end of list marker */
204 for (i
= 0; apitable
[i
].Name
; i
++) {
205 if (strcmp(apitable
[i
].Name
, funcName
) == 0) {
206 return apitable
[i
].Address
;
214 * Return entrypoint for named function.
217 _glapi_get_proc_address(const char *funcName
)
219 /* look for dynamic extension entry point */
221 /* look for static entry point */
222 return get_static_proc_address(funcName
);
228 * Make sure there are no NULL pointers in the given dispatch table.
229 * Intented for debugging purposes.
232 _glapi_check_table(const struct _glapi_table
*table
)
234 assert(table
->Accum
);
235 assert(table
->AlphaFunc
);
236 assert(table
->Begin
);
237 assert(table
->Bitmap
);
238 assert(table
->BlendFunc
);
239 assert(table
->CallList
);
240 assert(table
->CallLists
);
241 assert(table
->Clear
);
242 assert(table
->ClearAccum
);
243 assert(table
->ClearColor
);
244 assert(table
->ClearDepth
);
245 assert(table
->ClearIndex
);
246 assert(table
->ClearStencil
);
247 assert(table
->ClipPlane
);
248 assert(table
->Color3b
);
249 assert(table
->Color3bv
);
250 assert(table
->Color3d
);
251 assert(table
->Color3dv
);
252 assert(table
->Color3f
);
253 assert(table
->Color3fv
);
254 assert(table
->Color3i
);
255 assert(table
->Color3iv
);
256 assert(table
->Color3s
);
257 assert(table
->Color3sv
);
258 assert(table
->Color3ub
);
259 assert(table
->Color3ubv
);
260 assert(table
->Color3ui
);
261 assert(table
->Color3uiv
);
262 assert(table
->Color3us
);
263 assert(table
->Color3usv
);
264 assert(table
->Color4b
);
265 assert(table
->Color4bv
);
266 assert(table
->Color4d
);
267 assert(table
->Color4dv
);
268 assert(table
->Color4f
);
269 assert(table
->Color4fv
);
270 assert(table
->Color4i
);
271 assert(table
->Color4iv
);
272 assert(table
->Color4s
);
273 assert(table
->Color4sv
);
274 assert(table
->Color4ub
);
275 assert(table
->Color4ubv
);
276 assert(table
->Color4ui
);
277 assert(table
->Color4uiv
);
278 assert(table
->Color4us
);
279 assert(table
->Color4usv
);
280 assert(table
->ColorMask
);
281 assert(table
->ColorMaterial
);
282 assert(table
->CopyPixels
);
283 assert(table
->CullFace
);
284 assert(table
->DeleteLists
);
285 assert(table
->DepthFunc
);
286 assert(table
->DepthMask
);
287 assert(table
->DepthRange
);
288 assert(table
->Disable
);
289 assert(table
->DrawBuffer
);
290 assert(table
->DrawElements
);
291 assert(table
->DrawPixels
);
292 assert(table
->EdgeFlag
);
293 assert(table
->EdgeFlagv
);
294 assert(table
->Enable
);
296 assert(table
->EndList
);
297 assert(table
->EvalCoord1d
);
298 assert(table
->EvalCoord1dv
);
299 assert(table
->EvalCoord1f
);
300 assert(table
->EvalCoord1fv
);
301 assert(table
->EvalCoord2d
);
302 assert(table
->EvalCoord2dv
);
303 assert(table
->EvalCoord2f
);
304 assert(table
->EvalCoord2fv
);
305 assert(table
->EvalMesh1
);
306 assert(table
->EvalMesh2
);
307 assert(table
->EvalPoint1
);
308 assert(table
->EvalPoint2
);
309 assert(table
->FeedbackBuffer
);
310 assert(table
->Finish
);
311 assert(table
->Flush
);
313 assert(table
->Fogfv
);
315 assert(table
->Fogiv
);
316 assert(table
->FrontFace
);
317 assert(table
->Frustum
);
318 assert(table
->GenLists
);
319 assert(table
->GetBooleanv
);
320 assert(table
->GetClipPlane
);
321 assert(table
->GetDoublev
);
322 assert(table
->GetError
);
323 assert(table
->GetFloatv
);
324 assert(table
->GetIntegerv
);
325 assert(table
->GetLightfv
);
326 assert(table
->GetLightiv
);
327 assert(table
->GetMapdv
);
328 assert(table
->GetMapfv
);
329 assert(table
->GetMapiv
);
330 assert(table
->GetMaterialfv
);
331 assert(table
->GetMaterialiv
);
332 assert(table
->GetPixelMapfv
);
333 assert(table
->GetPixelMapuiv
);
334 assert(table
->GetPixelMapusv
);
335 assert(table
->GetPolygonStipple
);
336 assert(table
->GetString
);
337 assert(table
->GetTexEnvfv
);
338 assert(table
->GetTexEnviv
);
339 assert(table
->GetTexGendv
);
340 assert(table
->GetTexGenfv
);
341 assert(table
->GetTexGeniv
);
342 assert(table
->GetTexImage
);
343 assert(table
->GetTexLevelParameterfv
);
344 assert(table
->GetTexLevelParameteriv
);
345 assert(table
->GetTexParameterfv
);
346 assert(table
->GetTexParameteriv
);
348 assert(table
->IndexMask
);
349 assert(table
->Indexd
);
350 assert(table
->Indexdv
);
351 assert(table
->Indexf
);
352 assert(table
->Indexfv
);
353 assert(table
->Indexi
);
354 assert(table
->Indexiv
);
355 assert(table
->Indexs
);
356 assert(table
->Indexsv
);
357 assert(table
->InitNames
);
358 assert(table
->IsEnabled
);
359 assert(table
->IsList
);
360 assert(table
->LightModelf
);
361 assert(table
->LightModelfv
);
362 assert(table
->LightModeli
);
363 assert(table
->LightModeliv
);
364 assert(table
->Lightf
);
365 assert(table
->Lightfv
);
366 assert(table
->Lighti
);
367 assert(table
->Lightiv
);
368 assert(table
->LineStipple
);
369 assert(table
->LineWidth
);
370 assert(table
->ListBase
);
371 assert(table
->LoadIdentity
);
372 assert(table
->LoadMatrixd
);
373 assert(table
->LoadMatrixf
);
374 assert(table
->LoadName
);
375 assert(table
->LogicOp
);
376 assert(table
->Map1d
);
377 assert(table
->Map1f
);
378 assert(table
->Map2d
);
379 assert(table
->Map2f
);
380 assert(table
->MapGrid1d
);
381 assert(table
->MapGrid1f
);
382 assert(table
->MapGrid2d
);
383 assert(table
->MapGrid2f
);
384 assert(table
->Materialf
);
385 assert(table
->Materialfv
);
386 assert(table
->Materiali
);
387 assert(table
->Materialiv
);
388 assert(table
->MatrixMode
);
389 assert(table
->MultMatrixd
);
390 assert(table
->MultMatrixf
);
391 assert(table
->NewList
);
392 assert(table
->Normal3b
);
393 assert(table
->Normal3bv
);
394 assert(table
->Normal3d
);
395 assert(table
->Normal3dv
);
396 assert(table
->Normal3f
);
397 assert(table
->Normal3fv
);
398 assert(table
->Normal3i
);
399 assert(table
->Normal3iv
);
400 assert(table
->Normal3s
);
401 assert(table
->Normal3sv
);
402 assert(table
->Ortho
);
403 assert(table
->PassThrough
);
404 assert(table
->PixelMapfv
);
405 assert(table
->PixelMapuiv
);
406 assert(table
->PixelMapusv
);
407 assert(table
->PixelStoref
);
408 assert(table
->PixelStorei
);
409 assert(table
->PixelTransferf
);
410 assert(table
->PixelTransferi
);
411 assert(table
->PixelZoom
);
412 assert(table
->PointSize
);
413 assert(table
->PolygonMode
);
414 assert(table
->PolygonOffset
);
415 assert(table
->PolygonStipple
);
416 assert(table
->PopAttrib
);
417 assert(table
->PopMatrix
);
418 assert(table
->PopName
);
419 assert(table
->PushAttrib
);
420 assert(table
->PushMatrix
);
421 assert(table
->PushName
);
422 assert(table
->RasterPos2d
);
423 assert(table
->RasterPos2dv
);
424 assert(table
->RasterPos2f
);
425 assert(table
->RasterPos2fv
);
426 assert(table
->RasterPos2i
);
427 assert(table
->RasterPos2iv
);
428 assert(table
->RasterPos2s
);
429 assert(table
->RasterPos2sv
);
430 assert(table
->RasterPos3d
);
431 assert(table
->RasterPos3dv
);
432 assert(table
->RasterPos3f
);
433 assert(table
->RasterPos3fv
);
434 assert(table
->RasterPos3i
);
435 assert(table
->RasterPos3iv
);
436 assert(table
->RasterPos3s
);
437 assert(table
->RasterPos3sv
);
438 assert(table
->RasterPos4d
);
439 assert(table
->RasterPos4dv
);
440 assert(table
->RasterPos4f
);
441 assert(table
->RasterPos4fv
);
442 assert(table
->RasterPos4i
);
443 assert(table
->RasterPos4iv
);
444 assert(table
->RasterPos4s
);
445 assert(table
->RasterPos4sv
);
446 assert(table
->ReadBuffer
);
447 assert(table
->ReadPixels
);
448 assert(table
->Rectd
);
449 assert(table
->Rectdv
);
450 assert(table
->Rectf
);
451 assert(table
->Rectfv
);
452 assert(table
->Recti
);
453 assert(table
->Rectiv
);
454 assert(table
->Rects
);
455 assert(table
->Rectsv
);
456 assert(table
->RenderMode
);
457 assert(table
->Rotated
);
458 assert(table
->Rotatef
);
459 assert(table
->Scaled
);
460 assert(table
->Scalef
);
461 assert(table
->Scissor
);
462 assert(table
->SelectBuffer
);
463 assert(table
->ShadeModel
);
464 assert(table
->StencilFunc
);
465 assert(table
->StencilMask
);
466 assert(table
->StencilOp
);
467 assert(table
->TexCoord1d
);
468 assert(table
->TexCoord1dv
);
469 assert(table
->TexCoord1f
);
470 assert(table
->TexCoord1fv
);
471 assert(table
->TexCoord1i
);
472 assert(table
->TexCoord1iv
);
473 assert(table
->TexCoord1s
);
474 assert(table
->TexCoord1sv
);
475 assert(table
->TexCoord2d
);
476 assert(table
->TexCoord2dv
);
477 assert(table
->TexCoord2f
);
478 assert(table
->TexCoord2fv
);
479 assert(table
->TexCoord2i
);
480 assert(table
->TexCoord2iv
);
481 assert(table
->TexCoord2s
);
482 assert(table
->TexCoord2sv
);
483 assert(table
->TexCoord3d
);
484 assert(table
->TexCoord3dv
);
485 assert(table
->TexCoord3f
);
486 assert(table
->TexCoord3fv
);
487 assert(table
->TexCoord3i
);
488 assert(table
->TexCoord3iv
);
489 assert(table
->TexCoord3s
);
490 assert(table
->TexCoord3sv
);
491 assert(table
->TexCoord4d
);
492 assert(table
->TexCoord4dv
);
493 assert(table
->TexCoord4f
);
494 assert(table
->TexCoord4fv
);
495 assert(table
->TexCoord4i
);
496 assert(table
->TexCoord4iv
);
497 assert(table
->TexCoord4s
);
498 assert(table
->TexCoord4sv
);
499 assert(table
->TexEnvf
);
500 assert(table
->TexEnvfv
);
501 assert(table
->TexEnvi
);
502 assert(table
->TexEnviv
);
503 assert(table
->TexGend
);
504 assert(table
->TexGendv
);
505 assert(table
->TexGenf
);
506 assert(table
->TexGenfv
);
507 assert(table
->TexGeni
);
508 assert(table
->TexGeniv
);
509 assert(table
->TexImage1D
);
510 assert(table
->TexImage2D
);
511 assert(table
->TexParameterf
);
512 assert(table
->TexParameterfv
);
513 assert(table
->TexParameteri
);
514 assert(table
->TexParameteriv
);
515 assert(table
->Translated
);
516 assert(table
->Translatef
);
517 assert(table
->Vertex2d
);
518 assert(table
->Vertex2dv
);
519 assert(table
->Vertex2f
);
520 assert(table
->Vertex2fv
);
521 assert(table
->Vertex2i
);
522 assert(table
->Vertex2iv
);
523 assert(table
->Vertex2s
);
524 assert(table
->Vertex2sv
);
525 assert(table
->Vertex3d
);
526 assert(table
->Vertex3dv
);
527 assert(table
->Vertex3f
);
528 assert(table
->Vertex3fv
);
529 assert(table
->Vertex3i
);
530 assert(table
->Vertex3iv
);
531 assert(table
->Vertex3s
);
532 assert(table
->Vertex3sv
);
533 assert(table
->Vertex4d
);
534 assert(table
->Vertex4dv
);
535 assert(table
->Vertex4f
);
536 assert(table
->Vertex4fv
);
537 assert(table
->Vertex4i
);
538 assert(table
->Vertex4iv
);
539 assert(table
->Vertex4s
);
540 assert(table
->Vertex4sv
);
541 assert(table
->Viewport
);
543 #ifdef _GLAPI_VERSION_1_1
544 assert(table
->AreTexturesResident
);
545 assert(table
->ArrayElement
);
546 assert(table
->BindTexture
);
547 assert(table
->ColorPointer
);
548 assert(table
->CopyTexImage1D
);
549 assert(table
->CopyTexImage2D
);
550 assert(table
->CopyTexSubImage1D
);
551 assert(table
->CopyTexSubImage2D
);
552 assert(table
->DeleteTextures
);
553 assert(table
->DisableClientState
);
554 assert(table
->DrawArrays
);
555 assert(table
->EdgeFlagPointer
);
556 assert(table
->EnableClientState
);
557 assert(table
->GenTextures
);
558 assert(table
->GetPointerv
);
559 assert(table
->IndexPointer
);
560 assert(table
->Indexub
);
561 assert(table
->Indexubv
);
562 assert(table
->InterleavedArrays
);
563 assert(table
->IsTexture
);
564 assert(table
->NormalPointer
);
565 assert(table
->PopClientAttrib
);
566 assert(table
->PrioritizeTextures
);
567 assert(table
->PushClientAttrib
);
568 assert(table
->TexCoordPointer
);
569 assert(table
->TexSubImage1D
);
570 assert(table
->TexSubImage2D
);
571 assert(table
->VertexPointer
);
574 #ifdef _GLAPI_VERSION_1_2
575 assert(table
->CopyTexSubImage3D
);
576 assert(table
->DrawRangeElements
);
577 assert(table
->TexImage3D
);
578 assert(table
->TexSubImage3D
);
579 #ifdef _GLAPI_ARB_imaging
580 assert(table
->BlendColor
);
581 assert(table
->BlendEquation
);
582 assert(table
->ColorSubTable
);
583 assert(table
->ColorTable
);
584 assert(table
->ColorTableParameterfv
);
585 assert(table
->ColorTableParameteriv
);
586 assert(table
->ConvolutionFilter1D
);
587 assert(table
->ConvolutionFilter2D
);
588 assert(table
->ConvolutionParameterf
);
589 assert(table
->ConvolutionParameterfv
);
590 assert(table
->ConvolutionParameteri
);
591 assert(table
->ConvolutionParameteriv
);
592 assert(table
->CopyColorSubTable
);
593 assert(table
->CopyColorTable
);
594 assert(table
->CopyConvolutionFilter1D
);
595 assert(table
->CopyConvolutionFilter2D
);
596 assert(table
->GetColorTable
);
597 assert(table
->GetColorTableParameterfv
);
598 assert(table
->GetColorTableParameteriv
);
599 assert(table
->GetConvolutionFilter
);
600 assert(table
->GetConvolutionParameterfv
);
601 assert(table
->GetConvolutionParameteriv
);
602 assert(table
->GetHistogram
);
603 assert(table
->GetHistogramParameterfv
);
604 assert(table
->GetHistogramParameteriv
);
605 assert(table
->GetMinmax
);
606 assert(table
->GetMinmaxParameterfv
);
607 assert(table
->GetMinmaxParameteriv
);
608 assert(table
->Histogram
);
609 assert(table
->Minmax
);
610 assert(table
->ResetHistogram
);
611 assert(table
->ResetMinmax
);
612 assert(table
->SeparableFilter2D
);
617 #ifdef _GLAPI_EXT_paletted_texture
618 assert(table
->ColorTableEXT
);
619 assert(table
->ColorSubTableEXT
);
620 assert(table
->GetColorTableEXT
);
621 assert(table
->GetColorTableParameterfvEXT
);
622 assert(table
->GetColorTableParameterivEXT
);
625 #ifdef _GLAPI_EXT_compiled_vertex_array
626 assert(table
->LockArraysEXT
);
627 assert(table
->UnlockArraysEXT
);
630 #ifdef _GLAPI_EXT_point_parameter
631 assert(table
->PointParameterfEXT
);
632 assert(table
->PointParameterfvEXT
);
635 #ifdef _GLAPI_EXT_polygon_offset
636 assert(table
->PolygonOffsetEXT
);
639 #ifdef _GLAPI_ARB_multitexture
640 assert(table
->ActiveTextureARB
);
641 assert(table
->ClientActiveTextureARB
);
642 assert(table
->MultiTexCoord1dARB
);
643 assert(table
->MultiTexCoord1dvARB
);
644 assert(table
->MultiTexCoord1fARB
);
645 assert(table
->MultiTexCoord1fvARB
);
646 assert(table
->MultiTexCoord1iARB
);
647 assert(table
->MultiTexCoord1ivARB
);
648 assert(table
->MultiTexCoord1sARB
);
649 assert(table
->MultiTexCoord1svARB
);
650 assert(table
->MultiTexCoord2dARB
);
651 assert(table
->MultiTexCoord2dvARB
);
652 assert(table
->MultiTexCoord2fARB
);
653 assert(table
->MultiTexCoord2fvARB
);
654 assert(table
->MultiTexCoord2iARB
);
655 assert(table
->MultiTexCoord2ivARB
);
656 assert(table
->MultiTexCoord2sARB
);
657 assert(table
->MultiTexCoord2svARB
);
658 assert(table
->MultiTexCoord3dARB
);
659 assert(table
->MultiTexCoord3dvARB
);
660 assert(table
->MultiTexCoord3fARB
);
661 assert(table
->MultiTexCoord3fvARB
);
662 assert(table
->MultiTexCoord3iARB
);
663 assert(table
->MultiTexCoord3ivARB
);
664 assert(table
->MultiTexCoord3sARB
);
665 assert(table
->MultiTexCoord3svARB
);
666 assert(table
->MultiTexCoord4dARB
);
667 assert(table
->MultiTexCoord4dvARB
);
668 assert(table
->MultiTexCoord4fARB
);
669 assert(table
->MultiTexCoord4fvARB
);
670 assert(table
->MultiTexCoord4iARB
);
671 assert(table
->MultiTexCoord4ivARB
);
672 assert(table
->MultiTexCoord4sARB
);
673 assert(table
->MultiTexCoord4svARB
);
676 #ifdef _GLAPI_INGR_blend_func_separate
677 assert(table
->BlendFuncSeparateINGR
);
680 #ifdef _GLAPI_MESA_window_pos
681 assert(table
->WindowPos4fMESA
);
684 #ifdef _GLAPI_MESA_resize_buffers
685 assert(table
->ResizeBuffersMESA
);
691 void GLAPIENTRY
glAccum(GLenum op
, GLfloat value
)
694 DISPATCH(Accum
)(op
, value
);
697 void GLAPIENTRY
glAlphaFunc(GLenum func
, GLclampf ref
)
700 DISPATCH(AlphaFunc
)(func
, ref
);
703 void GLAPIENTRY
glBegin(GLenum mode
)
706 DISPATCH(Begin
)(mode
);
709 void GLAPIENTRY
glBitmap(GLsizei width
, GLsizei height
, GLfloat xorig
, GLfloat yorig
, GLfloat xmove
, GLfloat ymove
, const GLubyte
*bitmap
)
712 DISPATCH(Bitmap
)(width
, height
, xorig
, yorig
, xmove
, ymove
, bitmap
);
715 void GLAPIENTRY
glBlendFunc(GLenum sfactor
, GLenum dfactor
)
718 DISPATCH(BlendFunc
)(sfactor
, dfactor
);
721 void GLAPIENTRY
glCallList(GLuint list
)
724 DISPATCH(CallList
)(list
);
727 void GLAPIENTRY
glCallLists(GLsizei n
, GLenum type
, const GLvoid
*lists
)
730 DISPATCH(CallLists
)(n
, type
, lists
);
733 void GLAPIENTRY
glClear(GLbitfield mask
)
736 DISPATCH(Clear
)(mask
);
739 void GLAPIENTRY
glClearAccum(GLfloat red
, GLfloat green
, GLfloat blue
, GLfloat alpha
)
742 DISPATCH(ClearAccum
)(red
, green
, blue
, alpha
);
745 void GLAPIENTRY
glClearColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
)
748 DISPATCH(ClearColor
)(red
, green
, blue
, alpha
);
751 void GLAPIENTRY
glClearDepth(GLclampd depth
)
754 DISPATCH(ClearDepth
)(depth
);
757 void GLAPIENTRY
glClearIndex(GLfloat c
)
760 DISPATCH(ClearIndex
)(c
);
763 void GLAPIENTRY
glClearStencil(GLint s
)
766 DISPATCH(ClearStencil
)(s
);
769 void GLAPIENTRY
glClipPlane(GLenum plane
, const GLdouble
*equation
)
772 DISPATCH(ClipPlane
)(plane
, equation
);
775 void GLAPIENTRY
glColor3b(GLbyte red
, GLbyte green
, GLbyte blue
)
778 DISPATCH(Color3b
)(red
, green
, blue
);
781 void GLAPIENTRY
glColor3d(GLdouble red
, GLdouble green
, GLdouble blue
)
784 DISPATCH(Color3d
)(red
, green
, blue
);
787 void GLAPIENTRY
glColor3f(GLfloat red
, GLfloat green
, GLfloat blue
)
790 DISPATCH(Color3f
)(red
, green
, blue
);
793 void GLAPIENTRY
glColor3i(GLint red
, GLint green
, GLint blue
)
796 DISPATCH(Color3i
)(red
, green
, blue
);
799 void GLAPIENTRY
glColor3s(GLshort red
, GLshort green
, GLshort blue
)
802 DISPATCH(Color3s
)(red
, green
, blue
);
805 void GLAPIENTRY
glColor3ub(GLubyte red
, GLubyte green
, GLubyte blue
)
808 DISPATCH(Color3ub
)(red
, green
, blue
);
811 void GLAPIENTRY
glColor3ui(GLuint red
, GLuint green
, GLuint blue
)
814 DISPATCH(Color3ui
)(red
, green
, blue
);
817 void GLAPIENTRY
glColor3us(GLushort red
, GLushort green
, GLushort blue
)
820 DISPATCH(Color3us
)(red
, green
, blue
);
823 void GLAPIENTRY
glColor4b(GLbyte red
, GLbyte green
, GLbyte blue
, GLbyte alpha
)
826 DISPATCH(Color4b
)(red
, green
, blue
, alpha
);
829 void GLAPIENTRY
glColor4d(GLdouble red
, GLdouble green
, GLdouble blue
, GLdouble alpha
)
832 DISPATCH(Color4d
)(red
, green
, blue
, alpha
);
835 void GLAPIENTRY
glColor4f(GLfloat red
, GLfloat green
, GLfloat blue
, GLfloat alpha
)
838 DISPATCH(Color4f
)(red
, green
, blue
, alpha
);
841 void GLAPIENTRY
glColor4i(GLint red
, GLint green
, GLint blue
, GLint alpha
)
844 DISPATCH(Color4i
)(red
, green
, blue
, alpha
);
847 void GLAPIENTRY
glColor4s(GLshort red
, GLshort green
, GLshort blue
, GLshort alpha
)
850 DISPATCH(Color4s
)(red
, green
, blue
, alpha
);
853 void GLAPIENTRY
glColor4ub(GLubyte red
, GLubyte green
, GLubyte blue
, GLubyte alpha
)
856 DISPATCH(Color4ub
)(red
, green
, blue
, alpha
);
859 void GLAPIENTRY
glColor4ui(GLuint red
, GLuint green
, GLuint blue
, GLuint alpha
)
862 DISPATCH(Color4ui
)(red
, green
, blue
, alpha
);
865 void GLAPIENTRY
glColor4us(GLushort red
, GLushort green
, GLushort blue
, GLushort alpha
)
868 DISPATCH(Color4us
)(red
, green
, blue
, alpha
);
871 void GLAPIENTRY
glColor3bv(const GLbyte
*v
)
874 DISPATCH(Color3bv
)(v
);
877 void GLAPIENTRY
glColor3dv(const GLdouble
*v
)
880 DISPATCH(Color3dv
)(v
);
883 void GLAPIENTRY
glColor3fv(const GLfloat
*v
)
886 DISPATCH(Color3fv
)(v
);
889 void GLAPIENTRY
glColor3iv(const GLint
*v
)
892 DISPATCH(Color3iv
)(v
);
895 void GLAPIENTRY
glColor3sv(const GLshort
*v
)
898 DISPATCH(Color3sv
)(v
);
901 void GLAPIENTRY
glColor3ubv(const GLubyte
*v
)
904 DISPATCH(Color3ubv
)(v
);
907 void GLAPIENTRY
glColor3uiv(const GLuint
*v
)
910 DISPATCH(Color3uiv
)(v
);
913 void GLAPIENTRY
glColor3usv(const GLushort
*v
)
916 DISPATCH(Color3usv
)(v
);
919 void GLAPIENTRY
glColor4bv(const GLbyte
*v
)
922 DISPATCH(Color4bv
)(v
);
925 void GLAPIENTRY
glColor4dv(const GLdouble
*v
)
928 DISPATCH(Color4dv
)(v
);
931 void GLAPIENTRY
glColor4fv(const GLfloat
*v
)
934 DISPATCH(Color4fv
)(v
);
937 void GLAPIENTRY
glColor4iv(const GLint
*v
)
940 DISPATCH(Color4iv
)(v
);
943 void GLAPIENTRY
glColor4sv(const GLshort
*v
)
946 DISPATCH(Color4sv
)(v
);
949 void GLAPIENTRY
glColor4ubv(const GLubyte
*v
)
952 DISPATCH(Color4ubv
)(v
);
955 void GLAPIENTRY
glColor4uiv(const GLuint
*v
)
958 DISPATCH(Color4uiv
)(v
);
961 void GLAPIENTRY
glColor4usv(const GLushort
*v
)
964 DISPATCH(Color4usv
)(v
);
967 void GLAPIENTRY
glColorMask(GLboolean red
, GLboolean green
, GLboolean blue
, GLboolean alpha
)
970 DISPATCH(ColorMask
)(red
, green
, blue
, alpha
);
973 void GLAPIENTRY
glColorMaterial(GLenum face
, GLenum mode
)
976 DISPATCH(ColorMaterial
)(face
, mode
);
979 void GLAPIENTRY
glCopyPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum type
)
982 DISPATCH(CopyPixels
)(x
, y
, width
, height
, type
);
985 void GLAPIENTRY
glCullFace(GLenum mode
)
988 DISPATCH(CullFace
)(mode
);
991 void GLAPIENTRY
glDepthFunc(GLenum func
)
994 DISPATCH(DepthFunc
)(func
);
997 void GLAPIENTRY
glDepthMask(GLboolean flag
)
1000 DISPATCH(DepthMask
)(flag
);
1003 void GLAPIENTRY
glDepthRange(GLclampd nearVal
, GLclampd farVal
)
1006 DISPATCH(DepthRange
)(nearVal
, farVal
);
1009 void GLAPIENTRY
glDeleteLists(GLuint list
, GLsizei range
)
1012 DISPATCH(DeleteLists
)(list
, range
);
1015 void GLAPIENTRY
glDisable(GLenum cap
)
1018 DISPATCH(Disable
)(cap
);
1021 void GLAPIENTRY
glDrawBuffer(GLenum mode
)
1024 DISPATCH(DrawBuffer
)(mode
);
1027 void GLAPIENTRY
glDrawElements(GLenum mode
, GLsizei count
, GLenum type
, const GLvoid
*indices
)
1030 DISPATCH(DrawElements
)(mode
, count
, type
, indices
);
1033 void GLAPIENTRY
glDrawPixels(GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1036 DISPATCH(DrawPixels
)(width
, height
, format
, type
, pixels
);
1039 void GLAPIENTRY
glEnable(GLenum mode
)
1042 DISPATCH(Enable
)(mode
);
1045 void GLAPIENTRY
glEnd(void)
1051 void GLAPIENTRY
glEndList(void)
1054 DISPATCH(EndList
)();
1057 void GLAPIENTRY
glEvalCoord1d(GLdouble u
)
1060 DISPATCH(EvalCoord1d
)(u
);
1063 void GLAPIENTRY
glEvalCoord1f(GLfloat u
)
1066 DISPATCH(EvalCoord1f
)(u
);
1069 void GLAPIENTRY
glEvalCoord1dv(const GLdouble
*u
)
1072 DISPATCH(EvalCoord1dv
)(u
);
1075 void GLAPIENTRY
glEvalCoord1fv(const GLfloat
*u
)
1078 DISPATCH(EvalCoord1fv
)(u
);
1081 void GLAPIENTRY
glEvalCoord2d(GLdouble u
, GLdouble v
)
1084 DISPATCH(EvalCoord2d
)(u
, v
);
1087 void GLAPIENTRY
glEvalCoord2f(GLfloat u
, GLfloat v
)
1090 DISPATCH(EvalCoord2f
)(u
, v
);
1093 void GLAPIENTRY
glEvalCoord2dv(const GLdouble
*u
)
1096 DISPATCH(EvalCoord2dv
)(u
);
1099 void GLAPIENTRY
glEvalCoord2fv(const GLfloat
*u
)
1102 DISPATCH(EvalCoord2fv
)(u
);
1105 void GLAPIENTRY
glEvalPoint1(GLint i
)
1108 DISPATCH(EvalPoint1
)(i
);
1111 void GLAPIENTRY
glEvalPoint2(GLint i
, GLint j
)
1114 DISPATCH(EvalPoint2
)(i
, j
);
1117 void GLAPIENTRY
glEvalMesh1(GLenum mode
, GLint i1
, GLint i2
)
1120 DISPATCH(EvalMesh1
)(mode
, i1
, i2
);
1123 void GLAPIENTRY
glEdgeFlag(GLboolean flag
)
1126 DISPATCH(EdgeFlag
)(flag
);
1129 void GLAPIENTRY
glEdgeFlagv(const GLboolean
*flag
)
1132 DISPATCH(EdgeFlagv
)(flag
);
1135 void GLAPIENTRY
glEvalMesh2(GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
)
1138 DISPATCH(EvalMesh2
)(mode
, i1
, i2
, j1
, j2
);
1141 void GLAPIENTRY
glFeedbackBuffer(GLsizei size
, GLenum type
, GLfloat
*buffer
)
1144 DISPATCH(FeedbackBuffer
)(size
, type
, buffer
);
1147 void GLAPIENTRY
glFinish(void)
1153 void GLAPIENTRY
glFlush(void)
1159 void GLAPIENTRY
glFogf(GLenum pname
, GLfloat param
)
1162 DISPATCH(Fogf
)(pname
, param
);
1165 void GLAPIENTRY
glFogi(GLenum pname
, GLint param
)
1168 DISPATCH(Fogi
)(pname
, param
);
1171 void GLAPIENTRY
glFogfv(GLenum pname
, const GLfloat
*params
)
1174 DISPATCH(Fogfv
)(pname
, params
);
1177 void GLAPIENTRY
glFogiv(GLenum pname
, const GLint
*params
)
1180 DISPATCH(Fogiv
)(pname
, params
);
1183 void GLAPIENTRY
glFrontFace(GLenum mode
)
1186 DISPATCH(FrontFace
)(mode
);
1189 void GLAPIENTRY
glFrustum(GLdouble left
, GLdouble right
, GLdouble bottom
, GLdouble top
, GLdouble nearval
, GLdouble farval
)
1192 DISPATCH(Frustum
)(left
, right
, bottom
, top
, nearval
, farval
);
1195 GLuint GLAPIENTRY
glGenLists(GLsizei range
)
1198 return DISPATCH(GenLists
)(range
);
1201 void GLAPIENTRY
glGetBooleanv(GLenum pname
, GLboolean
*params
)
1204 DISPATCH(GetBooleanv
)(pname
, params
);
1207 void GLAPIENTRY
glGetClipPlane(GLenum plane
, GLdouble
*equation
)
1210 DISPATCH(GetClipPlane
)(plane
, equation
);
1213 void GLAPIENTRY
glGetDoublev(GLenum pname
, GLdouble
*params
)
1216 DISPATCH(GetDoublev
)(pname
, params
);
1219 GLenum GLAPIENTRY
glGetError(void)
1222 return DISPATCH(GetError
)();
1225 void GLAPIENTRY
glGetFloatv(GLenum pname
, GLfloat
*params
)
1228 DISPATCH(GetFloatv
)(pname
, params
);
1231 void GLAPIENTRY
glGetIntegerv(GLenum pname
, GLint
*params
)
1234 DISPATCH(GetIntegerv
)(pname
, params
);
1237 void GLAPIENTRY
glGetLightfv(GLenum light
, GLenum pname
, GLfloat
*params
)
1240 DISPATCH(GetLightfv
)(light
, pname
, params
);
1243 void GLAPIENTRY
glGetLightiv(GLenum light
, GLenum pname
, GLint
*params
)
1246 DISPATCH(GetLightiv
)(light
, pname
, params
);
1249 void GLAPIENTRY
glGetMapdv(GLenum target
, GLenum query
, GLdouble
*v
)
1252 DISPATCH(GetMapdv
)(target
, query
, v
);
1255 void GLAPIENTRY
glGetMapfv(GLenum target
, GLenum query
, GLfloat
*v
)
1258 DISPATCH(GetMapfv
)(target
, query
, v
);
1261 void GLAPIENTRY
glGetMapiv(GLenum target
, GLenum query
, GLint
*v
)
1264 DISPATCH(GetMapiv
)(target
, query
, v
);
1267 void GLAPIENTRY
glGetMaterialfv(GLenum face
, GLenum pname
, GLfloat
*params
)
1270 DISPATCH(GetMaterialfv
)(face
, pname
, params
);
1273 void GLAPIENTRY
glGetMaterialiv(GLenum face
, GLenum pname
, GLint
*params
)
1276 DISPATCH(GetMaterialiv
)(face
, pname
, params
);
1279 void GLAPIENTRY
glGetPixelMapfv(GLenum map
, GLfloat
*values
)
1282 DISPATCH(GetPixelMapfv
)(map
, values
);
1285 void GLAPIENTRY
glGetPixelMapuiv(GLenum map
, GLuint
*values
)
1288 DISPATCH(GetPixelMapuiv
)(map
, values
);
1291 void GLAPIENTRY
glGetPixelMapusv(GLenum map
, GLushort
*values
)
1294 DISPATCH(GetPixelMapusv
)(map
, values
);
1297 void GLAPIENTRY
glGetPolygonStipple(GLubyte
*mask
)
1300 DISPATCH(GetPolygonStipple
)(mask
);
1303 const GLubyte
* GLAPIENTRY
glGetString(GLenum name
)
1306 return DISPATCH(GetString
)(name
);
1309 void GLAPIENTRY
glGetTexEnvfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1312 DISPATCH(GetTexEnvfv
)(target
, pname
, params
);
1315 void GLAPIENTRY
glGetTexEnviv(GLenum target
, GLenum pname
, GLint
*params
)
1318 DISPATCH(GetTexEnviv
)(target
, pname
, params
);
1321 void GLAPIENTRY
glGetTexGeniv(GLenum target
, GLenum pname
, GLint
*params
)
1324 DISPATCH(GetTexGeniv
)(target
, pname
, params
);
1327 void GLAPIENTRY
glGetTexGendv(GLenum target
, GLenum pname
, GLdouble
*params
)
1330 DISPATCH(GetTexGendv
)(target
, pname
, params
);
1333 void GLAPIENTRY
glGetTexGenfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1336 DISPATCH(GetTexGenfv
)(target
, pname
, params
);
1339 void GLAPIENTRY
glGetTexImage(GLenum target
, GLint level
, GLenum format
, GLenum type
, GLvoid
*pixels
)
1342 DISPATCH(GetTexImage
)(target
, level
, format
, type
, pixels
);
1345 void GLAPIENTRY
glGetTexLevelParameterfv(GLenum target
, GLint level
, GLenum pname
, GLfloat
*params
)
1348 DISPATCH(GetTexLevelParameterfv
)(target
, level
, pname
, params
);
1351 void GLAPIENTRY
glGetTexLevelParameteriv(GLenum target
, GLint level
, GLenum pname
, GLint
*params
)
1354 DISPATCH(GetTexLevelParameteriv
)(target
, level
, pname
, params
);
1357 void GLAPIENTRY
glGetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1360 DISPATCH(GetTexParameterfv
)(target
, pname
, params
);
1363 void GLAPIENTRY
glGetTexParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
1366 DISPATCH(GetTexParameteriv
)(target
, pname
, params
);
1369 void GLAPIENTRY
glHint(GLenum target
, GLenum mode
)
1372 DISPATCH(Hint
)(target
, mode
);
1375 void GLAPIENTRY
glIndexd(GLdouble c
)
1378 DISPATCH(Indexd
)(c
);
1381 void GLAPIENTRY
glIndexdv(const GLdouble
*c
)
1384 DISPATCH(Indexdv
)(c
);
1387 void GLAPIENTRY
glIndexf(GLfloat c
)
1390 DISPATCH(Indexf
)(c
);
1393 void GLAPIENTRY
glIndexfv(const GLfloat
*c
)
1396 DISPATCH(Indexfv
)(c
);
1399 void GLAPIENTRY
glIndexi(GLint c
)
1402 DISPATCH(Indexi
)(c
);
1405 void GLAPIENTRY
glIndexiv(const GLint
*c
)
1408 DISPATCH(Indexiv
)(c
);
1411 void GLAPIENTRY
glIndexs(GLshort c
)
1414 DISPATCH(Indexs
)(c
);
1417 void GLAPIENTRY
glIndexsv(const GLshort
*c
)
1420 DISPATCH(Indexsv
)(c
);
1423 void GLAPIENTRY
glIndexub(GLubyte c
)
1426 DISPATCH(Indexub
)(c
);
1429 void GLAPIENTRY
glIndexubv(const GLubyte
*c
)
1432 DISPATCH(Indexubv
)(c
);
1435 void GLAPIENTRY
glIndexMask(GLuint mask
)
1438 DISPATCH(IndexMask
)(mask
);
1441 void GLAPIENTRY
glInitNames(void)
1444 DISPATCH(InitNames
)();
1447 void GLAPIENTRY
glInterleavedArrays(GLenum format
, GLsizei stride
, const GLvoid
*pointer
)
1450 DISPATCH(InterleavedArrays
)(format
, stride
, pointer
);
1453 GLboolean GLAPIENTRY
glIsEnabled(GLenum cap
)
1456 return DISPATCH(IsEnabled
)(cap
);
1459 GLboolean GLAPIENTRY
glIsList(GLuint list
)
1462 return DISPATCH(IsList
)(list
);
1465 GLboolean GLAPIENTRY
glIsTexture(GLuint texture
)
1468 return DISPATCH(IsTexture
)(texture
);
1471 void GLAPIENTRY
glLightf(GLenum light
, GLenum pname
, GLfloat param
)
1474 DISPATCH(Lightf
)(light
, pname
, param
);
1477 void GLAPIENTRY
glLighti(GLenum light
, GLenum pname
, GLint param
)
1480 DISPATCH(Lighti
)(light
, pname
, param
);
1483 void GLAPIENTRY
glLightfv(GLenum light
, GLenum pname
, const GLfloat
*params
)
1486 DISPATCH(Lightfv
)(light
, pname
, params
);
1489 void GLAPIENTRY
glLightiv(GLenum light
, GLenum pname
, const GLint
*params
)
1492 DISPATCH(Lightiv
)(light
, pname
, params
);
1495 void GLAPIENTRY
glLightModelf(GLenum pname
, GLfloat param
)
1498 DISPATCH(LightModelf
)(pname
, param
);
1501 void GLAPIENTRY
glLightModeli(GLenum pname
, GLint param
)
1504 DISPATCH(LightModeli
)(pname
, param
);
1507 void GLAPIENTRY
glLightModelfv(GLenum pname
, const GLfloat
*params
)
1510 DISPATCH(LightModelfv
)(pname
, params
);
1513 void GLAPIENTRY
glLightModeliv(GLenum pname
, const GLint
*params
)
1516 DISPATCH(LightModeliv
)(pname
, params
);
1519 void GLAPIENTRY
glLineWidth(GLfloat width
)
1522 DISPATCH(LineWidth
)(width
);
1525 void GLAPIENTRY
glLineStipple(GLint factor
, GLushort pattern
)
1528 DISPATCH(LineStipple
)(factor
, pattern
);
1531 void GLAPIENTRY
glListBase(GLuint base
)
1534 DISPATCH(ListBase
)(base
);
1537 void GLAPIENTRY
glLoadIdentity(void)
1540 DISPATCH(LoadIdentity
)();
1543 void GLAPIENTRY
glLoadMatrixd(const GLdouble
*m
)
1546 DISPATCH(LoadMatrixd
)(m
);
1549 void GLAPIENTRY
glLoadMatrixf(const GLfloat
*m
)
1552 DISPATCH(LoadMatrixf
)(m
);
1555 void GLAPIENTRY
glLoadName(GLuint name
)
1558 DISPATCH(LoadName
)(name
);
1561 void GLAPIENTRY
glLogicOp(GLenum opcode
)
1564 DISPATCH(LogicOp
)(opcode
);
1567 void GLAPIENTRY
glMap1d(GLenum target
, GLdouble u1
, GLdouble u2
, GLint stride
, GLint order
, const GLdouble
*points
)
1570 DISPATCH(Map1d
)(target
, u1
, u2
, stride
, order
, points
);
1573 void GLAPIENTRY
glMap1f(GLenum target
, GLfloat u1
, GLfloat u2
, GLint stride
, GLint order
, const GLfloat
*points
)
1576 DISPATCH(Map1f
)(target
, u1
, u2
, stride
, order
, points
);
1579 void GLAPIENTRY
glMap2d(GLenum target
, GLdouble u1
, GLdouble u2
, GLint ustride
, GLint uorder
, GLdouble v1
, GLdouble v2
, GLint vstride
, GLint vorder
, const GLdouble
*points
)
1582 DISPATCH(Map2d
)(target
, u1
, u2
, ustride
, uorder
, v1
, v2
, vstride
, vorder
, points
);
1585 void GLAPIENTRY
glMap2f(GLenum target
, GLfloat u1
, GLfloat u2
, GLint ustride
, GLint uorder
, GLfloat v1
, GLfloat v2
, GLint vstride
, GLint vorder
, const GLfloat
*points
)
1588 DISPATCH(Map2f
)(target
, u1
, u2
, ustride
, uorder
, v1
, v2
, vstride
, vorder
, points
);
1591 void GLAPIENTRY
glMapGrid1d(GLint un
, GLdouble u1
, GLdouble u2
)
1594 DISPATCH(MapGrid1d
)(un
, u1
, u2
);
1597 void GLAPIENTRY
glMapGrid1f(GLint un
, GLfloat u1
, GLfloat u2
)
1600 DISPATCH(MapGrid1f
)(un
, u1
, u2
);
1603 void GLAPIENTRY
glMapGrid2d(GLint un
, GLdouble u1
, GLdouble u2
, GLint vn
, GLdouble v1
, GLdouble v2
)
1606 DISPATCH(MapGrid2d
)(un
, u1
, u2
, vn
, v1
, v2
);
1609 void GLAPIENTRY
glMapGrid2f(GLint un
, GLfloat u1
, GLfloat u2
, GLint vn
, GLfloat v1
, GLfloat v2
)
1612 DISPATCH(MapGrid2f
)(un
, u1
, u2
, vn
, v1
, v2
);
1615 void GLAPIENTRY
glMaterialf(GLenum face
, GLenum pname
, GLfloat param
)
1618 DISPATCH(Materialf
)(face
, pname
, param
);
1621 void GLAPIENTRY
glMateriali(GLenum face
, GLenum pname
, GLint param
)
1624 DISPATCH(Materiali
)(face
, pname
, param
);
1627 void GLAPIENTRY
glMaterialfv(GLenum face
, GLenum pname
, const GLfloat
*params
)
1630 DISPATCH(Materialfv
)(face
, pname
, params
);
1633 void GLAPIENTRY
glMaterialiv(GLenum face
, GLenum pname
, const GLint
*params
)
1636 DISPATCH(Materialiv
)(face
, pname
, params
);
1639 void GLAPIENTRY
glMatrixMode(GLenum mode
)
1642 DISPATCH(MatrixMode
)(mode
);
1645 void GLAPIENTRY
glMultMatrixd(const GLdouble
*m
)
1648 DISPATCH(MultMatrixd
)(m
);
1651 void GLAPIENTRY
glMultMatrixf(const GLfloat
*m
)
1654 DISPATCH(MultMatrixf
)(m
);
1657 void GLAPIENTRY
glNewList(GLuint list
, GLenum mode
)
1660 DISPATCH(NewList
)(list
, mode
);
1663 void GLAPIENTRY
glNormal3b(GLbyte nx
, GLbyte ny
, GLbyte nz
)
1666 DISPATCH(Normal3b
)(nx
, ny
, nz
);
1669 void GLAPIENTRY
glNormal3bv(const GLbyte
*v
)
1672 DISPATCH(Normal3bv
)(v
);
1675 void GLAPIENTRY
glNormal3d(GLdouble nx
, GLdouble ny
, GLdouble nz
)
1678 DISPATCH(Normal3d
)(nx
, ny
, nz
);
1681 void GLAPIENTRY
glNormal3dv(const GLdouble
*v
)
1684 DISPATCH(Normal3dv
)(v
);
1687 void GLAPIENTRY
glNormal3f(GLfloat nx
, GLfloat ny
, GLfloat nz
)
1690 DISPATCH(Normal3f
)(nx
, ny
, nz
);
1693 void GLAPIENTRY
glNormal3fv(const GLfloat
*v
)
1696 DISPATCH(Normal3fv
)(v
);
1699 void GLAPIENTRY
glNormal3i(GLint nx
, GLint ny
, GLint nz
)
1702 DISPATCH(Normal3i
)(nx
, ny
, nz
);
1705 void GLAPIENTRY
glNormal3iv(const GLint
*v
)
1708 DISPATCH(Normal3iv
)(v
);
1711 void GLAPIENTRY
glNormal3s(GLshort nx
, GLshort ny
, GLshort nz
)
1714 DISPATCH(Normal3s
)(nx
, ny
, nz
);
1717 void GLAPIENTRY
glNormal3sv(const GLshort
*v
)
1720 DISPATCH(Normal3sv
)(v
);
1723 void GLAPIENTRY
glOrtho(GLdouble left
, GLdouble right
, GLdouble bottom
, GLdouble top
, GLdouble nearval
, GLdouble farval
)
1726 DISPATCH(Ortho
)(left
, right
, bottom
, top
, nearval
, farval
);
1729 void GLAPIENTRY
glPassThrough(GLfloat token
)
1732 DISPATCH(PassThrough
)(token
);
1735 void GLAPIENTRY
glPixelMapfv(GLenum map
, GLint mapsize
, const GLfloat
*values
)
1738 DISPATCH(PixelMapfv
)(map
, mapsize
, values
);
1741 void GLAPIENTRY
glPixelMapuiv(GLenum map
, GLint mapsize
, const GLuint
*values
)
1744 DISPATCH(PixelMapuiv
)(map
, mapsize
, values
);
1747 void GLAPIENTRY
glPixelMapusv(GLenum map
, GLint mapsize
, const GLushort
*values
)
1750 DISPATCH(PixelMapusv
)(map
, mapsize
, values
);
1753 void GLAPIENTRY
glPixelStoref(GLenum pname
, GLfloat param
)
1756 DISPATCH(PixelStoref
)(pname
, param
);
1759 void GLAPIENTRY
glPixelStorei(GLenum pname
, GLint param
)
1762 DISPATCH(PixelStorei
)(pname
, param
);
1765 void GLAPIENTRY
glPixelTransferf(GLenum pname
, GLfloat param
)
1768 DISPATCH(PixelTransferf
)(pname
, param
);
1771 void GLAPIENTRY
glPixelTransferi(GLenum pname
, GLint param
)
1774 DISPATCH(PixelTransferi
)(pname
, param
);
1777 void GLAPIENTRY
glPixelZoom(GLfloat xfactor
, GLfloat yfactor
)
1780 DISPATCH(PixelZoom
)(xfactor
, yfactor
);
1783 void GLAPIENTRY
glPointSize(GLfloat size
)
1786 DISPATCH(PointSize
)(size
);
1789 void GLAPIENTRY
glPolygonMode(GLenum face
, GLenum mode
)
1792 DISPATCH(PolygonMode
)(face
, mode
);
1795 void GLAPIENTRY
glPolygonStipple(const GLubyte
*pattern
)
1798 DISPATCH(PolygonStipple
)(pattern
);
1801 void GLAPIENTRY
glPopAttrib(void)
1804 DISPATCH(PopAttrib
)();
1807 void GLAPIENTRY
glPopMatrix(void)
1810 DISPATCH(PopMatrix
)();
1813 void GLAPIENTRY
glPopName(void)
1816 DISPATCH(PopName
)();
1819 void GLAPIENTRY
glPushAttrib(GLbitfield mask
)
1822 DISPATCH(PushAttrib
)(mask
);
1825 void GLAPIENTRY
glPushMatrix(void)
1828 DISPATCH(PushMatrix
)();
1831 void GLAPIENTRY
glPushName(GLuint name
)
1834 DISPATCH(PushName
)(name
);
1837 void GLAPIENTRY
glRasterPos2d(GLdouble x
, GLdouble y
)
1840 DISPATCH(RasterPos2d
)(x
, y
);
1843 void GLAPIENTRY
glRasterPos2f(GLfloat x
, GLfloat y
)
1846 DISPATCH(RasterPos2f
)(x
, y
);
1849 void GLAPIENTRY
glRasterPos2i(GLint x
, GLint y
)
1852 DISPATCH(RasterPos2i
)(x
, y
);
1855 void GLAPIENTRY
glRasterPos2s(GLshort x
, GLshort y
)
1858 DISPATCH(RasterPos2s
)(x
, y
);
1861 void GLAPIENTRY
glRasterPos3d(GLdouble x
, GLdouble y
, GLdouble z
)
1864 DISPATCH(RasterPos3d
)(x
, y
, z
);
1867 void GLAPIENTRY
glRasterPos3f(GLfloat x
, GLfloat y
, GLfloat z
)
1870 DISPATCH(RasterPos3f
)(x
, y
, z
);
1873 void GLAPIENTRY
glRasterPos3i(GLint x
, GLint y
, GLint z
)
1876 DISPATCH(RasterPos3i
)(x
, y
, z
);
1879 void GLAPIENTRY
glRasterPos3s(GLshort x
, GLshort y
, GLshort z
)
1882 DISPATCH(RasterPos3s
)(x
, y
, z
);
1885 void GLAPIENTRY
glRasterPos4d(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
1888 DISPATCH(RasterPos4d
)(x
, y
, z
, w
);
1891 void GLAPIENTRY
glRasterPos4f(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
1894 DISPATCH(RasterPos4f
)(x
, y
, z
, w
);
1897 void GLAPIENTRY
glRasterPos4i(GLint x
, GLint y
, GLint z
, GLint w
)
1900 DISPATCH(RasterPos4i
)(x
, y
, z
, w
);
1903 void GLAPIENTRY
glRasterPos4s(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
1906 DISPATCH(RasterPos4s
)(x
, y
, z
, w
);
1909 void GLAPIENTRY
glRasterPos2dv(const GLdouble
*v
)
1912 DISPATCH(RasterPos2dv
)(v
);
1915 void GLAPIENTRY
glRasterPos2fv(const GLfloat
*v
)
1918 DISPATCH(RasterPos2fv
)(v
);
1921 void GLAPIENTRY
glRasterPos2iv(const GLint
*v
)
1924 DISPATCH(RasterPos2iv
)(v
);
1927 void GLAPIENTRY
glRasterPos2sv(const GLshort
*v
)
1930 DISPATCH(RasterPos2sv
)(v
);
1933 void GLAPIENTRY
glRasterPos3dv(const GLdouble
*v
)
1936 DISPATCH(RasterPos3dv
)(v
);
1939 void GLAPIENTRY
glRasterPos3fv(const GLfloat
*v
)
1942 DISPATCH(RasterPos3fv
)(v
);
1945 void GLAPIENTRY
glRasterPos3iv(const GLint
*v
)
1948 DISPATCH(RasterPos3iv
)(v
);
1951 void GLAPIENTRY
glRasterPos3sv(const GLshort
*v
)
1954 DISPATCH(RasterPos3sv
)(v
);
1957 void GLAPIENTRY
glRasterPos4dv(const GLdouble
*v
)
1960 DISPATCH(RasterPos4dv
)(v
);
1963 void GLAPIENTRY
glRasterPos4fv(const GLfloat
*v
)
1966 DISPATCH(RasterPos4fv
)(v
);
1969 void GLAPIENTRY
glRasterPos4iv(const GLint
*v
)
1972 DISPATCH(RasterPos4iv
)(v
);
1975 void GLAPIENTRY
glRasterPos4sv(const GLshort
*v
)
1978 DISPATCH(RasterPos4sv
)(v
);
1981 void GLAPIENTRY
glReadBuffer(GLenum mode
)
1984 DISPATCH(ReadBuffer
)(mode
);
1987 void GLAPIENTRY
glReadPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, GLvoid
*pixels
)
1990 DISPATCH(ReadPixels
)(x
, y
, width
, height
, format
, type
, pixels
);
1993 void GLAPIENTRY
glRectd(GLdouble x1
, GLdouble y1
, GLdouble x2
, GLdouble y2
)
1996 DISPATCH(Rectd
)(x1
, y1
, x2
, y2
);
1999 void GLAPIENTRY
glRectdv(const GLdouble
*v1
, const GLdouble
*v2
)
2002 DISPATCH(Rectdv
)(v1
, v2
);
2005 void GLAPIENTRY
glRectf(GLfloat x1
, GLfloat y1
, GLfloat x2
, GLfloat y2
)
2008 DISPATCH(Rectf
)(x1
, y1
, x2
, y2
);
2011 void GLAPIENTRY
glRectfv(const GLfloat
*v1
, const GLfloat
*v2
)
2014 DISPATCH(Rectfv
)(v1
, v2
);
2017 void GLAPIENTRY
glRecti(GLint x1
, GLint y1
, GLint x2
, GLint y2
)
2020 DISPATCH(Recti
)(x1
, y1
, x2
, y2
);
2023 void GLAPIENTRY
glRectiv(const GLint
*v1
, const GLint
*v2
)
2026 DISPATCH(Rectiv
)(v1
, v2
);
2029 void GLAPIENTRY
glRects(GLshort x1
, GLshort y1
, GLshort x2
, GLshort y2
)
2032 DISPATCH(Rects
)(x1
, y1
, x2
, y2
);
2035 void GLAPIENTRY
glRectsv(const GLshort
*v1
, const GLshort
*v2
)
2038 DISPATCH(Rectsv
)(v1
, v2
);
2041 GLint GLAPIENTRY
glRenderMode(GLenum mode
)
2044 return DISPATCH(RenderMode
)(mode
);
2047 void GLAPIENTRY
glRotated(GLdouble angle
, GLdouble x
, GLdouble y
, GLdouble z
)
2050 DISPATCH(Rotated
)(angle
, x
, y
, z
);
2053 void GLAPIENTRY
glRotatef(GLfloat angle
, GLfloat x
, GLfloat y
, GLfloat z
)
2056 DISPATCH(Rotatef
)(angle
, x
, y
, z
);
2059 void GLAPIENTRY
glSelectBuffer(GLsizei size
, GLuint
*buffer
)
2062 DISPATCH(SelectBuffer
)(size
, buffer
);
2065 void GLAPIENTRY
glScaled(GLdouble x
, GLdouble y
, GLdouble z
)
2068 DISPATCH(Scaled
)(x
, y
, z
);
2071 void GLAPIENTRY
glScalef(GLfloat x
, GLfloat y
, GLfloat z
)
2074 DISPATCH(Scalef
)(x
, y
, z
);
2077 void GLAPIENTRY
glScissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
)
2080 DISPATCH(Scissor
)(x
, y
, width
, height
);
2083 void GLAPIENTRY
glShadeModel(GLenum mode
)
2086 DISPATCH(ShadeModel
)(mode
);
2089 void GLAPIENTRY
glStencilFunc(GLenum func
, GLint ref
, GLuint mask
)
2092 DISPATCH(StencilFunc
)(func
, ref
, mask
);
2095 void GLAPIENTRY
glStencilMask(GLuint mask
)
2098 DISPATCH(StencilMask
)(mask
);
2101 void GLAPIENTRY
glStencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
)
2104 DISPATCH(StencilOp
)(fail
, zfail
, zpass
);
2107 void GLAPIENTRY
glTexCoord1d(GLdouble s
)
2110 DISPATCH(TexCoord1d
)(s
);
2113 void GLAPIENTRY
glTexCoord1f(GLfloat s
)
2116 DISPATCH(TexCoord1f
)(s
);
2119 void GLAPIENTRY
glTexCoord1i(GLint s
)
2122 DISPATCH(TexCoord1i
)(s
);
2125 void GLAPIENTRY
glTexCoord1s(GLshort s
)
2128 DISPATCH(TexCoord1s
)(s
);
2131 void GLAPIENTRY
glTexCoord2d(GLdouble s
, GLdouble t
)
2134 DISPATCH(TexCoord2d
)(s
, t
);
2137 void GLAPIENTRY
glTexCoord2f(GLfloat s
, GLfloat t
)
2140 DISPATCH(TexCoord2f
)(s
, t
);
2143 void GLAPIENTRY
glTexCoord2s(GLshort s
, GLshort t
)
2146 DISPATCH(TexCoord2s
)(s
, t
);
2149 void GLAPIENTRY
glTexCoord2i(GLint s
, GLint t
)
2152 DISPATCH(TexCoord2i
)(s
, t
);
2155 void GLAPIENTRY
glTexCoord3d(GLdouble s
, GLdouble t
, GLdouble r
)
2158 DISPATCH(TexCoord3d
)(s
, t
, r
);
2161 void GLAPIENTRY
glTexCoord3f(GLfloat s
, GLfloat t
, GLfloat r
)
2164 DISPATCH(TexCoord3f
)(s
, t
, r
);
2167 void GLAPIENTRY
glTexCoord3i(GLint s
, GLint t
, GLint r
)
2170 DISPATCH(TexCoord3i
)(s
, t
, r
);
2173 void GLAPIENTRY
glTexCoord3s(GLshort s
, GLshort t
, GLshort r
)
2176 DISPATCH(TexCoord3s
)(s
, t
, r
);
2179 void GLAPIENTRY
glTexCoord4d(GLdouble s
, GLdouble t
, GLdouble r
, GLdouble q
)
2182 DISPATCH(TexCoord4d
)(s
, t
, r
, q
);
2185 void GLAPIENTRY
glTexCoord4f(GLfloat s
, GLfloat t
, GLfloat r
, GLfloat q
)
2188 DISPATCH(TexCoord4f
)(s
, t
, r
, q
);
2191 void GLAPIENTRY
glTexCoord4i(GLint s
, GLint t
, GLint r
, GLint q
)
2194 DISPATCH(TexCoord4i
)(s
, t
, r
, q
);
2197 void GLAPIENTRY
glTexCoord4s(GLshort s
, GLshort t
, GLshort r
, GLshort q
)
2200 DISPATCH(TexCoord4s
)(s
, t
, r
, q
);
2203 void GLAPIENTRY
glTexCoord1dv(const GLdouble
*v
)
2206 DISPATCH(TexCoord1dv
)(v
);
2209 void GLAPIENTRY
glTexCoord1fv(const GLfloat
*v
)
2212 DISPATCH(TexCoord1fv
)(v
);
2215 void GLAPIENTRY
glTexCoord1iv(const GLint
*v
)
2218 DISPATCH(TexCoord1iv
)(v
);
2221 void GLAPIENTRY
glTexCoord1sv(const GLshort
*v
)
2224 DISPATCH(TexCoord1sv
)(v
);
2227 void GLAPIENTRY
glTexCoord2dv(const GLdouble
*v
)
2230 DISPATCH(TexCoord2dv
)(v
);
2233 void GLAPIENTRY
glTexCoord2fv(const GLfloat
*v
)
2236 DISPATCH(TexCoord2fv
)(v
);
2239 void GLAPIENTRY
glTexCoord2iv(const GLint
*v
)
2242 DISPATCH(TexCoord2iv
)(v
);
2245 void GLAPIENTRY
glTexCoord2sv(const GLshort
*v
)
2248 DISPATCH(TexCoord2sv
)(v
);
2251 void GLAPIENTRY
glTexCoord3dv(const GLdouble
*v
)
2254 DISPATCH(TexCoord3dv
)(v
);
2257 void GLAPIENTRY
glTexCoord3fv(const GLfloat
*v
)
2260 DISPATCH(TexCoord3fv
)(v
);
2263 void GLAPIENTRY
glTexCoord3iv(const GLint
*v
)
2266 DISPATCH(TexCoord3iv
)(v
);
2269 void GLAPIENTRY
glTexCoord3sv(const GLshort
*v
)
2272 DISPATCH(TexCoord3sv
)(v
);
2275 void GLAPIENTRY
glTexCoord4dv(const GLdouble
*v
)
2278 DISPATCH(TexCoord4dv
)(v
);
2281 void GLAPIENTRY
glTexCoord4fv(const GLfloat
*v
)
2284 DISPATCH(TexCoord4fv
)(v
);
2287 void GLAPIENTRY
glTexCoord4iv(const GLint
*v
)
2290 DISPATCH(TexCoord4iv
)(v
);
2293 void GLAPIENTRY
glTexCoord4sv(const GLshort
*v
)
2296 DISPATCH(TexCoord4sv
)(v
);
2299 void GLAPIENTRY
glTexGend(GLenum coord
, GLenum pname
, GLdouble param
)
2302 DISPATCH(TexGend
)(coord
, pname
, param
);
2305 void GLAPIENTRY
glTexGendv(GLenum coord
, GLenum pname
, const GLdouble
*params
)
2308 DISPATCH(TexGendv
)(coord
, pname
, params
);
2311 void GLAPIENTRY
glTexGenf(GLenum coord
, GLenum pname
, GLfloat param
)
2314 DISPATCH(TexGenf
)(coord
, pname
, param
);
2317 void GLAPIENTRY
glTexGenfv(GLenum coord
, GLenum pname
, const GLfloat
*params
)
2320 DISPATCH(TexGenfv
)(coord
, pname
, params
);
2323 void GLAPIENTRY
glTexGeni(GLenum coord
, GLenum pname
, GLint param
)
2326 DISPATCH(TexGeni
)(coord
, pname
, param
);
2329 void GLAPIENTRY
glTexGeniv(GLenum coord
, GLenum pname
, const GLint
*params
)
2332 DISPATCH(TexGeniv
)(coord
, pname
, params
);
2335 void GLAPIENTRY
glTexEnvf(GLenum target
, GLenum pname
, GLfloat param
)
2338 DISPATCH(TexEnvf
)(target
, pname
, param
);
2341 void GLAPIENTRY
glTexEnvfv(GLenum target
, GLenum pname
, const GLfloat
*param
)
2344 DISPATCH(TexEnvfv
)(target
, pname
, param
);
2347 void GLAPIENTRY
glTexEnvi(GLenum target
, GLenum pname
, GLint param
)
2350 DISPATCH(TexEnvi
)(target
, pname
, param
);
2353 void GLAPIENTRY
glTexEnviv(GLenum target
, GLenum pname
, const GLint
*param
)
2356 DISPATCH(TexEnviv
)(target
, pname
, param
);
2359 void GLAPIENTRY
glTexImage1D(GLenum target
, GLint level
, GLint internalformat
, GLsizei width
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2362 DISPATCH(TexImage1D
)(target
, level
, internalformat
, width
, border
, format
, type
, pixels
);
2365 void GLAPIENTRY
glTexImage2D(GLenum target
, GLint level
, GLint internalformat
, GLsizei width
, GLsizei height
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2368 DISPATCH(TexImage2D
)(target
, level
, internalformat
, width
, height
, border
, format
, type
, pixels
);
2371 void GLAPIENTRY
glTexParameterf(GLenum target
, GLenum pname
, GLfloat param
)
2374 DISPATCH(TexParameterf
)(target
, pname
, param
);
2377 void GLAPIENTRY
glTexParameterfv(GLenum target
, GLenum pname
, const GLfloat
*params
)
2380 DISPATCH(TexParameterfv
)(target
, pname
, params
);
2383 void GLAPIENTRY
glTexParameteri(GLenum target
, GLenum pname
, GLint param
)
2386 DISPATCH(TexParameteri
)(target
, pname
, param
);
2389 void GLAPIENTRY
glTexParameteriv(GLenum target
, GLenum pname
, const GLint
*params
)
2392 DISPATCH(TexParameteriv
)(target
, pname
, params
);
2395 void GLAPIENTRY
glTranslated(GLdouble x
, GLdouble y
, GLdouble z
)
2398 DISPATCH(Translated
)(x
, y
, z
);
2401 void GLAPIENTRY
glTranslatef(GLfloat x
, GLfloat y
, GLfloat z
)
2404 DISPATCH(Translatef
)(x
, y
, z
);
2407 void GLAPIENTRY
glVertex2d(GLdouble x
, GLdouble y
)
2410 DISPATCH(Vertex2d
)(x
, y
);
2413 void GLAPIENTRY
glVertex2dv(const GLdouble
*v
)
2416 DISPATCH(Vertex2dv
)(v
);
2419 void GLAPIENTRY
glVertex2f(GLfloat x
, GLfloat y
)
2422 DISPATCH(Vertex2f
)(x
, y
);
2425 void GLAPIENTRY
glVertex2fv(const GLfloat
*v
)
2428 DISPATCH(Vertex2fv
)(v
);
2431 void GLAPIENTRY
glVertex2i(GLint x
, GLint y
)
2434 DISPATCH(Vertex2i
)(x
, y
);
2437 void GLAPIENTRY
glVertex2iv(const GLint
*v
)
2440 DISPATCH(Vertex2iv
)(v
);
2443 void GLAPIENTRY
glVertex2s(GLshort x
, GLshort y
)
2446 DISPATCH(Vertex2s
)(x
, y
);
2449 void GLAPIENTRY
glVertex2sv(const GLshort
*v
)
2452 DISPATCH(Vertex2sv
)(v
);
2455 void GLAPIENTRY
glVertex3d(GLdouble x
, GLdouble y
, GLdouble z
)
2458 DISPATCH(Vertex3d
)(x
, y
, z
);
2461 void GLAPIENTRY
glVertex3dv(const GLdouble
*v
)
2464 DISPATCH(Vertex3dv
)(v
);
2467 void GLAPIENTRY
glVertex3f(GLfloat x
, GLfloat y
, GLfloat z
)
2470 DISPATCH(Vertex3f
)(x
, y
, z
);
2473 void GLAPIENTRY
glVertex3fv(const GLfloat
*v
)
2476 DISPATCH(Vertex3fv
)(v
);
2479 void GLAPIENTRY
glVertex3i(GLint x
, GLint y
, GLint z
)
2482 DISPATCH(Vertex3i
)(x
, y
, z
);
2485 void GLAPIENTRY
glVertex3iv(const GLint
*v
)
2488 DISPATCH(Vertex3iv
)(v
);
2491 void GLAPIENTRY
glVertex3s(GLshort x
, GLshort y
, GLshort z
)
2494 DISPATCH(Vertex3s
)(x
, y
, z
);
2497 void GLAPIENTRY
glVertex3sv(const GLshort
*v
)
2500 DISPATCH(Vertex3sv
)(v
);
2503 void GLAPIENTRY
glVertex4d(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
2506 DISPATCH(Vertex4d
)(x
, y
, z
, w
);
2509 void GLAPIENTRY
glVertex4dv(const GLdouble
*v
)
2512 DISPATCH(Vertex4dv
)(v
);
2515 void GLAPIENTRY
glVertex4f(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
2518 DISPATCH(Vertex4f
)(x
, y
, z
, w
);
2521 void GLAPIENTRY
glVertex4fv(const GLfloat
*v
)
2524 DISPATCH(Vertex4fv
)(v
);
2527 void GLAPIENTRY
glVertex4i(GLint x
, GLint y
, GLint z
, GLint w
)
2530 DISPATCH(Vertex4i
)(x
, y
, z
, w
);
2533 void GLAPIENTRY
glVertex4iv(const GLint
*v
)
2536 DISPATCH(Vertex4iv
)(v
);
2539 void GLAPIENTRY
glVertex4s(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
2542 DISPATCH(Vertex4s
)(x
, y
, z
, w
);
2545 void GLAPIENTRY
glVertex4sv(const GLshort
*v
)
2548 DISPATCH(Vertex4sv
)(v
);
2551 void GLAPIENTRY
glViewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
)
2554 DISPATCH(Viewport
)(x
, y
, width
, height
);
2560 #ifdef _GLAPI_VERSION_1_1
2562 GLboolean GLAPIENTRY
glAreTexturesResident(GLsizei n
, const GLuint
*textures
, GLboolean
*residences
)
2565 return DISPATCH(AreTexturesResident
)(n
, textures
, residences
);
2568 void GLAPIENTRY
glArrayElement(GLint i
)
2571 DISPATCH(ArrayElement
)(i
);
2574 void GLAPIENTRY
glBindTexture(GLenum target
, GLuint texture
)
2577 DISPATCH(BindTexture
)(target
, texture
);
2580 void GLAPIENTRY
glColorPointer(GLint size
, GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
2583 DISPATCH(ColorPointer
)(size
, type
, stride
, ptr
);
2586 void GLAPIENTRY
glCopyTexImage1D(GLenum target
, GLint level
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
, GLint border
)
2589 DISPATCH(CopyTexImage1D
)(target
, level
, internalformat
, x
, y
, width
, border
);
2592 void GLAPIENTRY
glCopyTexImage2D(GLenum target
, GLint level
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLint border
)
2595 DISPATCH(CopyTexImage2D
)(target
, level
, internalformat
, x
, y
, width
, height
, border
);
2598 void GLAPIENTRY
glCopyTexSubImage1D(GLenum target
, GLint level
, GLint xoffset
, GLint x
, GLint y
, GLsizei width
)
2601 DISPATCH(CopyTexSubImage1D
)(target
, level
, xoffset
, x
, y
, width
);
2604 void GLAPIENTRY
glCopyTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
2607 DISPATCH(CopyTexSubImage2D
)(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
2610 void GLAPIENTRY
glDeleteTextures(GLsizei n
, const GLuint
*textures
)
2613 DISPATCH(DeleteTextures
)(n
, textures
);
2616 void GLAPIENTRY
glDisableClientState(GLenum cap
)
2619 DISPATCH(DisableClientState
)(cap
);
2622 void GLAPIENTRY
glDrawArrays(GLenum mode
, GLint first
, GLsizei count
)
2625 DISPATCH(DrawArrays
)(mode
, first
, count
);
2628 void GLAPIENTRY
glEdgeFlagPointer(GLsizei stride
, const GLvoid
*ptr
)
2631 DISPATCH(EdgeFlagPointer
)(stride
, ptr
);
2634 void GLAPIENTRY
glEnableClientState(GLenum cap
)
2637 DISPATCH(EnableClientState
)(cap
);
2640 void GLAPIENTRY
glGenTextures(GLsizei n
, GLuint
*textures
)
2643 DISPATCH(GenTextures
)(n
, textures
);
2646 void GLAPIENTRY
glGetPointerv(GLenum pname
, GLvoid
**params
)
2649 DISPATCH(GetPointerv
)(pname
, params
);
2652 void GLAPIENTRY
glIndexPointer(GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
2655 DISPATCH(IndexPointer
)(type
, stride
, ptr
);
2658 void GLAPIENTRY
glNormalPointer(GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
2661 DISPATCH(NormalPointer
)(type
, stride
, ptr
);
2664 void GLAPIENTRY
glPolygonOffset(GLfloat factor
, GLfloat units
)
2667 DISPATCH(PolygonOffset
)(factor
, units
);
2670 void GLAPIENTRY
glPopClientAttrib(void)
2673 DISPATCH(PopClientAttrib
)();
2676 void GLAPIENTRY
glPrioritizeTextures(GLsizei n
, const GLuint
*textures
, const GLclampf
*priorities
)
2679 DISPATCH(PrioritizeTextures
)(n
, textures
, priorities
);
2682 void GLAPIENTRY
glPushClientAttrib(GLbitfield mask
)
2685 DISPATCH(PushClientAttrib
)(mask
);
2688 void GLAPIENTRY
glTexCoordPointer(GLint size
, GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
2691 DISPATCH(TexCoordPointer
)(size
, type
, stride
, ptr
);
2694 void GLAPIENTRY
glTexSubImage1D(GLenum target
, GLint level
, GLint xoffset
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2697 DISPATCH(TexSubImage1D
)(target
, level
, xoffset
, width
, format
, type
, pixels
);
2700 void GLAPIENTRY
glTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2703 DISPATCH(TexSubImage2D
)(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, pixels
);
2706 void GLAPIENTRY
glVertexPointer(GLint size
, GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
2709 DISPATCH(VertexPointer
)(size
, type
, stride
, ptr
);
2712 #endif /*_GLAPI_VERSION_1_1*/
2716 #ifdef _GLAPI_VERSION_1_2
2718 void GLAPIENTRY
glCopyTexSubImage3D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
2721 DISPATCH(CopyTexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
, height
);
2724 void GLAPIENTRY
glDrawRangeElements(GLenum mode
, GLuint start
, GLuint end
, GLsizei count
, GLenum type
, const GLvoid
*indices
)
2727 DISPATCH(DrawRangeElements
)(mode
, start
, end
, count
, type
, indices
);
2730 void GLAPIENTRY
glTexImage3D(GLenum target
, GLint level
, GLint internalformat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2733 DISPATCH(TexImage3D
)(target
, level
, internalformat
, width
, height
, depth
, border
, format
, type
, pixels
);
2736 void GLAPIENTRY
glTexSubImage3D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2739 DISPATCH(TexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
, type
, pixels
);
2743 #ifdef _GLAPI_ARB_imaging
2745 void GLAPIENTRY
glBlendColor(GLclampf r
, GLclampf g
, GLclampf b
, GLclampf a
)
2748 DISPATCH(BlendColor
)(r
, g
, b
, a
);
2751 void GLAPIENTRY
glBlendEquation(GLenum mode
)
2754 DISPATCH(BlendEquation
)(mode
);
2757 void GLAPIENTRY
glColorSubTable(GLenum target
, GLsizei start
, GLsizei count
, GLenum format
, GLenum type
, const GLvoid
*data
)
2760 DISPATCH(ColorSubTable
)(target
, start
, count
, format
, type
, data
);
2763 void GLAPIENTRY
glColorTable(GLenum target
, GLenum internalformat
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*table
)
2766 DISPATCH(ColorTable
)(target
, internalformat
, width
, format
, type
, table
);
2769 void GLAPIENTRY
glColorTableParameterfv(GLenum target
, GLenum pname
, const GLfloat
*params
)
2772 DISPATCH(ColorTableParameterfv
)(target
, pname
, params
);
2775 void GLAPIENTRY
glColorTableParameteriv(GLenum target
, GLenum pname
, const GLint
*params
)
2778 DISPATCH(ColorTableParameteriv
)(target
, pname
, params
);
2781 void GLAPIENTRY
glConvolutionFilter1D(GLenum target
, GLenum internalformat
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*image
)
2784 DISPATCH(ConvolutionFilter1D
)(target
, internalformat
, width
, format
, type
, image
);
2787 void GLAPIENTRY
glConvolutionFilter2D(GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*image
)
2790 DISPATCH(ConvolutionFilter2D
)(target
, internalformat
, width
, height
, format
, type
, image
);
2793 void GLAPIENTRY
glConvolutionParameterf(GLenum target
, GLenum pname
, GLfloat params
)
2796 DISPATCH(ConvolutionParameterf
)(target
, pname
, params
);
2799 void GLAPIENTRY
glConvolutionParameterfv(GLenum target
, GLenum pname
, const GLfloat
*params
)
2802 DISPATCH(ConvolutionParameterfv
)(target
, pname
, params
);
2805 void GLAPIENTRY
glConvolutionParameteri(GLenum target
, GLenum pname
, GLint params
)
2808 DISPATCH(ConvolutionParameteri
)(target
, pname
, params
);
2811 void GLAPIENTRY
glConvolutionParameteriv(GLenum target
, GLenum pname
, const GLint
*params
)
2814 DISPATCH(ConvolutionParameteriv
)(target
, pname
, params
);
2817 void GLAPIENTRY
glCopyColorSubTable(GLenum target
, GLsizei start
, GLint x
, GLint y
, GLsizei width
)
2820 DISPATCH(CopyColorSubTable
)(target
, start
, x
, y
, width
);
2823 void GLAPIENTRY
glCopyColorTable(GLenum target
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
)
2826 DISPATCH(CopyColorTable
)(target
, internalformat
, x
, y
, width
);
2829 void GLAPIENTRY
glCopyConvolutionFilter1D(GLenum target
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
)
2832 DISPATCH(CopyConvolutionFilter1D
)(target
, internalformat
, x
, y
, width
);
2835 void GLAPIENTRY
glCopyConvolutionFilter2D(GLenum target
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
2838 DISPATCH(CopyConvolutionFilter2D
)(target
, internalformat
, x
, y
, width
, height
);
2841 void GLAPIENTRY
glGetColorTable(GLenum target
, GLenum format
, GLenum type
, GLvoid
*table
)
2844 DISPATCH(GetColorTable
)(target
, format
, type
, table
);
2847 void GLAPIENTRY
glGetColorTableParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
2850 DISPATCH(GetColorTableParameterfv
)(target
, pname
, params
);
2853 void GLAPIENTRY
glGetColorTableParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
2856 DISPATCH(GetColorTableParameteriv
)(target
, pname
, params
);
2859 void GLAPIENTRY
glGetConvolutionFilter(GLenum target
, GLenum format
, GLenum type
, GLvoid
*image
)
2862 DISPATCH(GetConvolutionFilter
)(target
, format
, type
, image
);
2865 void GLAPIENTRY
glGetConvolutionParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
2868 DISPATCH(GetConvolutionParameterfv
)(target
, pname
, params
);
2871 void GLAPIENTRY
glGetConvolutionParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
2874 DISPATCH(GetConvolutionParameteriv
)(target
, pname
, params
);
2877 void GLAPIENTRY
glGetHistogram(GLenum target
, GLboolean reset
, GLenum format
, GLenum type
, GLvoid
*values
)
2880 DISPATCH(GetHistogram
)(target
, reset
, format
, type
, values
);
2883 void GLAPIENTRY
glGetHistogramParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
2886 DISPATCH(GetHistogramParameterfv
)(target
, pname
, params
);
2889 void GLAPIENTRY
glGetHistogramParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
2892 DISPATCH(GetHistogramParameteriv
)(target
, pname
, params
);
2895 void GLAPIENTRY
glGetMinmax(GLenum target
, GLboolean reset
, GLenum format
, GLenum types
, GLvoid
*values
)
2898 DISPATCH(GetMinmax
)(target
, reset
, format
, types
, values
);
2901 void GLAPIENTRY
glGetMinmaxParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
2904 DISPATCH(GetMinmaxParameterfv
)(target
, pname
, params
);
2907 void GLAPIENTRY
glGetMinmaxParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
2910 DISPATCH(GetMinmaxParameteriv
)(target
, pname
, params
);
2913 void GLAPIENTRY
glGetSeparableFilter(GLenum target
, GLenum format
, GLenum type
, GLvoid
*row
, GLvoid
*column
, GLvoid
*span
)
2916 DISPATCH(GetSeparableFilter
)(target
, format
, type
, row
, column
, span
);
2919 void GLAPIENTRY
glHistogram(GLenum target
, GLsizei width
, GLenum internalformat
, GLboolean sink
)
2922 DISPATCH(Histogram
)(target
, width
, internalformat
, sink
);
2925 void GLAPIENTRY
glMinmax(GLenum target
, GLenum internalformat
, GLboolean sink
)
2928 DISPATCH(Minmax
)(target
, internalformat
, sink
);
2931 void GLAPIENTRY
glResetMinmax(GLenum target
)
2934 DISPATCH(ResetMinmax
)(target
);
2937 void GLAPIENTRY
glResetHistogram(GLenum target
)
2940 DISPATCH(ResetHistogram
)(target
);
2943 void GLAPIENTRY
glSeparableFilter2D(GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*row
, const GLvoid
*column
)
2946 DISPATCH(SeparableFilter2D
)(target
, internalformat
, width
, height
, format
, type
, row
, column
);
2950 #endif /*_GLAPI_ARB_imaging*/
2951 #endif /*_GLAPI_VERSION_1_2*/
2956 *** Extension functions
2959 #ifdef _GLAPI_EXT_blend_minmax
2960 void GLAPIENTRY
glBlendEquationEXT(GLenum mode
)
2963 DISPATCH(BlendEquationEXT
)(mode
);
2968 #ifdef _GLAPI_EXT_blend_color
2969 void GLAPIENTRY
glBlendColorEXT(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
)
2972 DISPATCH(BlendColorEXT
)(red
, green
, blue
, alpha
);
2977 #ifdef _GLAPI_EXT_polygon_offset
2978 void GLAPIENTRY
glPolygonOffsetEXT(GLfloat factor
, GLfloat bias
)
2981 DISPATCH(PolygonOffsetEXT
)(factor
, bias
);
2987 #ifdef _GLAPI_EXT_vertex_array
2989 void GLAPIENTRY
glVertexPointerEXT(GLint size
, GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
2993 DISPATCH(VertexPointer
)(size
, type
, stride
, ptr
);
2996 void GLAPIENTRY
glNormalPointerEXT(GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
3000 DISPATCH(NormalPointer
)(type
, stride
, ptr
);
3003 void GLAPIENTRY
glColorPointerEXT(GLint size
, GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
3007 DISPATCH(ColorPointer
)(size
, type
, stride
, ptr
);
3010 void GLAPIENTRY
glIndexPointerEXT(GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
3014 DISPATCH(IndexPointer
)(type
, stride
, ptr
);
3017 void GLAPIENTRY
glTexCoordPointerEXT(GLint size
, GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
3021 DISPATCH(ColorPointer
)(size
, type
, stride
, ptr
);
3024 void GLAPIENTRY
glEdgeFlagPointerEXT(GLsizei stride
, GLsizei count
, const GLboolean
*ptr
)
3028 DISPATCH(EdgeFlagPointer
)(stride
, ptr
);
3031 void GLAPIENTRY
glGetPointervEXT(GLenum pname
, void **params
)
3034 DISPATCH(GetPointerv
)(pname
, params
);
3037 void GLAPIENTRY
glArrayElementEXT(GLint i
)
3040 DISPATCH(ArrayElement
)(i
);
3043 void GLAPIENTRY
glDrawArraysEXT(GLenum mode
, GLint first
, GLsizei count
)
3046 DISPATCH(DrawArrays
)(mode
, first
, count
);
3049 #endif /* GL_EXT_vertex_arrays */
3053 #ifdef _GLAPI_EXT_texture_object
3055 void GLAPIENTRY
glGenTexturesEXT(GLsizei n
, GLuint
*textures
)
3058 DISPATCH(GenTextures
)(n
, textures
);
3061 void GLAPIENTRY
glDeleteTexturesEXT(GLsizei n
, const GLuint
*texture
)
3064 DISPATCH(DeleteTextures
)(n
, texture
);
3067 void GLAPIENTRY
glBindTextureEXT(GLenum target
, GLuint texture
)
3070 DISPATCH(BindTexture
)(target
, texture
);
3073 void GLAPIENTRY
glPrioritizeTexturesEXT(GLsizei n
, const GLuint
*textures
, const GLclampf
*priorities
)
3076 DISPATCH(PrioritizeTextures
)(n
, textures
, priorities
);
3079 GLboolean GLAPIENTRY
glAreTexturesResidentEXT(GLsizei n
, const GLuint
*textures
, GLboolean
*residences
)
3082 DISPATCH(AreTexturesResident
)(n
, textures
, residences
);
3086 GLboolean GLAPIENTRY
glIsTextureEXT(GLuint texture
)
3089 DISPATCH(IsTexture
)(texture
);
3092 #endif /* GL_EXT_texture_object */
3096 #ifdef _GLAPI_EXT_texture3D
3098 void GLAPIENTRY
glTexImage3DEXT(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
3101 DISPATCH(TexImage3D
)(target
, level
, internalFormat
, width
, height
, depth
, border
, format
, type
, pixels
);
3104 void GLAPIENTRY
glTexSubImage3DEXT(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
3107 DISPATCH(TexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
, type
, pixels
);
3110 void GLAPIENTRY
glCopyTexSubImage3DEXT(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
3113 DISPATCH(CopyTexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
, height
);
3116 #endif /* GL_EXT_texture3D*/
3120 #ifdef _GLAPI_EXT_paletted_texture
3122 void GLAPIENTRY
glColorTableEXT(GLenum target
, GLenum internalformat
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*table
)
3125 DISPATCH(ColorTableEXT
)(target
, internalformat
, width
, format
, type
, table
);
3128 void GLAPIENTRY
glColorSubTableEXT(GLenum target
, GLsizei start
, GLsizei count
, GLenum format
, GLenum type
, const GLvoid
*data
)
3131 DISPATCH(ColorSubTableEXT
)(target
, start
, count
, format
, type
, data
);
3134 void GLAPIENTRY
glGetColorTableEXT(GLenum target
, GLenum format
, GLenum type
, GLvoid
*table
)
3137 DISPATCH(GetColorTableEXT
)(target
, format
, type
, table
);
3140 void GLAPIENTRY
glGetColorTableParameterfvEXT(GLenum target
, GLenum pname
, GLfloat
*params
)
3143 DISPATCH(GetColorTableParameterfvEXT
)(target
, pname
, params
);
3146 void GLAPIENTRY
glGetColorTableParameterivEXT(GLenum target
, GLenum pname
, GLint
*params
)
3149 DISPATCH(GetColorTableParameterivEXT
)(target
, pname
, params
);
3152 #endif /* GL_EXT_paletted_texture */
3156 #ifdef _GLAPI_EXT_compiled_vertex_array
3158 void GLAPIENTRY
glLockArraysEXT(GLint first
, GLsizei count
)
3161 DISPATCH(LockArraysEXT
)(first
, count
);
3164 void GLAPIENTRY
glUnlockArraysEXT(void)
3167 DISPATCH(UnlockArraysEXT
)();
3170 #endif /* GL_EXT_compiled_vertex_array */
3174 #ifdef _GLAPI_EXT_point_parameters
3176 void GLAPIENTRY
glPointParameterfEXT(GLenum target
, GLfloat param
)
3179 DISPATCH(PointParameterfEXT
)(target
, param
);
3182 void GLAPIENTRY
glPointParameterfvEXT(GLenum target
, const GLfloat
*param
)
3185 DISPATCH(PointParameterfvEXT
)(target
, param
);
3188 #endif /* GL_EXT_point_parameters */
3192 #ifdef _GLAPI_ARB_multitexture
3194 void GLAPIENTRY
glActiveTextureARB(GLenum texture
)
3197 DISPATCH(ActiveTextureARB
)(texture
);
3200 void GLAPIENTRY
glClientActiveTextureARB(GLenum texture
)
3203 DISPATCH(ClientActiveTextureARB
)(texture
);
3206 void GLAPIENTRY
glMultiTexCoord1dARB(GLenum target
, GLdouble s
)
3209 DISPATCH(MultiTexCoord1dARB
)(target
, s
);
3212 void GLAPIENTRY
glMultiTexCoord1dvARB(GLenum target
, const GLdouble
*v
)
3215 DISPATCH(MultiTexCoord1dvARB
)(target
, v
);
3218 void GLAPIENTRY
glMultiTexCoord1fARB(GLenum target
, GLfloat s
)
3221 DISPATCH(MultiTexCoord1fARB
)(target
, s
);
3224 void GLAPIENTRY
glMultiTexCoord1fvARB(GLenum target
, const GLfloat
*v
)
3227 DISPATCH(MultiTexCoord1fvARB
)(target
, v
);
3230 void GLAPIENTRY
glMultiTexCoord1iARB(GLenum target
, GLint s
)
3233 DISPATCH(MultiTexCoord1iARB
)(target
, s
);
3236 void GLAPIENTRY
glMultiTexCoord1ivARB(GLenum target
, const GLint
*v
)
3239 DISPATCH(MultiTexCoord1ivARB
)(target
, v
);
3242 void GLAPIENTRY
glMultiTexCoord1sARB(GLenum target
, GLshort s
)
3245 DISPATCH(MultiTexCoord1sARB
)(target
, s
);
3248 void GLAPIENTRY
glMultiTexCoord1svARB(GLenum target
, const GLshort
*v
)
3251 DISPATCH(MultiTexCoord1svARB
)(target
, v
);
3254 void GLAPIENTRY
glMultiTexCoord2dARB(GLenum target
, GLdouble s
, GLdouble t
)
3257 DISPATCH(MultiTexCoord2dARB
)(target
, s
, t
);
3260 void GLAPIENTRY
glMultiTexCoord2dvARB(GLenum target
, const GLdouble
*v
)
3263 DISPATCH(MultiTexCoord2dvARB
)(target
, v
);
3266 void GLAPIENTRY
glMultiTexCoord2fARB(GLenum target
, GLfloat s
, GLfloat t
)
3269 DISPATCH(MultiTexCoord2fARB
)(target
, s
, t
);
3272 void GLAPIENTRY
glMultiTexCoord2fvARB(GLenum target
, const GLfloat
*v
)
3275 DISPATCH(MultiTexCoord2fvARB
)(target
, v
);
3278 void GLAPIENTRY
glMultiTexCoord2iARB(GLenum target
, GLint s
, GLint t
)
3281 DISPATCH(MultiTexCoord2iARB
)(target
, s
, t
);
3284 void GLAPIENTRY
glMultiTexCoord2ivARB(GLenum target
, const GLint
*v
)
3287 DISPATCH(MultiTexCoord2ivARB
)(target
, v
);
3290 void GLAPIENTRY
glMultiTexCoord2sARB(GLenum target
, GLshort s
, GLshort t
)
3293 DISPATCH(MultiTexCoord2sARB
)(target
, s
, t
);
3296 void GLAPIENTRY
glMultiTexCoord2svARB(GLenum target
, const GLshort
*v
)
3299 DISPATCH(MultiTexCoord2svARB
)(target
, v
);
3302 void GLAPIENTRY
glMultiTexCoord3dARB(GLenum target
, GLdouble s
, GLdouble t
, GLdouble r
)
3305 DISPATCH(MultiTexCoord3dARB
)(target
, s
, t
, r
);
3308 void GLAPIENTRY
glMultiTexCoord3dvARB(GLenum target
, const GLdouble
*v
)
3311 DISPATCH(MultiTexCoord3dvARB
)(target
, v
);
3314 void GLAPIENTRY
glMultiTexCoord3fARB(GLenum target
, GLfloat s
, GLfloat t
, GLfloat r
)
3317 DISPATCH(MultiTexCoord3fARB
)(target
, s
, t
, r
);
3320 void GLAPIENTRY
glMultiTexCoord3fvARB(GLenum target
, const GLfloat
*v
)
3323 DISPATCH(MultiTexCoord3fvARB
)(target
, v
);
3326 void GLAPIENTRY
glMultiTexCoord3iARB(GLenum target
, GLint s
, GLint t
, GLint r
)
3329 DISPATCH(MultiTexCoord3iARB
)(target
, s
, t
, r
);
3332 void GLAPIENTRY
glMultiTexCoord3ivARB(GLenum target
, const GLint
*v
)
3335 DISPATCH(MultiTexCoord3ivARB
)(target
, v
);
3338 void GLAPIENTRY
glMultiTexCoord3sARB(GLenum target
, GLshort s
, GLshort t
, GLshort r
)
3341 DISPATCH(MultiTexCoord3sARB
)(target
, s
, t
, r
);
3344 void GLAPIENTRY
glMultiTexCoord3svARB(GLenum target
, const GLshort
*v
)
3347 DISPATCH(MultiTexCoord3svARB
)(target
, v
);
3350 void GLAPIENTRY
glMultiTexCoord4dARB(GLenum target
, GLdouble s
, GLdouble t
, GLdouble r
, GLdouble q
)
3353 DISPATCH(MultiTexCoord4dARB
)(target
, s
, t
, r
, q
);
3356 void GLAPIENTRY
glMultiTexCoord4dvARB(GLenum target
, const GLdouble
*v
)
3359 DISPATCH(MultiTexCoord4dvARB
)(target
, v
);
3362 void GLAPIENTRY
glMultiTexCoord4fARB(GLenum target
, GLfloat s
, GLfloat t
, GLfloat r
, GLfloat q
)
3365 DISPATCH(MultiTexCoord4fARB
)(target
, s
, t
, r
, q
);
3368 void GLAPIENTRY
glMultiTexCoord4fvARB(GLenum target
, const GLfloat
*v
)
3371 DISPATCH(MultiTexCoord4fvARB
)(target
, v
);
3374 void GLAPIENTRY
glMultiTexCoord4iARB(GLenum target
, GLint s
, GLint t
, GLint r
, GLint q
)
3377 DISPATCH(MultiTexCoord4iARB
)(target
, s
, t
, r
, q
);
3380 void GLAPIENTRY
glMultiTexCoord4ivARB(GLenum target
, const GLint
*v
)
3383 DISPATCH(MultiTexCoord4ivARB
)(target
, v
);
3386 void GLAPIENTRY
glMultiTexCoord4sARB(GLenum target
, GLshort s
, GLshort t
, GLshort r
, GLshort q
)
3389 DISPATCH(MultiTexCoord4sARB
)(target
, s
, t
, r
, q
);
3392 void GLAPIENTRY
glMultiTexCoord4svARB(GLenum target
, const GLshort
*v
)
3395 DISPATCH(MultiTexCoord4svARB
)(target
, v
);
3398 #endif /* GL_ARB_multitexture */
3402 #ifdef _GLAPI_INGR_blend_func_separate
3403 void GLAPIENTRY
glBlendFuncSeparateINGR(GLenum sfactorRGB
, GLenum dfactorRGB
, GLenum sfactorAlpha
, GLenum dfactorAlpha
)
3406 DISPATCH(BlendFuncSeparateINGR
)(sfactorRGB
, dfactorRGB
, sfactorAlpha
, dfactorAlpha
);
3408 #endif /* GL_INGR_blend_func_separate */
3412 #ifdef _GLAPI_MESA_window_pos
3414 void GLAPIENTRY
glWindowPos2iMESA(GLint x
, GLint y
)
3417 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
3420 void GLAPIENTRY
glWindowPos2sMESA(GLshort x
, GLshort y
)
3423 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
3426 void GLAPIENTRY
glWindowPos2fMESA(GLfloat x
, GLfloat y
)
3429 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
3432 void GLAPIENTRY
glWindowPos2dMESA(GLdouble x
, GLdouble y
)
3435 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
3438 void GLAPIENTRY
glWindowPos2ivMESA(const GLint
*p
)
3441 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
3444 void GLAPIENTRY
glWindowPos2svMESA(const GLshort
*p
)
3447 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
3450 void GLAPIENTRY
glWindowPos2fvMESA(const GLfloat
*p
)
3453 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
3456 void GLAPIENTRY
glWindowPos2dvMESA(const GLdouble
*p
)
3459 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
3462 void GLAPIENTRY
glWindowPos3iMESA(GLint x
, GLint y
, GLint z
)
3465 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
3468 void GLAPIENTRY
glWindowPos3sMESA(GLshort x
, GLshort y
, GLshort z
)
3471 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
3474 void GLAPIENTRY
glWindowPos3fMESA(GLfloat x
, GLfloat y
, GLfloat z
)
3477 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
3480 void GLAPIENTRY
glWindowPos3dMESA(GLdouble x
, GLdouble y
, GLdouble z
)
3483 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
3486 void GLAPIENTRY
glWindowPos3ivMESA(const GLint
*p
)
3489 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
3492 void GLAPIENTRY
glWindowPos3svMESA(const GLshort
*p
)
3495 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
3498 void GLAPIENTRY
glWindowPos3fvMESA(const GLfloat
*p
)
3501 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
3504 void GLAPIENTRY
glWindowPos3dvMESA(const GLdouble
*p
)
3507 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
3510 void GLAPIENTRY
glWindowPos4iMESA(GLint x
, GLint y
, GLint z
, GLint w
)
3513 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
3516 void GLAPIENTRY
glWindowPos4sMESA(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
3519 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
3522 void GLAPIENTRY
glWindowPos4fMESA(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
3525 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
3528 void GLAPIENTRY
glWindowPos4dMESA(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
3531 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
3534 void GLAPIENTRY
glWindowPos4ivMESA(const GLint
*p
)
3537 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
3540 void GLAPIENTRY
glWindowPos4svMESA(const GLshort
*p
)
3543 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
3546 void GLAPIENTRY
glWindowPos4fvMESA(const GLfloat
*p
)
3549 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
3552 void GLAPIENTRY
glWindowPos4dvMESA(const GLdouble
*p
)
3555 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
3558 #endif /* GL_MESA_window_pos */
3562 #ifdef _GLAPI_MESA_resize_buffers
3563 void GLAPIENTRY
glResizeBuffersMESA(void)
3566 DISPATCH(ResizeBuffersMESA
)();
3568 #endif /* GL_MESA_resize_buffers */
3575 * This struct is just used to be sure we've defined all the API functions.
3577 static struct _glapi_table completeness_test
= {
3678 glGetPolygonStipple
,
3686 glGetTexLevelParameterfv
,
3687 glGetTexLevelParameteriv
,
3688 glGetTexParameterfv
,
3689 glGetTexParameteriv
,
3886 #ifdef _GLAPI_VERSION_1_1
3887 glAreTexturesResident
,
3893 glCopyTexSubImage1D
,
3894 glCopyTexSubImage2D
,
3896 glDisableClientState
,
3900 glEnableClientState
,
3906 glInterleavedArrays
,
3910 glPrioritizeTextures
,
3918 #ifdef _GLAPI_VERSION_1_2
3919 glCopyTexSubImage3D
,
3920 glDrawRangeElements
,
3924 #ifdef _GLAPI_ARB_imaging
3929 glColorTableParameterfv
,
3930 glColorTableParameteriv
,
3931 glConvolutionFilter1D
,
3932 glConvolutionFilter2D
,
3933 glConvolutionParameterf
,
3934 glConvolutionParameterfv
,
3935 glConvolutionParameteri
,
3936 glConvolutionParameteriv
,
3937 glCopyColorSubTable
,
3939 glCopyConvolutionFilter1D
,
3940 glCopyConvolutionFilter2D
,
3942 glGetColorTableParameterfv
,
3943 glGetColorTableParameteriv
,
3944 glGetConvolutionFilter
,
3945 glGetConvolutionParameterfv
,
3946 glGetConvolutionParameteriv
,
3948 glGetHistogramParameterfv
,
3949 glGetHistogramParameteriv
,
3951 glGetMinmaxParameterfv
,
3952 glGetMinmaxParameteriv
,
3953 glGetSeparableFilter
,
3958 glSeparableFilter2D
,
3967 #ifdef _GLAPI_EXT_paletted_texture
3971 glGetColorTableParameterfvEXT
,
3972 glGetColorTableParameterivEXT
,
3975 #ifdef _GLAPI_EXT_compiled_vertex_array
3980 #ifdef _GLAPI_EXT_point_parameters
3981 glPointParameterfEXT
,
3982 glPointParameterfvEXT
,
3985 #ifdef _GLAPI_EXT_polygon_offset
3989 #ifdef _GLAPI_EXT_blend_minmax
3993 #ifdef _GLAPI_EXT_blend_color
3997 #ifdef _GLAPI_ARB_multitexture
3999 glClientActiveTextureARB
,
4000 glMultiTexCoord1dARB
,
4001 glMultiTexCoord1dvARB
,
4002 glMultiTexCoord1fARB
,
4003 glMultiTexCoord1fvARB
,
4004 glMultiTexCoord1iARB
,
4005 glMultiTexCoord1ivARB
,
4006 glMultiTexCoord1sARB
,
4007 glMultiTexCoord1svARB
,
4008 glMultiTexCoord2dARB
,
4009 glMultiTexCoord2dvARB
,
4010 glMultiTexCoord2fARB
,
4011 glMultiTexCoord2fvARB
,
4012 glMultiTexCoord2iARB
,
4013 glMultiTexCoord2ivARB
,
4014 glMultiTexCoord2sARB
,
4015 glMultiTexCoord2svARB
,
4016 glMultiTexCoord3dARB
,
4017 glMultiTexCoord3dvARB
,
4018 glMultiTexCoord3fARB
,
4019 glMultiTexCoord3fvARB
,
4020 glMultiTexCoord3iARB
,
4021 glMultiTexCoord3ivARB
,
4022 glMultiTexCoord3sARB
,
4023 glMultiTexCoord3svARB
,
4024 glMultiTexCoord4dARB
,
4025 glMultiTexCoord4dvARB
,
4026 glMultiTexCoord4fARB
,
4027 glMultiTexCoord4fvARB
,
4028 glMultiTexCoord4iARB
,
4029 glMultiTexCoord4ivARB
,
4030 glMultiTexCoord4sARB
,
4031 glMultiTexCoord4svARB
,
4034 #ifdef _GLAPI_INGR_blend_func_separate
4035 glBlendFuncSeparateINGR
,
4038 #ifdef _GLAPI_MESA_window_pos
4042 #ifdef _GLAPI_MESA_resize_buffers