1 /* $Id: glapi.c,v 1.4 1999/11/12 00:06:07 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 */
31 #include "glapinoop.h"
35 #if defined(MULTI_THREAD)
41 static struct _glapi_table
*Dispatch
= &__glapi_noop_table
;
42 #define DISPATCH(FUNC) (Dispatch->FUNC)
47 void GLAPIENTRY
glAccum(GLenum op
, GLfloat value
)
49 DISPATCH(Accum
)(op
, value
);
52 void GLAPIENTRY
glAlphaFunc(GLenum func
, GLclampf ref
)
54 DISPATCH(AlphaFunc
)(func
, ref
);
57 void GLAPIENTRY
glBegin(GLenum mode
)
59 DISPATCH(Begin
)(mode
);
62 void GLAPIENTRY
glBitmap(GLsizei width
, GLsizei height
, GLfloat xorig
, GLfloat yorig
, GLfloat xmove
, GLfloat ymove
, const GLubyte
*bitmap
)
64 DISPATCH(Bitmap
)(width
, height
, xorig
, yorig
, xmove
, ymove
, bitmap
);
67 void GLAPIENTRY
glBlendFunc(GLenum sfactor
, GLenum dfactor
)
69 DISPATCH(BlendFunc
)(sfactor
, dfactor
);
72 void GLAPIENTRY
glCallList(GLuint list
)
74 DISPATCH(CallList
)(list
);
77 void GLAPIENTRY
glCallLists(GLsizei n
, GLenum type
, const GLvoid
*lists
)
79 DISPATCH(CallLists
)(n
, type
, lists
);
82 void GLAPIENTRY
glClear(GLbitfield mask
)
84 DISPATCH(Clear
)(mask
);
87 void GLAPIENTRY
glClearAccum(GLfloat red
, GLfloat green
, GLfloat blue
, GLfloat alpha
)
89 DISPATCH(ClearAccum
)(red
, green
, blue
, alpha
);
92 void GLAPIENTRY
glClearColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
)
94 DISPATCH(ClearColor
)(red
, green
, blue
, alpha
);
97 void GLAPIENTRY
glClearDepth(GLclampd depth
)
99 DISPATCH(ClearDepth
)(depth
);
102 void GLAPIENTRY
glClearIndex(GLfloat c
)
104 DISPATCH(ClearIndex
)(c
);
107 void GLAPIENTRY
glClearStencil(GLint s
)
109 DISPATCH(ClearStencil
)(s
);
112 void GLAPIENTRY
glClipPlane(GLenum plane
, const GLdouble
*equation
)
114 DISPATCH(ClipPlane
)(plane
, equation
);
117 void GLAPIENTRY
glColor3b(GLbyte red
, GLbyte green
, GLbyte blue
)
119 DISPATCH(Color3b
)(red
, green
, blue
);
122 void GLAPIENTRY
glColor3d(GLdouble red
, GLdouble green
, GLdouble blue
)
124 DISPATCH(Color3d
)(red
, green
, blue
);
127 void GLAPIENTRY
glColor3f(GLfloat red
, GLfloat green
, GLfloat blue
)
129 DISPATCH(Color3f
)(red
, green
, blue
);
132 void GLAPIENTRY
glColor3i(GLint red
, GLint green
, GLint blue
)
134 DISPATCH(Color3i
)(red
, green
, blue
);
137 void GLAPIENTRY
glColor3s(GLshort red
, GLshort green
, GLshort blue
)
139 DISPATCH(Color3s
)(red
, green
, blue
);
142 void GLAPIENTRY
glColor3ub(GLubyte red
, GLubyte green
, GLubyte blue
)
144 DISPATCH(Color3ub
)(red
, green
, blue
);
147 void GLAPIENTRY
glColor3ui(GLuint red
, GLuint green
, GLuint blue
)
149 DISPATCH(Color3ui
)(red
, green
, blue
);
152 void GLAPIENTRY
glColor3us(GLushort red
, GLushort green
, GLushort blue
)
154 DISPATCH(Color3us
)(red
, green
, blue
);
157 void GLAPIENTRY
glColor4b(GLbyte red
, GLbyte green
, GLbyte blue
, GLbyte alpha
)
159 DISPATCH(Color4b
)(red
, green
, blue
, alpha
);
162 void GLAPIENTRY
glColor4d(GLdouble red
, GLdouble green
, GLdouble blue
, GLdouble alpha
)
164 DISPATCH(Color4d
)(red
, green
, blue
, alpha
);
167 void GLAPIENTRY
glColor4f(GLfloat red
, GLfloat green
, GLfloat blue
, GLfloat alpha
)
169 DISPATCH(Color4f
)(red
, green
, blue
, alpha
);
172 void GLAPIENTRY
glColor4i(GLint red
, GLint green
, GLint blue
, GLint alpha
)
174 DISPATCH(Color4i
)(red
, green
, blue
, alpha
);
177 void GLAPIENTRY
glColor4s(GLshort red
, GLshort green
, GLshort blue
, GLshort alpha
)
179 DISPATCH(Color4s
)(red
, green
, blue
, alpha
);
182 void GLAPIENTRY
glColor4ub(GLubyte red
, GLubyte green
, GLubyte blue
, GLubyte alpha
)
184 DISPATCH(Color4ub
)(red
, green
, blue
, alpha
);
187 void GLAPIENTRY
glColor4ui(GLuint red
, GLuint green
, GLuint blue
, GLuint alpha
)
189 DISPATCH(Color4ui
)(red
, green
, blue
, alpha
);
192 void GLAPIENTRY
glColor4us(GLushort red
, GLushort green
, GLushort blue
, GLushort alpha
)
194 DISPATCH(Color4us
)(red
, green
, blue
, alpha
);
197 void GLAPIENTRY
glColor3bv(const GLbyte
*v
)
199 DISPATCH(Color3bv
)(v
);
202 void GLAPIENTRY
glColor3dv(const GLdouble
*v
)
204 DISPATCH(Color3dv
)(v
);
207 void GLAPIENTRY
glColor3fv(const GLfloat
*v
)
209 DISPATCH(Color3fv
)(v
);
212 void GLAPIENTRY
glColor3iv(const GLint
*v
)
214 DISPATCH(Color3iv
)(v
);
217 void GLAPIENTRY
glColor3sv(const GLshort
*v
)
219 DISPATCH(Color3sv
)(v
);
222 void GLAPIENTRY
glColor3ubv(const GLubyte
*v
)
224 DISPATCH(Color3ubv
)(v
);
227 void GLAPIENTRY
glColor3uiv(const GLuint
*v
)
229 DISPATCH(Color3uiv
)(v
);
232 void GLAPIENTRY
glColor3usv(const GLushort
*v
)
234 DISPATCH(Color3usv
)(v
);
237 void GLAPIENTRY
glColor4bv(const GLbyte
*v
)
239 DISPATCH(Color4bv
)(v
);
242 void GLAPIENTRY
glColor4dv(const GLdouble
*v
)
244 DISPATCH(Color4dv
)(v
);
247 void GLAPIENTRY
glColor4fv(const GLfloat
*v
)
249 DISPATCH(Color4fv
)(v
);
252 void GLAPIENTRY
glColor4iv(const GLint
*v
)
254 DISPATCH(Color4iv
)(v
);
257 void GLAPIENTRY
glColor4sv(const GLshort
*v
)
259 DISPATCH(Color4sv
)(v
);
262 void GLAPIENTRY
glColor4ubv(const GLubyte
*v
)
264 DISPATCH(Color4ubv
)(v
);
267 void GLAPIENTRY
glColor4uiv(const GLuint
*v
)
269 DISPATCH(Color4uiv
)(v
);
272 void GLAPIENTRY
glColor4usv(const GLushort
*v
)
274 DISPATCH(Color4usv
)(v
);
277 void GLAPIENTRY
glColorMask(GLboolean red
, GLboolean green
, GLboolean blue
, GLboolean alpha
)
279 DISPATCH(ColorMask
)(red
, green
, blue
, alpha
);
282 void GLAPIENTRY
glColorMaterial(GLenum face
, GLenum mode
)
284 DISPATCH(ColorMaterial
)(face
, mode
);
287 void GLAPIENTRY
glCopyPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum type
)
289 DISPATCH(CopyPixels
)(x
, y
, width
, height
, type
);
292 void GLAPIENTRY
glCullFace(GLenum mode
)
294 DISPATCH(CullFace
)(mode
);
297 void GLAPIENTRY
glDepthFunc(GLenum func
)
299 DISPATCH(DepthFunc
)(func
);
302 void GLAPIENTRY
glDepthMask(GLboolean flag
)
304 DISPATCH(DepthMask
)(flag
);
307 void GLAPIENTRY
glDepthRange(GLclampd nearVal
, GLclampd farVal
)
309 DISPATCH(DepthRange
)(nearVal
, farVal
);
312 void GLAPIENTRY
glDeleteLists(GLuint list
, GLsizei range
)
314 DISPATCH(DeleteLists
)(list
, range
);
317 void GLAPIENTRY
glDisable(GLenum cap
)
319 DISPATCH(Disable
)(cap
);
322 void GLAPIENTRY
glDisableClientState(GLenum cap
)
324 DISPATCH(DisableClientState
)(cap
);
327 void GLAPIENTRY
glDrawArrays(GLenum mode
, GLint first
, GLsizei count
)
329 DISPATCH(DrawArrays
)(mode
, first
, count
);
332 void GLAPIENTRY
glDrawBuffer(GLenum mode
)
334 DISPATCH(DrawBuffer
)(mode
);
337 void GLAPIENTRY
glDrawElements(GLenum mode
, GLsizei count
, GLenum type
, const GLvoid
*indices
)
339 DISPATCH(DrawElements
)(mode
, count
, type
, indices
);
342 void GLAPIENTRY
glDrawPixels(GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
344 DISPATCH(DrawPixels
)(width
, height
, format
, type
, pixels
);
347 void GLAPIENTRY
glEnable(GLenum mode
)
349 DISPATCH(Enable
)(mode
);
352 void GLAPIENTRY
glEnableClientState(GLenum cap
)
354 DISPATCH(EnableClientState
)(cap
);
357 void GLAPIENTRY
glEnd(void)
362 void GLAPIENTRY
glEndList(void)
367 void GLAPIENTRY
glEvalCoord1d(GLdouble u
)
369 DISPATCH(EvalCoord1d
)(u
);
372 void GLAPIENTRY
glEvalCoord1f(GLfloat u
)
374 DISPATCH(EvalCoord1f
)(u
);
377 void GLAPIENTRY
glEvalCoord1dv(const GLdouble
*u
)
379 DISPATCH(EvalCoord1dv
)(u
);
382 void GLAPIENTRY
glEvalCoord1fv(const GLfloat
*u
)
384 DISPATCH(EvalCoord1fv
)(u
);
387 void GLAPIENTRY
glEvalCoord2d(GLdouble u
, GLdouble v
)
389 DISPATCH(EvalCoord2d
)(u
, v
);
392 void GLAPIENTRY
glEvalCoord2f(GLfloat u
, GLfloat v
)
394 DISPATCH(EvalCoord2f
)(u
, v
);
397 void GLAPIENTRY
glEvalCoord2dv(const GLdouble
*u
)
399 DISPATCH(EvalCoord2dv
)(u
);
402 void GLAPIENTRY
glEvalCoord2fv(const GLfloat
*u
)
404 DISPATCH(EvalCoord2fv
)(u
);
407 void GLAPIENTRY
glEvalPoint1(GLint i
)
409 DISPATCH(EvalPoint1
)(i
);
412 void GLAPIENTRY
glEvalPoint2(GLint i
, GLint j
)
414 DISPATCH(EvalPoint2
)(i
, j
);
417 void GLAPIENTRY
glEvalMesh1(GLenum mode
, GLint i1
, GLint i2
)
419 DISPATCH(EvalMesh1
)(mode
, i1
, i2
);
422 void GLAPIENTRY
glEdgeFlag(GLboolean flag
)
424 DISPATCH(EdgeFlag
)(flag
);
427 void GLAPIENTRY
glEdgeFlagv(const GLboolean
*flag
)
429 DISPATCH(EdgeFlagv
)(flag
);
432 void GLAPIENTRY
glEvalMesh2(GLenum mode
, GLint i1
, GLint i2
, GLint j1
, GLint j2
)
434 DISPATCH(EvalMesh2
)(mode
, i1
, i2
, j1
, j2
);
437 void GLAPIENTRY
glFeedbackBuffer(GLsizei size
, GLenum type
, GLfloat
*buffer
)
439 DISPATCH(FeedbackBuffer
)(size
, type
, buffer
);
442 void GLAPIENTRY
glFinish(void)
447 void GLAPIENTRY
glFlush(void)
452 void GLAPIENTRY
glFogf(GLenum pname
, GLfloat param
)
454 DISPATCH(Fogf
)(pname
, param
);
457 void GLAPIENTRY
glFogi(GLenum pname
, GLint param
)
459 DISPATCH(Fogi
)(pname
, param
);
462 void GLAPIENTRY
glFogfv(GLenum pname
, const GLfloat
*params
)
464 DISPATCH(Fogfv
)(pname
, params
);
467 void GLAPIENTRY
glFogiv(GLenum pname
, const GLint
*params
)
469 DISPATCH(Fogiv
)(pname
, params
);
472 void GLAPIENTRY
glFrontFace(GLenum mode
)
474 DISPATCH(FrontFace
)(mode
);
477 void GLAPIENTRY
glFrustum(GLdouble left
, GLdouble right
, GLdouble bottom
, GLdouble top
, GLdouble nearval
, GLdouble farval
)
479 DISPATCH(Frustum
)(left
, right
, bottom
, top
, nearval
, farval
);
482 GLuint GLAPIENTRY
glGenLists(GLsizei range
)
484 return DISPATCH(GenLists
)(range
);
487 void GLAPIENTRY
glGenTextures(GLsizei n
, GLuint
*textures
)
489 DISPATCH(GenTextures
)(n
, textures
);
492 void GLAPIENTRY
glGetBooleanv(GLenum pname
, GLboolean
*params
)
494 DISPATCH(GetBooleanv
)(pname
, params
);
497 void GLAPIENTRY
glGetClipPlane(GLenum plane
, GLdouble
*equation
)
499 DISPATCH(GetClipPlane
)(plane
, equation
);
502 void GLAPIENTRY
glGetDoublev(GLenum pname
, GLdouble
*params
)
504 DISPATCH(GetDoublev
)(pname
, params
);
507 GLenum GLAPIENTRY
glGetError(void)
509 return DISPATCH(GetError
)();
512 void GLAPIENTRY
glGetFloatv(GLenum pname
, GLfloat
*params
)
514 DISPATCH(GetFloatv
)(pname
, params
);
517 void GLAPIENTRY
glGetIntegerv(GLenum pname
, GLint
*params
)
519 DISPATCH(GetIntegerv
)(pname
, params
);
522 void GLAPIENTRY
glGetLightfv(GLenum light
, GLenum pname
, GLfloat
*params
)
524 DISPATCH(GetLightfv
)(light
, pname
, params
);
527 void GLAPIENTRY
glGetLightiv(GLenum light
, GLenum pname
, GLint
*params
)
529 DISPATCH(GetLightiv
)(light
, pname
, params
);
532 void GLAPIENTRY
glGetMapdv(GLenum target
, GLenum query
, GLdouble
*v
)
534 DISPATCH(GetMapdv
)(target
, query
, v
);
537 void GLAPIENTRY
glGetMapfv(GLenum target
, GLenum query
, GLfloat
*v
)
539 DISPATCH(GetMapfv
)(target
, query
, v
);
542 void GLAPIENTRY
glGetMapiv(GLenum target
, GLenum query
, GLint
*v
)
544 DISPATCH(GetMapiv
)(target
, query
, v
);
547 void GLAPIENTRY
glGetMaterialfv(GLenum face
, GLenum pname
, GLfloat
*params
)
549 DISPATCH(GetMaterialfv
)(face
, pname
, params
);
552 void GLAPIENTRY
glGetMaterialiv(GLenum face
, GLenum pname
, GLint
*params
)
554 DISPATCH(GetMaterialiv
)(face
, pname
, params
);
557 void GLAPIENTRY
glGetPixelMapfv(GLenum map
, GLfloat
*values
)
559 DISPATCH(GetPixelMapfv
)(map
, values
);
562 void GLAPIENTRY
glGetPixelMapuiv(GLenum map
, GLuint
*values
)
564 DISPATCH(GetPixelMapuiv
)(map
, values
);
567 void GLAPIENTRY
glGetPixelMapusv(GLenum map
, GLushort
*values
)
569 DISPATCH(GetPixelMapusv
)(map
, values
);
572 void GLAPIENTRY
glGetPointerv(GLenum pname
, GLvoid
**params
)
574 DISPATCH(GetPointerv
)(pname
, params
);
577 void GLAPIENTRY
glGetPolygonStipple(GLubyte
*mask
)
579 DISPATCH(GetPolygonStipple
)(mask
);
582 const GLubyte
* GLAPIENTRY
glGetString(GLenum name
)
584 return DISPATCH(GetString
)(name
);
587 void GLAPIENTRY
glGetTexEnvfv(GLenum target
, GLenum pname
, GLfloat
*params
)
589 DISPATCH(GetTexEnvfv
)(target
, pname
, params
);
592 void GLAPIENTRY
glGetTexEnviv(GLenum target
, GLenum pname
, GLint
*params
)
594 DISPATCH(GetTexEnviv
)(target
, pname
, params
);
597 void GLAPIENTRY
glGetTexGeniv(GLenum target
, GLenum pname
, GLint
*params
)
599 DISPATCH(GetTexGeniv
)(target
, pname
, params
);
602 void GLAPIENTRY
glGetTexGendv(GLenum target
, GLenum pname
, GLdouble
*params
)
604 DISPATCH(GetTexGendv
)(target
, pname
, params
);
607 void GLAPIENTRY
glGetTexGenfv(GLenum target
, GLenum pname
, GLfloat
*params
)
609 DISPATCH(GetTexGenfv
)(target
, pname
, params
);
612 void GLAPIENTRY
glGetTexImage(GLenum target
, GLint level
, GLenum format
, GLenum type
, GLvoid
*pixels
)
614 DISPATCH(GetTexImage
)(target
, level
, format
, type
, pixels
);
617 void GLAPIENTRY
glGetTexLevelParameterfv(GLenum target
, GLint level
, GLenum pname
, GLfloat
*params
)
619 DISPATCH(GetTexLevelParameterfv
)(target
, level
, pname
, params
);
622 void GLAPIENTRY
glGetTexLevelParameteriv(GLenum target
, GLint level
, GLenum pname
, GLint
*params
)
624 DISPATCH(GetTexLevelParameteriv
)(target
, level
, pname
, params
);
627 void GLAPIENTRY
glGetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
629 DISPATCH(GetTexParameterfv
)(target
, pname
, params
);
632 void GLAPIENTRY
glGetTexParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
634 DISPATCH(GetTexParameteriv
)(target
, pname
, params
);
637 void GLAPIENTRY
glHint(GLenum target
, GLenum mode
)
639 DISPATCH(Hint
)(target
, mode
);
642 void GLAPIENTRY
glIndexd(GLdouble c
)
647 void GLAPIENTRY
glIndexdv(const GLdouble
*c
)
649 DISPATCH(Indexdv
)(c
);
652 void GLAPIENTRY
glIndexf(GLfloat c
)
657 void GLAPIENTRY
glIndexfv(const GLfloat
*c
)
659 DISPATCH(Indexfv
)(c
);
662 void GLAPIENTRY
glIndexi(GLint c
)
667 void GLAPIENTRY
glIndexiv(const GLint
*c
)
669 DISPATCH(Indexiv
)(c
);
672 void GLAPIENTRY
glIndexs(GLshort c
)
677 void GLAPIENTRY
glIndexsv(const GLshort
*c
)
679 DISPATCH(Indexsv
)(c
);
682 void GLAPIENTRY
glIndexub(GLubyte c
)
684 DISPATCH(Indexub
)(c
);
687 void GLAPIENTRY
glIndexubv(const GLubyte
*c
)
689 DISPATCH(Indexubv
)(c
);
692 void GLAPIENTRY
glIndexMask(GLuint mask
)
694 DISPATCH(IndexMask
)(mask
);
697 void GLAPIENTRY
glInitNames(void)
699 DISPATCH(InitNames
)();
702 void GLAPIENTRY
glInterleavedArrays(GLenum format
, GLsizei stride
, const GLvoid
*pointer
)
704 DISPATCH(InterleavedArrays
)(format
, stride
, pointer
);
707 GLboolean GLAPIENTRY
glIsList(GLuint list
)
709 return DISPATCH(IsList
)(list
);
712 GLboolean GLAPIENTRY
glIsTexture(GLuint texture
)
714 return DISPATCH(IsTexture
)(texture
);
717 void GLAPIENTRY
glLightf(GLenum light
, GLenum pname
, GLfloat param
)
719 DISPATCH(Lightf
)(light
, pname
, param
);
722 void GLAPIENTRY
glLighti(GLenum light
, GLenum pname
, GLint param
)
724 DISPATCH(Lighti
)(light
, pname
, param
);
727 void GLAPIENTRY
glLightfv(GLenum light
, GLenum pname
, const GLfloat
*params
)
729 DISPATCH(Lightfv
)(light
, pname
, params
);
732 void GLAPIENTRY
glLightiv(GLenum light
, GLenum pname
, const GLint
*params
)
734 DISPATCH(Lightiv
)(light
, pname
, params
);
737 void GLAPIENTRY
glLightModelf(GLenum pname
, GLfloat param
)
739 DISPATCH(LightModelf
)(pname
, param
);
742 void GLAPIENTRY
glLightModeli(GLenum pname
, GLint param
)
744 DISPATCH(LightModeli
)(pname
, param
);
747 void GLAPIENTRY
glLightModelfv(GLenum pname
, const GLfloat
*params
)
749 DISPATCH(LightModelfv
)(pname
, params
);
752 void GLAPIENTRY
glLightModeliv(GLenum pname
, const GLint
*params
)
754 DISPATCH(LightModeliv
)(pname
, params
);
757 void GLAPIENTRY
glLineWidth(GLfloat width
)
759 DISPATCH(LineWidth
)(width
);
762 void GLAPIENTRY
glLineStipple(GLint factor
, GLushort pattern
)
764 DISPATCH(LineStipple
)(factor
, pattern
);
767 void GLAPIENTRY
glListBase(GLuint base
)
769 DISPATCH(ListBase
)(base
);
772 void GLAPIENTRY
glLoadIdentity(void)
774 DISPATCH(LoadIdentity
)();
777 void GLAPIENTRY
glLoadMatrixd(const GLdouble
*m
)
779 DISPATCH(LoadMatrixd
)(m
);
782 void GLAPIENTRY
glLoadMatrixf(const GLfloat
*m
)
784 DISPATCH(LoadMatrixf
)(m
);
787 void GLAPIENTRY
glLoadName(GLuint name
)
789 DISPATCH(LoadName
)(name
);
792 void GLAPIENTRY
glLogicOp(GLenum opcode
)
794 DISPATCH(LogicOp
)(opcode
);
797 void GLAPIENTRY
glMap1d(GLenum target
, GLdouble u1
, GLdouble u2
, GLint stride
, GLint order
, const GLdouble
*points
)
799 DISPATCH(Map1d
)(target
, u1
, u2
, stride
, order
, points
);
802 void GLAPIENTRY
glMap1f(GLenum target
, GLfloat u1
, GLfloat u2
, GLint stride
, GLint order
, const GLfloat
*points
)
804 DISPATCH(Map1f
)(target
, u1
, u2
, stride
, order
, points
);
807 void GLAPIENTRY
glMap2d(GLenum target
, GLdouble u1
, GLdouble u2
, GLint ustride
, GLint uorder
, GLdouble v1
, GLdouble v2
, GLint vstride
, GLint vorder
, const GLdouble
*points
)
809 DISPATCH(Map2d
)(target
, u1
, u2
, ustride
, uorder
, v1
, v2
, vstride
, vorder
, points
);
812 void GLAPIENTRY
glMap2f(GLenum target
, GLfloat u1
, GLfloat u2
, GLint ustride
, GLint uorder
, GLfloat v1
, GLfloat v2
, GLint vstride
, GLint vorder
, const GLfloat
*points
)
814 DISPATCH(Map2f
)(target
, u1
, u2
, ustride
, uorder
, v1
, v2
, vstride
, vorder
, points
);
817 void GLAPIENTRY
glMapGrid1d(GLint un
, GLdouble u1
, GLdouble u2
)
819 DISPATCH(MapGrid1d
)(un
, u1
, u2
);
822 void GLAPIENTRY
glMapGrid1f(GLint un
, GLfloat u1
, GLfloat u2
)
824 DISPATCH(MapGrid1f
)(un
, u1
, u2
);
827 void GLAPIENTRY
glMapGrid2d(GLint un
, GLdouble u1
, GLdouble u2
, GLint vn
, GLdouble v1
, GLdouble v2
)
829 DISPATCH(MapGrid2d
)(un
, u1
, u2
, vn
, v1
, v2
);
832 void GLAPIENTRY
glMapGrid2f(GLint un
, GLfloat u1
, GLfloat u2
, GLint vn
, GLfloat v1
, GLfloat v2
)
834 DISPATCH(MapGrid2f
)(un
, u1
, u2
, vn
, v1
, v2
);
837 void GLAPIENTRY
glMaterialf(GLenum face
, GLenum pname
, GLfloat param
)
839 DISPATCH(Materialf
)(face
, pname
, param
);
842 void GLAPIENTRY
glMateriali(GLenum face
, GLenum pname
, GLint param
)
844 DISPATCH(Materiali
)(face
, pname
, param
);
847 void GLAPIENTRY
glMaterialfv(GLenum face
, GLenum pname
, const GLfloat
*params
)
849 DISPATCH(Materialfv
)(face
, pname
, params
);
852 void GLAPIENTRY
glMaterialiv(GLenum face
, GLenum pname
, const GLint
*params
)
854 DISPATCH(Materialiv
)(face
, pname
, params
);
857 void GLAPIENTRY
glMatrixMode(GLenum mode
)
859 DISPATCH(MatrixMode
)(mode
);
862 void GLAPIENTRY
glMultMatrixd(const GLdouble
*m
)
864 DISPATCH(MultMatrixd
)(m
);
867 void GLAPIENTRY
glMultMatrixf(const GLfloat
*m
)
869 DISPATCH(MultMatrixf
)(m
);
872 void GLAPIENTRY
glNewList(GLuint list
, GLenum mode
)
874 DISPATCH(NewList
)(list
, mode
);
877 void GLAPIENTRY
glNormal3b(GLbyte nx
, GLbyte ny
, GLbyte nz
)
879 DISPATCH(Normal3b
)(nx
, ny
, nz
);
882 void GLAPIENTRY
glNormal3bv(const GLbyte
*v
)
884 DISPATCH(Normal3bv
)(v
);
887 void GLAPIENTRY
glNormal3d(GLdouble nx
, GLdouble ny
, GLdouble nz
)
889 DISPATCH(Normal3d
)(nx
, ny
, nz
);
892 void GLAPIENTRY
glNormal3dv(const GLdouble
*v
)
894 DISPATCH(Normal3dv
)(v
);
897 void GLAPIENTRY
glNormal3f(GLfloat nx
, GLfloat ny
, GLfloat nz
)
899 DISPATCH(Normal3f
)(nx
, ny
, nz
);
902 void GLAPIENTRY
glNormal3fv(const GLfloat
*v
)
904 DISPATCH(Normal3fv
)(v
);
907 void GLAPIENTRY
glNormal3i(GLint nx
, GLint ny
, GLint nz
)
909 DISPATCH(Normal3i
)(nx
, ny
, nz
);
912 void GLAPIENTRY
glNormal3iv(const GLint
*v
)
914 DISPATCH(Normal3iv
)(v
);
917 void GLAPIENTRY
glNormal3s(GLshort nx
, GLshort ny
, GLshort nz
)
919 DISPATCH(Normal3s
)(nx
, ny
, nz
);
922 void GLAPIENTRY
glNormal3sv(const GLshort
*v
)
924 DISPATCH(Normal3sv
)(v
);
927 void GLAPIENTRY
glOrtho(GLdouble left
, GLdouble right
, GLdouble bottom
, GLdouble top
, GLdouble nearval
, GLdouble farval
)
929 DISPATCH(Ortho
)(left
, right
, bottom
, top
, nearval
, farval
);
932 void GLAPIENTRY
glPassThrough(GLfloat token
)
934 DISPATCH(PassThrough
)(token
);
937 void GLAPIENTRY
glPixelMapfv(GLenum map
, GLint mapsize
, const GLfloat
*values
)
939 DISPATCH(PixelMapfv
)(map
, mapsize
, values
);
942 void GLAPIENTRY
glPixelMapuiv(GLenum map
, GLint mapsize
, const GLuint
*values
)
944 DISPATCH(PixelMapuiv
)(map
, mapsize
, values
);
947 void GLAPIENTRY
glPixelMapusv(GLenum map
, GLint mapsize
, const GLushort
*values
)
949 DISPATCH(PixelMapusv
)(map
, mapsize
, values
);
952 void GLAPIENTRY
glPixelStoref(GLenum pname
, GLfloat param
)
954 DISPATCH(PixelStoref
)(pname
, param
);
957 void GLAPIENTRY
glPixelStorei(GLenum pname
, GLint param
)
959 DISPATCH(PixelStorei
)(pname
, param
);
962 void GLAPIENTRY
glPixelTransferf(GLenum pname
, GLfloat param
)
964 DISPATCH(PixelTransferf
)(pname
, param
);
967 void GLAPIENTRY
glPixelTransferi(GLenum pname
, GLint param
)
969 DISPATCH(PixelTransferi
)(pname
, param
);
972 void GLAPIENTRY
glPixelZoom(GLfloat xfactor
, GLfloat yfactor
)
974 DISPATCH(PixelZoom
)(xfactor
, yfactor
);
977 void GLAPIENTRY
glPointSize(GLfloat size
)
979 DISPATCH(PointSize
)(size
);
982 void GLAPIENTRY
glPolygonMode(GLenum face
, GLenum mode
)
984 DISPATCH(PolygonMode
)(face
, mode
);
987 void GLAPIENTRY
glPolygonOffset(GLfloat factor
, GLfloat units
)
989 DISPATCH(PolygonOffset
)(factor
, units
);
992 void GLAPIENTRY
glPolygonStipple(const GLubyte
*pattern
)
994 DISPATCH(PolygonStipple
)(pattern
);
997 void GLAPIENTRY
glPopAttrib(void)
999 DISPATCH(PopAttrib
)();
1002 void GLAPIENTRY
glPopClientAttrib(void)
1004 DISPATCH(PopClientAttrib
)();
1007 void GLAPIENTRY
glPopMatrix(void)
1009 DISPATCH(PopMatrix
)();
1012 void GLAPIENTRY
glPopName(void)
1014 DISPATCH(PopName
)();
1017 void GLAPIENTRY
glPrioritizeTextures(GLsizei n
, const GLuint
*textures
, const GLclampf
*priorities
)
1019 DISPATCH(PrioritizeTextures
)(n
, textures
, priorities
);
1022 void GLAPIENTRY
glPushMatrix(void)
1024 DISPATCH(PushMatrix
)();
1027 void GLAPIENTRY
glRasterPos2d(GLdouble x
, GLdouble y
)
1029 DISPATCH(RasterPos2d
)(x
, y
);
1032 void GLAPIENTRY
glRasterPos2f(GLfloat x
, GLfloat y
)
1034 DISPATCH(RasterPos2f
)(x
, y
);
1037 void GLAPIENTRY
glRasterPos2i(GLint x
, GLint y
)
1039 DISPATCH(RasterPos2i
)(x
, y
);
1042 void GLAPIENTRY
glRasterPos2s(GLshort x
, GLshort y
)
1044 DISPATCH(RasterPos2s
)(x
, y
);
1047 void GLAPIENTRY
glRasterPos3d(GLdouble x
, GLdouble y
, GLdouble z
)
1049 DISPATCH(RasterPos3d
)(x
, y
, z
);
1052 void GLAPIENTRY
glRasterPos3f(GLfloat x
, GLfloat y
, GLfloat z
)
1054 DISPATCH(RasterPos3f
)(x
, y
, z
);
1057 void GLAPIENTRY
glRasterPos3i(GLint x
, GLint y
, GLint z
)
1059 DISPATCH(RasterPos3i
)(x
, y
, z
);
1062 void GLAPIENTRY
glRasterPos3s(GLshort x
, GLshort y
, GLshort z
)
1064 DISPATCH(RasterPos3s
)(x
, y
, z
);
1067 void GLAPIENTRY
glRasterPos4d(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
1069 DISPATCH(RasterPos4d
)(x
, y
, z
, w
);
1072 void GLAPIENTRY
glRasterPos4f(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
1074 DISPATCH(RasterPos4f
)(x
, y
, z
, w
);
1077 void GLAPIENTRY
glRasterPos4i(GLint x
, GLint y
, GLint z
, GLint w
)
1079 DISPATCH(RasterPos4i
)(x
, y
, z
, w
);
1082 void GLAPIENTRY
glRasterPos4s(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
1084 DISPATCH(RasterPos4s
)(x
, y
, z
, w
);
1087 void GLAPIENTRY
glRasterPos2dv(const GLdouble
*v
)
1089 DISPATCH(RasterPos2dv
)(v
);
1092 void GLAPIENTRY
glRasterPos2fv(const GLfloat
*v
)
1094 DISPATCH(RasterPos2fv
)(v
);
1097 void GLAPIENTRY
glRasterPos2iv(const GLint
*v
)
1099 DISPATCH(RasterPos2iv
)(v
);
1102 void GLAPIENTRY
glRasterPos2sv(const GLshort
*v
)
1104 DISPATCH(RasterPos2sv
)(v
);
1107 void GLAPIENTRY
glRasterPos3dv(const GLdouble
*v
)
1109 DISPATCH(RasterPos3dv
)(v
);
1112 void GLAPIENTRY
glRasterPos3fv(const GLfloat
*v
)
1114 DISPATCH(RasterPos3fv
)(v
);
1117 void GLAPIENTRY
glRasterPos3iv(const GLint
*v
)
1119 DISPATCH(RasterPos3iv
)(v
);
1122 void GLAPIENTRY
glRasterPos3sv(const GLshort
*v
)
1124 DISPATCH(RasterPos3sv
)(v
);
1127 void GLAPIENTRY
glRasterPos4dv(const GLdouble
*v
)
1129 DISPATCH(RasterPos4dv
)(v
);
1132 void GLAPIENTRY
glRasterPos4fv(const GLfloat
*v
)
1134 DISPATCH(RasterPos4fv
)(v
);
1137 void GLAPIENTRY
glRasterPos4iv(const GLint
*v
)
1139 DISPATCH(RasterPos4iv
)(v
);
1142 void GLAPIENTRY
glRasterPos4sv(const GLshort
*v
)
1144 DISPATCH(RasterPos4sv
)(v
);
1147 void GLAPIENTRY
glReadBuffer(GLenum mode
)
1149 DISPATCH(ReadBuffer
)(mode
);
1152 void GLAPIENTRY
glReadPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, GLvoid
*pixels
)
1154 DISPATCH(ReadPixels
)(x
, y
, width
, height
, format
, type
, pixels
);
1157 void GLAPIENTRY
glRectd(GLdouble x1
, GLdouble y1
, GLdouble x2
, GLdouble y2
)
1159 DISPATCH(Rectd
)(x1
, y1
, x2
, y2
);
1162 void GLAPIENTRY
glRectdv(const GLdouble
*v1
, const GLdouble
*v2
)
1164 DISPATCH(Rectdv
)(v1
, v2
);
1167 void GLAPIENTRY
glRectf(GLfloat x1
, GLfloat y1
, GLfloat x2
, GLfloat y2
)
1169 DISPATCH(Rectf
)(x1
, y1
, x2
, y2
);
1172 void GLAPIENTRY
glRectfv(const GLfloat
*v1
, const GLfloat
*v2
)
1174 DISPATCH(Rectfv
)(v1
, v2
);
1177 void GLAPIENTRY
glRecti(GLint x1
, GLint y1
, GLint x2
, GLint y2
)
1179 DISPATCH(Recti
)(x1
, y1
, x2
, y2
);
1182 void GLAPIENTRY
glRectiv(const GLint
*v1
, const GLint
*v2
)
1184 DISPATCH(Rectiv
)(v1
, v2
);
1187 void GLAPIENTRY
glRects(GLshort x1
, GLshort y1
, GLshort x2
, GLshort y2
)
1189 DISPATCH(Rects
)(x1
, y1
, x2
, y2
);
1192 void GLAPIENTRY
glRectsv(const GLshort
*v1
, const GLshort
*v2
)
1194 DISPATCH(Rectsv
)(v1
, v2
);
1197 void GLAPIENTRY
glScissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
)
1199 DISPATCH(Scissor
)(x
, y
, width
, height
);
1202 GLboolean GLAPIENTRY
glIsEnabled(GLenum cap
)
1204 return DISPATCH(IsEnabled
)(cap
);
1207 void GLAPIENTRY
glPushAttrib(GLbitfield mask
)
1209 DISPATCH(PushAttrib
)(mask
);
1212 void GLAPIENTRY
glPushClientAttrib(GLbitfield mask
)
1214 DISPATCH(PushClientAttrib
)(mask
);
1217 void GLAPIENTRY
glPushName(GLuint name
)
1219 DISPATCH(PushName
)(name
);
1222 GLint GLAPIENTRY
glRenderMode(GLenum mode
)
1224 return DISPATCH(RenderMode
)(mode
);
1227 void GLAPIENTRY
glRotated(GLdouble angle
, GLdouble x
, GLdouble y
, GLdouble z
)
1229 DISPATCH(Rotated
)(angle
, x
, y
, z
);
1232 void GLAPIENTRY
glRotatef(GLfloat angle
, GLfloat x
, GLfloat y
, GLfloat z
)
1234 DISPATCH(Rotatef
)(angle
, x
, y
, z
);
1237 void GLAPIENTRY
glSelectBuffer(GLsizei size
, GLuint
*buffer
)
1239 DISPATCH(SelectBuffer
)(size
, buffer
);
1242 void GLAPIENTRY
glScaled(GLdouble x
, GLdouble y
, GLdouble z
)
1244 DISPATCH(Scaled
)(x
, y
, z
);
1247 void GLAPIENTRY
glScalef(GLfloat x
, GLfloat y
, GLfloat z
)
1249 DISPATCH(Scalef
)(x
, y
, z
);
1252 void GLAPIENTRY
glShadeModel(GLenum mode
)
1254 DISPATCH(ShadeModel
)(mode
);
1257 void GLAPIENTRY
glStencilFunc(GLenum func
, GLint ref
, GLuint mask
)
1259 DISPATCH(StencilFunc
)(func
, ref
, mask
);
1262 void GLAPIENTRY
glStencilMask(GLuint mask
)
1264 DISPATCH(StencilMask
)(mask
);
1267 void GLAPIENTRY
glStencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
)
1269 DISPATCH(StencilOp
)(fail
, zfail
, zpass
);
1272 void GLAPIENTRY
glTexCoord1d(GLdouble s
)
1274 DISPATCH(TexCoord1d
)(s
);
1277 void GLAPIENTRY
glTexCoord1f(GLfloat s
)
1279 DISPATCH(TexCoord1f
)(s
);
1282 void GLAPIENTRY
glTexCoord1i(GLint s
)
1284 DISPATCH(TexCoord1i
)(s
);
1287 void GLAPIENTRY
glTexCoord1s(GLshort s
)
1289 DISPATCH(TexCoord1s
)(s
);
1292 void GLAPIENTRY
glTexCoord2d(GLdouble s
, GLdouble t
)
1294 DISPATCH(TexCoord2d
)(s
, t
);
1297 void GLAPIENTRY
glTexCoord2f(GLfloat s
, GLfloat t
)
1299 DISPATCH(TexCoord2f
)(s
, t
);
1302 void GLAPIENTRY
glTexCoord2s(GLshort s
, GLshort t
)
1304 DISPATCH(TexCoord2s
)(s
, t
);
1307 void GLAPIENTRY
glTexCoord2i(GLint s
, GLint t
)
1309 DISPATCH(TexCoord2i
)(s
, t
);
1312 void GLAPIENTRY
glTexCoord3d(GLdouble s
, GLdouble t
, GLdouble r
)
1314 DISPATCH(TexCoord3d
)(s
, t
, r
);
1317 void GLAPIENTRY
glTexCoord3f(GLfloat s
, GLfloat t
, GLfloat r
)
1319 DISPATCH(TexCoord3f
)(s
, t
, r
);
1322 void GLAPIENTRY
glTexCoord3i(GLint s
, GLint t
, GLint r
)
1324 DISPATCH(TexCoord3i
)(s
, t
, r
);
1327 void GLAPIENTRY
glTexCoord3s(GLshort s
, GLshort t
, GLshort r
)
1329 DISPATCH(TexCoord3s
)(s
, t
, r
);
1332 void GLAPIENTRY
glTexCoord4d(GLdouble s
, GLdouble t
, GLdouble r
, GLdouble q
)
1334 DISPATCH(TexCoord4d
)(s
, t
, r
, q
);
1337 void GLAPIENTRY
glTexCoord4f(GLfloat s
, GLfloat t
, GLfloat r
, GLfloat q
)
1339 DISPATCH(TexCoord4f
)(s
, t
, r
, q
);
1342 void GLAPIENTRY
glTexCoord4i(GLint s
, GLint t
, GLint r
, GLint q
)
1344 DISPATCH(TexCoord4i
)(s
, t
, r
, q
);
1347 void GLAPIENTRY
glTexCoord4s(GLshort s
, GLshort t
, GLshort r
, GLshort q
)
1349 DISPATCH(TexCoord4s
)(s
, t
, r
, q
);
1352 void GLAPIENTRY
glTexCoord1dv(const GLdouble
*v
)
1354 DISPATCH(TexCoord1dv
)(v
);
1357 void GLAPIENTRY
glTexCoord1fv(const GLfloat
*v
)
1359 DISPATCH(TexCoord1fv
)(v
);
1362 void GLAPIENTRY
glTexCoord1iv(const GLint
*v
)
1364 DISPATCH(TexCoord1iv
)(v
);
1367 void GLAPIENTRY
glTexCoord1sv(const GLshort
*v
)
1369 DISPATCH(TexCoord1sv
)(v
);
1372 void GLAPIENTRY
glTexCoord2dv(const GLdouble
*v
)
1374 DISPATCH(TexCoord2dv
)(v
);
1377 void GLAPIENTRY
glTexCoord2fv(const GLfloat
*v
)
1379 DISPATCH(TexCoord2fv
)(v
);
1382 void GLAPIENTRY
glTexCoord2iv(const GLint
*v
)
1384 DISPATCH(TexCoord2iv
)(v
);
1387 void GLAPIENTRY
glTexCoord2sv(const GLshort
*v
)
1389 DISPATCH(TexCoord2sv
)(v
);
1392 void GLAPIENTRY
glTexCoord3dv(const GLdouble
*v
)
1394 DISPATCH(TexCoord3dv
)(v
);
1397 void GLAPIENTRY
glTexCoord3fv(const GLfloat
*v
)
1399 DISPATCH(TexCoord3fv
)(v
);
1402 void GLAPIENTRY
glTexCoord3iv(const GLint
*v
)
1404 DISPATCH(TexCoord3iv
)(v
);
1407 void GLAPIENTRY
glTexCoord3sv(const GLshort
*v
)
1409 DISPATCH(TexCoord3sv
)(v
);
1412 void GLAPIENTRY
glTexCoord4dv(const GLdouble
*v
)
1414 DISPATCH(TexCoord4dv
)(v
);
1417 void GLAPIENTRY
glTexCoord4fv(const GLfloat
*v
)
1419 DISPATCH(TexCoord4fv
)(v
);
1422 void GLAPIENTRY
glTexCoord4iv(const GLint
*v
)
1424 DISPATCH(TexCoord4iv
)(v
);
1427 void GLAPIENTRY
glTexCoord4sv(const GLshort
*v
)
1429 DISPATCH(TexCoord4sv
)(v
);
1432 void GLAPIENTRY
glTexGend(GLenum coord
, GLenum pname
, GLdouble param
)
1434 DISPATCH(TexGend
)(coord
, pname
, param
);
1437 void GLAPIENTRY
glTexGendv(GLenum coord
, GLenum pname
, const GLdouble
*params
)
1439 DISPATCH(TexGendv
)(coord
, pname
, params
);
1442 void GLAPIENTRY
glTexGenf(GLenum coord
, GLenum pname
, GLfloat param
)
1444 DISPATCH(TexGenf
)(coord
, pname
, param
);
1447 void GLAPIENTRY
glTexGenfv(GLenum coord
, GLenum pname
, const GLfloat
*params
)
1449 DISPATCH(TexGenfv
)(coord
, pname
, params
);
1452 void GLAPIENTRY
glTexGeni(GLenum coord
, GLenum pname
, GLint param
)
1454 DISPATCH(TexGeni
)(coord
, pname
, param
);
1457 void GLAPIENTRY
glTexGeniv(GLenum coord
, GLenum pname
, const GLint
*params
)
1459 DISPATCH(TexGeniv
)(coord
, pname
, params
);
1462 void GLAPIENTRY
glTexEnvf(GLenum target
, GLenum pname
, GLfloat param
)
1464 DISPATCH(TexEnvf
)(target
, pname
, param
);
1467 void GLAPIENTRY
glTexEnvfv(GLenum target
, GLenum pname
, const GLfloat
*param
)
1469 DISPATCH(TexEnvfv
)(target
, pname
, param
);
1472 void GLAPIENTRY
glTexEnvi(GLenum target
, GLenum pname
, GLint param
)
1474 DISPATCH(TexEnvi
)(target
, pname
, param
);
1477 void GLAPIENTRY
glTexEnviv(GLenum target
, GLenum pname
, const GLint
*param
)
1479 DISPATCH(TexEnviv
)(target
, pname
, param
);
1482 void GLAPIENTRY
glTexImage1D(GLenum target
, GLint level
, GLint internalformat
, GLsizei width
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1484 DISPATCH(TexImage1D
)(target
, level
, internalformat
, width
, border
, format
, type
, pixels
);
1487 void GLAPIENTRY
glTexImage2D(GLenum target
, GLint level
, GLint internalformat
, GLsizei width
, GLsizei height
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1489 DISPATCH(TexImage2D
)(target
, level
, internalformat
, width
, height
, border
, format
, type
, pixels
);
1492 void GLAPIENTRY
glTexParameterf(GLenum target
, GLenum pname
, GLfloat param
)
1494 DISPATCH(TexParameterf
)(target
, pname
, param
);
1497 void GLAPIENTRY
glTexParameterfv(GLenum target
, GLenum pname
, const GLfloat
*params
)
1499 DISPATCH(TexParameterfv
)(target
, pname
, params
);
1502 void GLAPIENTRY
glTexParameteri(GLenum target
, GLenum pname
, GLint param
)
1504 DISPATCH(TexParameteri
)(target
, pname
, param
);
1507 void GLAPIENTRY
glTexParameteriv(GLenum target
, GLenum pname
, const GLint
*params
)
1509 DISPATCH(TexParameteriv
)(target
, pname
, params
);
1512 void GLAPIENTRY
glTranslated(GLdouble x
, GLdouble y
, GLdouble z
)
1514 DISPATCH(Translated
)(x
, y
, z
);
1517 void GLAPIENTRY
glTranslatef(GLfloat x
, GLfloat y
, GLfloat z
)
1519 DISPATCH(Translatef
)(x
, y
, z
);
1522 void GLAPIENTRY
glVertex2d(GLdouble x
, GLdouble y
)
1524 DISPATCH(Vertex2d
)(x
, y
);
1527 void GLAPIENTRY
glVertex2dv(const GLdouble
*v
)
1529 DISPATCH(Vertex2dv
)(v
);
1532 void GLAPIENTRY
glVertex2f(GLfloat x
, GLfloat y
)
1534 DISPATCH(Vertex2f
)(x
, y
);
1537 void GLAPIENTRY
glVertex2fv(const GLfloat
*v
)
1539 DISPATCH(Vertex2fv
)(v
);
1542 void GLAPIENTRY
glVertex2i(GLint x
, GLint y
)
1544 DISPATCH(Vertex2i
)(x
, y
);
1547 void GLAPIENTRY
glVertex2iv(const GLint
*v
)
1549 DISPATCH(Vertex2iv
)(v
);
1552 void GLAPIENTRY
glVertex2s(GLshort x
, GLshort y
)
1554 DISPATCH(Vertex2s
)(x
, y
);
1557 void GLAPIENTRY
glVertex2sv(const GLshort
*v
)
1559 DISPATCH(Vertex2sv
)(v
);
1562 void GLAPIENTRY
glVertex3d(GLdouble x
, GLdouble y
, GLdouble z
)
1564 DISPATCH(Vertex3d
)(x
, y
, z
);
1567 void GLAPIENTRY
glVertex3dv(const GLdouble
*v
)
1569 DISPATCH(Vertex3dv
)(v
);
1572 void GLAPIENTRY
glVertex3f(GLfloat x
, GLfloat y
, GLfloat z
)
1574 DISPATCH(Vertex3f
)(x
, y
, z
);
1577 void GLAPIENTRY
glVertex3fv(const GLfloat
*v
)
1579 DISPATCH(Vertex3fv
)(v
);
1582 void GLAPIENTRY
glVertex3i(GLint x
, GLint y
, GLint z
)
1584 DISPATCH(Vertex3i
)(x
, y
, z
);
1587 void GLAPIENTRY
glVertex3iv(const GLint
*v
)
1589 DISPATCH(Vertex3iv
)(v
);
1592 void GLAPIENTRY
glVertex3s(GLshort x
, GLshort y
, GLshort z
)
1594 DISPATCH(Vertex3s
)(x
, y
, z
);
1597 void GLAPIENTRY
glVertex3sv(const GLshort
*v
)
1599 DISPATCH(Vertex3sv
)(v
);
1602 void GLAPIENTRY
glVertex4d(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
1604 DISPATCH(Vertex4d
)(x
, y
, z
, w
);
1607 void GLAPIENTRY
glVertex4dv(const GLdouble
*v
)
1609 DISPATCH(Vertex4dv
)(v
);
1612 void GLAPIENTRY
glVertex4f(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
1614 DISPATCH(Vertex4f
)(x
, y
, z
, w
);
1617 void GLAPIENTRY
glVertex4fv(const GLfloat
*v
)
1619 DISPATCH(Vertex4fv
)(v
);
1622 void GLAPIENTRY
glVertex4i(GLint x
, GLint y
, GLint z
, GLint w
)
1624 DISPATCH(Vertex4i
)(x
, y
, z
, w
);
1627 void GLAPIENTRY
glVertex4iv(const GLint
*v
)
1629 DISPATCH(Vertex4iv
)(v
);
1632 void GLAPIENTRY
glVertex4s(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
1634 DISPATCH(Vertex4s
)(x
, y
, z
, w
);
1637 void GLAPIENTRY
glVertex4sv(const GLshort
*v
)
1639 DISPATCH(Vertex4sv
)(v
);
1642 void GLAPIENTRY
glViewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
)
1644 DISPATCH(Viewport
)(x
, y
, width
, height
);
1650 #ifdef _GLAPI_VERSION_1_1
1652 GLboolean GLAPIENTRY
glAreTexturesResident(GLsizei n
, const GLuint
*textures
, GLboolean
*residences
)
1654 return DISPATCH(AreTexturesResident
)(n
, textures
, residences
);
1657 void GLAPIENTRY
glArrayElement(GLint i
)
1659 DISPATCH(ArrayElement
)(i
);
1662 void GLAPIENTRY
glBindTexture(GLenum target
, GLuint texture
)
1664 DISPATCH(BindTexture
)(target
, texture
);
1667 void GLAPIENTRY
glColorPointer(GLint size
, GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
1669 DISPATCH(ColorPointer
)(size
, type
, stride
, ptr
);
1672 void GLAPIENTRY
glCopyTexImage1D(GLenum target
, GLint level
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
, GLint border
)
1674 DISPATCH(CopyTexImage1D
)(target
, level
, internalformat
, x
, y
, width
, border
);
1677 void GLAPIENTRY
glCopyTexImage2D(GLenum target
, GLint level
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLint border
)
1679 DISPATCH(CopyTexImage2D
)(target
, level
, internalformat
, x
, y
, width
, height
, border
);
1682 void GLAPIENTRY
glCopyTexSubImage1D(GLenum target
, GLint level
, GLint xoffset
, GLint x
, GLint y
, GLsizei width
)
1684 DISPATCH(CopyTexSubImage1D
)(target
, level
, xoffset
, x
, y
, width
);
1687 void GLAPIENTRY
glCopyTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
1689 DISPATCH(CopyTexSubImage2D
)(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
1692 void GLAPIENTRY
glDeleteTextures(GLsizei n
, const GLuint
*textures
)
1694 DISPATCH(DeleteTextures
)(n
, textures
);
1697 void GLAPIENTRY
glEdgeFlagPointer(GLsizei stride
, const GLvoid
*ptr
)
1699 DISPATCH(EdgeFlagPointer
)(stride
, ptr
);
1702 void GLAPIENTRY
glIndexPointer(GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
1704 DISPATCH(IndexPointer
)(type
, stride
, ptr
);
1707 void GLAPIENTRY
glNormalPointer(GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
1709 DISPATCH(NormalPointer
)(type
, stride
, ptr
);
1712 void GLAPIENTRY
glTexCoordPointer(GLint size
, GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
1714 DISPATCH(TexCoordPointer
)(size
, type
, stride
, ptr
);
1717 void GLAPIENTRY
glTexSubImage1D(GLenum target
, GLint level
, GLint xoffset
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1719 DISPATCH(TexSubImage1D
)(target
, level
, xoffset
, width
, format
, type
, pixels
);
1722 void GLAPIENTRY
glTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1724 DISPATCH(TexSubImage2D
)(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, pixels
);
1727 void GLAPIENTRY
glVertexPointer(GLint size
, GLenum type
, GLsizei stride
, const GLvoid
*ptr
)
1729 DISPATCH(VertexPointer
)(size
, type
, stride
, ptr
);
1732 #endif /*_GLAPI_VERSION_1_1*/
1736 #ifdef _GLAPI_VERSION_1_2
1738 void GLAPIENTRY
glCopyTexSubImage3D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
1740 DISPATCH(CopyTexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
, height
);
1743 void GLAPIENTRY
glDrawRangeElements(GLenum mode
, GLuint start
, GLuint end
, GLsizei count
, GLenum type
, const GLvoid
*indices
)
1745 DISPATCH(DrawRangeElements
)(mode
, start
, end
, count
, type
, indices
);
1748 void GLAPIENTRY
glTexImage3D(GLenum target
, GLint level
, GLint internalformat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1750 DISPATCH(TexImage3D
)(target
, level
, internalformat
, width
, height
, depth
, border
, format
, type
, pixels
);
1753 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
)
1755 DISPATCH(TexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
, type
, pixels
);
1759 #ifdef _GLAPI_ARB_imaging
1761 void GLAPIENTRY
glBlendColor(GLclampf r
, GLclampf g
, GLclampf b
, GLclampf a
)
1763 DISPATCH(BlendColor
)(r
, g
, b
, a
);
1766 void GLAPIENTRY
glBlendEquation(GLenum mode
)
1768 DISPATCH(BlendEquation
)(mode
);
1771 void GLAPIENTRY
glColorSubTable(GLenum target
, GLsizei start
, GLsizei count
, GLenum format
, GLenum type
, const GLvoid
*data
)
1773 DISPATCH(ColorSubTable
)(target
, start
, count
, format
, type
, data
);
1776 void GLAPIENTRY
glColorTable(GLenum target
, GLenum internalformat
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*table
)
1778 DISPATCH(ColorTable
)(target
, internalformat
, width
, format
, type
, table
);
1781 void GLAPIENTRY
glColorTableParameterfv(GLenum target
, GLenum pname
, const GLfloat
*params
)
1783 DISPATCH(ColorTableParameterfv
)(target
, pname
, params
);
1786 void GLAPIENTRY
glColorTableParameteriv(GLenum target
, GLenum pname
, const GLint
*params
)
1788 DISPATCH(ColorTableParameteriv
)(target
, pname
, params
);
1791 void GLAPIENTRY
glConvolutionFilter1D(GLenum target
, GLenum internalformat
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*image
)
1793 DISPATCH(ConvolutionFilter1D
)(target
, internalformat
, width
, format
, type
, image
);
1796 void GLAPIENTRY
glConvolutionFilter2D(GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*image
)
1798 DISPATCH(ConvolutionFilter2D
)(target
, internalformat
, width
, height
, format
, type
, image
);
1801 void GLAPIENTRY
glConvolutionParameterf(GLenum target
, GLenum pname
, GLfloat params
)
1803 DISPATCH(ConvolutionParameterf
)(target
, pname
, params
);
1806 void GLAPIENTRY
glConvolutionParameterfv(GLenum target
, GLenum pname
, const GLfloat
*params
)
1808 DISPATCH(ConvolutionParameterfv
)(target
, pname
, params
);
1811 void GLAPIENTRY
glConvolutionParameteri(GLenum target
, GLenum pname
, GLint params
)
1813 DISPATCH(ConvolutionParameteri
)(target
, pname
, params
);
1816 void GLAPIENTRY
glConvolutionParameteriv(GLenum target
, GLenum pname
, const GLint
*params
)
1818 DISPATCH(ConvolutionParameteriv
)(target
, pname
, params
);
1821 void GLAPIENTRY
glCopyColorSubTable(GLenum target
, GLsizei start
, GLint x
, GLint y
, GLsizei width
)
1823 DISPATCH(CopyColorSubTable
)(target
, start
, x
, y
, width
);
1826 void GLAPIENTRY
glCopyColorTable(GLenum target
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
)
1828 DISPATCH(CopyColorTable
)(target
, internalformat
, x
, y
, width
);
1831 void GLAPIENTRY
glCopyConvolutionFilter1D(GLenum target
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
)
1833 DISPATCH(CopyConvolutionFilter1D
)(target
, internalformat
, x
, y
, width
);
1836 void GLAPIENTRY
glCopyConvolutionFilter2D(GLenum target
, GLenum internalformat
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
1838 DISPATCH(CopyConvolutionFilter2D
)(target
, internalformat
, x
, y
, width
, height
);
1841 void GLAPIENTRY
glGetColorTable(GLenum target
, GLenum format
, GLenum type
, GLvoid
*table
)
1843 DISPATCH(GetColorTable
)(target
, format
, type
, table
);
1846 void GLAPIENTRY
glGetColorTableParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1848 DISPATCH(GetColorTableParameterfv
)(target
, pname
, params
);
1851 void GLAPIENTRY
glGetColorTableParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
1853 DISPATCH(GetColorTableParameteriv
)(target
, pname
, params
);
1856 void GLAPIENTRY
glGetConvolutionFilter(GLenum target
, GLenum format
, GLenum type
, GLvoid
*image
)
1858 DISPATCH(GetConvolutionFilter
)(target
, format
, type
, image
);
1861 void GLAPIENTRY
glGetConvolutionParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1863 DISPATCH(GetConvolutionParameterfv
)(target
, pname
, params
);
1866 void GLAPIENTRY
glGetConvolutionParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
1868 DISPATCH(GetConvolutionParameteriv
)(target
, pname
, params
);
1871 void GLAPIENTRY
glGetHistogram(GLenum target
, GLboolean reset
, GLenum format
, GLenum type
, GLvoid
*values
)
1873 DISPATCH(GetHistogram
)(target
, reset
, format
, type
, values
);
1876 void GLAPIENTRY
glGetHistogramParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1878 DISPATCH(GetHistogramParameterfv
)(target
, pname
, params
);
1881 void GLAPIENTRY
glGetHistogramParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
1883 DISPATCH(GetHistogramParameteriv
)(target
, pname
, params
);
1886 void GLAPIENTRY
glGetMinmax(GLenum target
, GLboolean reset
, GLenum format
, GLenum types
, GLvoid
*values
)
1888 DISPATCH(GetMinmax
)(target
, reset
, format
, types
, values
);
1891 void GLAPIENTRY
glGetMinmaxParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1893 DISPATCH(GetMinmaxParameterfv
)(target
, pname
, params
);
1896 void GLAPIENTRY
glGetMinmaxParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
1898 DISPATCH(GetMinmaxParameteriv
)(target
, pname
, params
);
1901 void GLAPIENTRY
glGetSeparableFilter(GLenum target
, GLenum format
, GLenum type
, GLvoid
*row
, GLvoid
*column
, GLvoid
*span
)
1903 DISPATCH(GetSeparableFilter
)(target
, format
, type
, row
, column
, span
);
1906 void GLAPIENTRY
glHistogram(GLenum target
, GLsizei width
, GLenum internalformat
, GLboolean sink
)
1908 DISPATCH(Histogram
)(target
, width
, internalformat
, sink
);
1911 void GLAPIENTRY
glMinmax(GLenum target
, GLenum internalformat
, GLboolean sink
)
1913 DISPATCH(Minmax
)(target
, internalformat
, sink
);
1916 void GLAPIENTRY
glResetMinmax(GLenum target
)
1918 DISPATCH(ResetMinmax
)(target
);
1921 void GLAPIENTRY
glResetHistogram(GLenum target
)
1923 DISPATCH(ResetHistogram
)(target
);
1926 void GLAPIENTRY
glSeparableFilter2D(GLenum target
, GLenum internalformat
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*row
, const GLvoid
*column
)
1928 DISPATCH(SeparableFilter2D
)(target
, internalformat
, width
, height
, format
, type
, row
, column
);
1932 #endif /*_GLAPI_ARB_imaging*/
1933 #endif /*_GLAPI_VERSION_1_2*/
1938 *** Extension functions
1941 #ifdef _GLAPI_EXT_blend_minmax
1942 void GLAPIENTRY
glBlendEquationEXT(GLenum mode
)
1944 DISPATCH(BlendEquationEXT
)(mode
);
1949 #ifdef _GLAPI_EXT_blend_color
1950 void GLAPIENTRY
glBlendColorEXT(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
)
1952 DISPATCH(BlendColorEXT
)(red
, green
, blue
, alpha
);
1957 #ifdef _GLAPI_EXT_polygon_offset
1958 void GLAPIENTRY
glPolygonOffsetEXT(GLfloat factor
, GLfloat bias
)
1960 DISPATCH(PolygonOffsetEXT
)(factor
, bias
);
1966 #ifdef _GLAPI_EXT_vertex_array
1968 void GLAPIENTRY
glVertexPointerEXT(GLint size
, GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
1971 DISPATCH(VertexPointer
)(size
, type
, stride
, ptr
);
1974 void GLAPIENTRY
glNormalPointerEXT(GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
1977 DISPATCH(NormalPointer
)(type
, stride
, ptr
);
1980 void GLAPIENTRY
glColorPointerEXT(GLint size
, GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
1983 DISPATCH(ColorPointer
)(size
, type
, stride
, ptr
);
1986 void GLAPIENTRY
glIndexPointerEXT(GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
1989 DISPATCH(IndexPointer
)(type
, stride
, ptr
);
1992 void GLAPIENTRY
glTexCoordPointerEXT(GLint size
, GLenum type
, GLsizei stride
, GLsizei count
, const GLvoid
*ptr
)
1995 DISPATCH(ColorPointer
)(size
, type
, stride
, ptr
);
1998 void GLAPIENTRY
glEdgeFlagPointerEXT(GLsizei stride
, GLsizei count
, const GLboolean
*ptr
)
2001 DISPATCH(EdgeFlagPointer
)(stride
, ptr
);
2004 void GLAPIENTRY
glGetPointervEXT(GLenum pname
, void **params
)
2006 DISPATCH(GetPointerv
)(pname
, params
);
2009 void GLAPIENTRY
glArrayElementEXT(GLint i
)
2011 DISPATCH(ArrayElement
)(i
);
2014 void GLAPIENTRY
glDrawArraysEXT(GLenum mode
, GLint first
, GLsizei count
)
2016 DISPATCH(DrawArrays
)(mode
, first
, count
);
2019 #endif /* GL_EXT_vertex_arrays */
2023 #ifdef _GLAPI_EXT_texture_object
2025 void GLAPIENTRY
glGenTexturesEXT(GLsizei n
, GLuint
*textures
)
2027 DISPATCH(GenTextures
)(n
, textures
);
2030 void GLAPIENTRY
glDeleteTexturesEXT(GLsizei n
, const GLuint
*texture
)
2032 DISPATCH(DeleteTextures
)(n
, texture
);
2035 void GLAPIENTRY
glBindTextureEXT(GLenum target
, GLuint texture
)
2037 DISPATCH(BindTexture
)(target
, texture
);
2040 void GLAPIENTRY
glPrioritizeTexturesEXT(GLsizei n
, const GLuint
*textures
, const GLclampf
*priorities
)
2042 DISPATCH(PrioritizeTextures
)(n
, textures
, priorities
);
2045 GLboolean GLAPIENTRY
glAreTexturesResidentEXT(GLsizei n
, const GLuint
*textures
, GLboolean
*residences
)
2047 DISPATCH(AreTexturesResident
)(n
, textures
, residences
);
2051 GLboolean GLAPIENTRY
glIsTextureEXT(GLuint texture
)
2053 DISPATCH(IsTexture
)(texture
);
2056 #endif /* GL_EXT_texture_object */
2060 #ifdef _GLAPI_EXT_texture3D
2062 void GLAPIENTRY
glTexImage3DEXT(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2064 DISPATCH(TexImage3D
)(target
, level
, internalFormat
, width
, height
, depth
, border
, format
, type
, pixels
);
2067 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
)
2069 DISPATCH(TexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
, type
, pixels
);
2072 void GLAPIENTRY
glCopyTexSubImage3DEXT(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
2074 DISPATCH(CopyTexSubImage3D
)(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
, height
);
2077 #endif /* GL_EXT_texture3D*/
2081 #ifdef _GLAPI_EXT_color_table
2083 void GLAPIENTRY
glColorTableEXT(GLenum target
, GLenum internalformat
, GLsizei width
, GLenum format
, GLenum type
, const GLvoid
*table
)
2085 DISPATCH(ColorTableEXT
)(target
, internalformat
, width
, format
, type
, table
);
2088 void GLAPIENTRY
glColorSubTableEXT(GLenum target
, GLsizei start
, GLsizei count
, GLenum format
, GLenum type
, const GLvoid
*data
)
2090 DISPATCH(ColorSubTableEXT
)(target
, start
, count
, format
, type
, data
);
2093 void GLAPIENTRY
glGetColorTableEXT(GLenum target
, GLenum format
, GLenum type
, GLvoid
*table
)
2095 DISPATCH(GetColorTableEXT
)(target
, format
, type
, table
);
2098 void GLAPIENTRY
glGetColorTableParameterfvEXT(GLenum target
, GLenum pname
, GLfloat
*params
)
2100 DISPATCH(GetColorTableParameterfvEXT
)(target
, pname
, params
);
2103 void GLAPIENTRY
glGetColorTableParameterivEXT(GLenum target
, GLenum pname
, GLint
*params
)
2105 DISPATCH(GetColorTableParameterivEXT
)(target
, pname
, params
);
2108 #endif /* GL_EXT_color_table */
2112 #ifdef _GLAPI_EXT_compiled_vertex_array
2114 void GLAPIENTRY
glLockArraysEXT(GLint first
, GLsizei count
)
2116 DISPATCH(LockArraysEXT
)(first
, count
);
2119 void GLAPIENTRY
glUnlockArraysEXT(void)
2121 DISPATCH(UnlockArraysEXT
)();
2124 #endif /* GL_EXT_compiled_vertex_array */
2128 #ifdef _GLAPI_EXT_point_parameters
2130 void GLAPIENTRY
glPointParameterfEXT(GLenum target
, GLfloat param
)
2132 DISPATCH(PointParameterfEXT
)(target
, param
);
2135 void GLAPIENTRY
glPointParameterfvEXT(GLenum target
, const GLfloat
*param
)
2137 DISPATCH(PointParameterfvEXT
)(target
, param
);
2140 #endif /* GL_EXT_point_parameters */
2144 #ifdef _GLAPI_ARB_multitexture
2146 void GLAPIENTRY
glActiveTextureARB(GLenum texture
)
2148 DISPATCH(ActiveTextureARB
)(texture
);
2151 void GLAPIENTRY
glClientActiveTextureARB(GLenum texture
)
2153 DISPATCH(ClientActiveTextureARB
)(texture
);
2156 void GLAPIENTRY
glMultiTexCoord1dARB(GLenum target
, GLdouble s
)
2158 DISPATCH(MultiTexCoord1dARB
)(target
, s
);
2161 void GLAPIENTRY
glMultiTexCoord1dvARB(GLenum target
, const GLdouble
*v
)
2163 DISPATCH(MultiTexCoord1dvARB
)(target
, v
);
2166 void GLAPIENTRY
glMultiTexCoord1fARB(GLenum target
, GLfloat s
)
2168 DISPATCH(MultiTexCoord1fARB
)(target
, s
);
2171 void GLAPIENTRY
glMultiTexCoord1fvARB(GLenum target
, const GLfloat
*v
)
2173 DISPATCH(MultiTexCoord1fvARB
)(target
, v
);
2176 void GLAPIENTRY
glMultiTexCoord1iARB(GLenum target
, GLint s
)
2178 DISPATCH(MultiTexCoord1iARB
)(target
, s
);
2181 void GLAPIENTRY
glMultiTexCoord1ivARB(GLenum target
, const GLint
*v
)
2183 DISPATCH(MultiTexCoord1ivARB
)(target
, v
);
2186 void GLAPIENTRY
glMultiTexCoord1sARB(GLenum target
, GLshort s
)
2188 DISPATCH(MultiTexCoord1sARB
)(target
, s
);
2191 void GLAPIENTRY
glMultiTexCoord1svARB(GLenum target
, const GLshort
*v
)
2193 DISPATCH(MultiTexCoord1svARB
)(target
, v
);
2196 void GLAPIENTRY
glMultiTexCoord2dARB(GLenum target
, GLdouble s
, GLdouble t
)
2198 DISPATCH(MultiTexCoord2dARB
)(target
, s
, t
);
2201 void GLAPIENTRY
glMultiTexCoord2dvARB(GLenum target
, const GLdouble
*v
)
2203 DISPATCH(MultiTexCoord2dvARB
)(target
, v
);
2206 void GLAPIENTRY
glMultiTexCoord2fARB(GLenum target
, GLfloat s
, GLfloat t
)
2208 DISPATCH(MultiTexCoord2fARB
)(target
, s
, t
);
2211 void GLAPIENTRY
glMultiTexCoord2fvARB(GLenum target
, const GLfloat
*v
)
2213 DISPATCH(MultiTexCoord2fvARB
)(target
, v
);
2216 void GLAPIENTRY
glMultiTexCoord2iARB(GLenum target
, GLint s
, GLint t
)
2218 DISPATCH(MultiTexCoord2iARB
)(target
, s
, t
);
2221 void GLAPIENTRY
glMultiTexCoord2ivARB(GLenum target
, const GLint
*v
)
2223 DISPATCH(MultiTexCoord2ivARB
)(target
, v
);
2226 void GLAPIENTRY
glMultiTexCoord2sARB(GLenum target
, GLshort s
, GLshort t
)
2228 DISPATCH(MultiTexCoord2sARB
)(target
, s
, t
);
2231 void GLAPIENTRY
glMultiTexCoord2svARB(GLenum target
, const GLshort
*v
)
2233 DISPATCH(MultiTexCoord2svARB
)(target
, v
);
2236 void GLAPIENTRY
glMultiTexCoord3dARB(GLenum target
, GLdouble s
, GLdouble t
, GLdouble r
)
2238 DISPATCH(MultiTexCoord3dARB
)(target
, s
, t
, r
);
2241 void GLAPIENTRY
glMultiTexCoord3dvARB(GLenum target
, const GLdouble
*v
)
2243 DISPATCH(MultiTexCoord3dvARB
)(target
, v
);
2246 void GLAPIENTRY
glMultiTexCoord3fARB(GLenum target
, GLfloat s
, GLfloat t
, GLfloat r
)
2248 DISPATCH(MultiTexCoord3fARB
)(target
, s
, t
, r
);
2251 void GLAPIENTRY
glMultiTexCoord3fvARB(GLenum target
, const GLfloat
*v
)
2253 DISPATCH(MultiTexCoord3fvARB
)(target
, v
);
2256 void GLAPIENTRY
glMultiTexCoord3iARB(GLenum target
, GLint s
, GLint t
, GLint r
)
2258 DISPATCH(MultiTexCoord3iARB
)(target
, s
, t
, r
);
2261 void GLAPIENTRY
glMultiTexCoord3ivARB(GLenum target
, const GLint
*v
)
2263 DISPATCH(MultiTexCoord3ivARB
)(target
, v
);
2266 void GLAPIENTRY
glMultiTexCoord3sARB(GLenum target
, GLshort s
, GLshort t
, GLshort r
)
2268 DISPATCH(MultiTexCoord3sARB
)(target
, s
, t
, r
);
2271 void GLAPIENTRY
glMultiTexCoord3svARB(GLenum target
, const GLshort
*v
)
2273 DISPATCH(MultiTexCoord3svARB
)(target
, v
);
2276 void GLAPIENTRY
glMultiTexCoord4dARB(GLenum target
, GLdouble s
, GLdouble t
, GLdouble r
, GLdouble q
)
2278 DISPATCH(MultiTexCoord4dARB
)(target
, s
, t
, r
, q
);
2281 void GLAPIENTRY
glMultiTexCoord4dvARB(GLenum target
, const GLdouble
*v
)
2283 DISPATCH(MultiTexCoord4dvARB
)(target
, v
);
2286 void GLAPIENTRY
glMultiTexCoord4fARB(GLenum target
, GLfloat s
, GLfloat t
, GLfloat r
, GLfloat q
)
2288 DISPATCH(MultiTexCoord4fARB
)(target
, s
, t
, r
, q
);
2291 void GLAPIENTRY
glMultiTexCoord4fvARB(GLenum target
, const GLfloat
*v
)
2293 DISPATCH(MultiTexCoord4fvARB
)(target
, v
);
2296 void GLAPIENTRY
glMultiTexCoord4iARB(GLenum target
, GLint s
, GLint t
, GLint r
, GLint q
)
2298 DISPATCH(MultiTexCoord4iARB
)(target
, s
, t
, r
, q
);
2301 void GLAPIENTRY
glMultiTexCoord4ivARB(GLenum target
, const GLint
*v
)
2303 DISPATCH(MultiTexCoord4ivARB
)(target
, v
);
2306 void GLAPIENTRY
glMultiTexCoord4sARB(GLenum target
, GLshort s
, GLshort t
, GLshort r
, GLshort q
)
2308 DISPATCH(MultiTexCoord4sARB
)(target
, s
, t
, r
, q
);
2311 void GLAPIENTRY
glMultiTexCoord4svARB(GLenum target
, const GLshort
*v
)
2313 DISPATCH(MultiTexCoord4svARB
)(target
, v
);
2316 #endif /* GL_ARB_multitexture */
2320 #ifdef _GLAPI_INGR_blend_func_separate
2321 void GLAPIENTRY
glBlendFuncSeparateINGR(GLenum sfactorRGB
, GLenum dfactorRGB
, GLenum sfactorAlpha
, GLenum dfactorAlpha
)
2323 DISPATCH(BlendFuncSeparateINGR
)(sfactorRGB
, dfactorRGB
, sfactorAlpha
, dfactorAlpha
);
2325 #endif /* GL_INGR_blend_func_separate */
2329 #ifdef _GLAPI_MESA_window_pos
2331 void GLAPIENTRY
glWindowPos2iMESA(GLint x
, GLint y
)
2333 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
2336 void GLAPIENTRY
glWindowPos2sMESA(GLshort x
, GLshort y
)
2338 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
2341 void GLAPIENTRY
glWindowPos2fMESA(GLfloat x
, GLfloat y
)
2343 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
2346 void GLAPIENTRY
glWindowPos2dMESA(GLdouble x
, GLdouble y
)
2348 DISPATCH(WindowPos4fMESA
)(x
, y
, 0, 1);
2351 void GLAPIENTRY
glWindowPos2ivMESA(const GLint
*p
)
2353 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
2356 void GLAPIENTRY
glWindowPos2svMESA(const GLshort
*p
)
2358 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
2361 void GLAPIENTRY
glWindowPos2fvMESA(const GLfloat
*p
)
2363 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
2366 void GLAPIENTRY
glWindowPos2dvMESA(const GLdouble
*p
)
2368 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], 0, 1);
2371 void GLAPIENTRY
glWindowPos3iMESA(GLint x
, GLint y
, GLint z
)
2373 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
2376 void GLAPIENTRY
glWindowPos3sMESA(GLshort x
, GLshort y
, GLshort z
)
2378 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
2381 void GLAPIENTRY
glWindowPos3fMESA(GLfloat x
, GLfloat y
, GLfloat z
)
2383 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
2386 void GLAPIENTRY
glWindowPos3dMESA(GLdouble x
, GLdouble y
, GLdouble z
)
2388 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, 1);
2391 void GLAPIENTRY
glWindowPos3ivMESA(const GLint
*p
)
2393 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
2396 void GLAPIENTRY
glWindowPos3svMESA(const GLshort
*p
)
2398 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
2401 void GLAPIENTRY
glWindowPos3fvMESA(const GLfloat
*p
)
2403 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
2406 void GLAPIENTRY
glWindowPos3dvMESA(const GLdouble
*p
)
2408 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], 1.0);
2411 void GLAPIENTRY
glWindowPos4iMESA(GLint x
, GLint y
, GLint z
, GLint w
)
2413 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
2416 void GLAPIENTRY
glWindowPos4sMESA(GLshort x
, GLshort y
, GLshort z
, GLshort w
)
2418 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
2421 void GLAPIENTRY
glWindowPos4fMESA(GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
)
2423 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
2426 void GLAPIENTRY
glWindowPos4dMESA(GLdouble x
, GLdouble y
, GLdouble z
, GLdouble w
)
2428 DISPATCH(WindowPos4fMESA
)(x
, y
, z
, w
);
2431 void GLAPIENTRY
glWindowPos4ivMESA(const GLint
*p
)
2433 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
2436 void GLAPIENTRY
glWindowPos4svMESA(const GLshort
*p
)
2438 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
2441 void GLAPIENTRY
glWindowPos4fvMESA(const GLfloat
*p
)
2443 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
2446 void GLAPIENTRY
glWindowPos4dvMESA(const GLdouble
*p
)
2448 DISPATCH(WindowPos4fMESA
)(p
[0], p
[1], p
[2], p
[3]);
2451 #endif /* GL_MESA_window_pos */
2455 #ifdef _GLAPI_MESA_resize_buffers
2456 GLAPI
void GLAPIENTRY
glResizeBuffersMESA(void)
2458 DISPATCH(ResizeBuffersMESA
)();
2460 #endif /* GL_MESA_resize_buffers */
2465 * This struct is just used to be sure we've defined all the API functions.
2467 static struct _glapi_table completeness_test
= {
2568 glGetPolygonStipple
,
2576 glGetTexLevelParameterfv
,
2577 glGetTexLevelParameteriv
,
2578 glGetTexParameterfv
,
2579 glGetTexParameteriv
,
2776 #ifdef _GLAPI_VERSION_1_1
2777 glAreTexturesResident
,
2783 glCopyTexSubImage1D
,
2784 glCopyTexSubImage2D
,
2786 glDisableClientState
,
2790 glEnableClientState
,
2796 glInterleavedArrays
,
2800 glPrioritizeTextures
,
2808 #ifdef _GLAPI_VERSION_1_2
2809 glCopyTexSubImage3D
,
2810 glDrawRangeElements
,
2814 #ifdef _GLAPI_ARB_imaging
2819 glColorTableParameterfv
,
2820 glColorTableParameteriv
,
2821 glConvolutionFilter1D
,
2822 glConvolutionFilter2D
,
2823 glConvolutionParameterf
,
2824 glConvolutionParameterfv
,
2825 glConvolutionParameteri
,
2826 glConvolutionParameteriv
,
2827 glCopyColorSubTable
,
2829 glCopyConvolutionFilter1D
,
2830 glCopyConvolutionFilter2D
,
2832 glGetColorTableParameterfv
,
2833 glGetColorTableParameteriv
,
2834 glGetConvolutionFilter
,
2835 glGetConvolutionParameterfv
,
2836 glGetConvolutionParameteriv
,
2838 glGetHistogramParameterfv
,
2839 glGetHistogramParameteriv
,
2841 glGetMinmaxParameterfv
,
2842 glGetMinmaxParameteriv
,
2843 glGetSeparableFilter
,
2848 glSeparableFilter2D
,
2857 #ifdef _GLAPI_EXT_color_table
2861 glGetColorTableParameterfvEXT
,
2862 glGetColorTableParameterivEXT
,
2865 #ifdef _GLAPI_EXT_compiled_vertex_array
2870 #ifdef _GLAPI_EXT_point_parameters
2871 glPointParameterfEXT
,
2872 glPointParameterfvEXT
,
2875 #ifdef _GLAPI_EXT_polygon_offset
2879 #ifdef _GLAPI_EXT_blend_minmax
2883 #ifdef _GLAPI_EXT_blend_color
2887 #ifdef _GLAPI_ARB_multitexture
2889 glClientActiveTextureARB
,
2890 glMultiTexCoord1dARB
,
2891 glMultiTexCoord1dvARB
,
2892 glMultiTexCoord1fARB
,
2893 glMultiTexCoord1fvARB
,
2894 glMultiTexCoord1iARB
,
2895 glMultiTexCoord1ivARB
,
2896 glMultiTexCoord1sARB
,
2897 glMultiTexCoord1svARB
,
2898 glMultiTexCoord2dARB
,
2899 glMultiTexCoord2dvARB
,
2900 glMultiTexCoord2fARB
,
2901 glMultiTexCoord2fvARB
,
2902 glMultiTexCoord2iARB
,
2903 glMultiTexCoord2ivARB
,
2904 glMultiTexCoord2sARB
,
2905 glMultiTexCoord2svARB
,
2906 glMultiTexCoord3dARB
,
2907 glMultiTexCoord3dvARB
,
2908 glMultiTexCoord3fARB
,
2909 glMultiTexCoord3fvARB
,
2910 glMultiTexCoord3iARB
,
2911 glMultiTexCoord3ivARB
,
2912 glMultiTexCoord3sARB
,
2913 glMultiTexCoord3svARB
,
2914 glMultiTexCoord4dARB
,
2915 glMultiTexCoord4dvARB
,
2916 glMultiTexCoord4fARB
,
2917 glMultiTexCoord4fvARB
,
2918 glMultiTexCoord4iARB
,
2919 glMultiTexCoord4ivARB
,
2920 glMultiTexCoord4sARB
,
2921 glMultiTexCoord4svARB
,
2924 #ifdef _GLAPI_INGR_blend_func_separate
2925 glBlendFuncSeparateINGR
,
2928 #ifdef _GLAPI_MESA_window_pos
2932 #ifdef _GLAPI_MESA_resize_buffers
2944 * Set the global or per-thread dispatch table pointer.
2947 _glapi_set_dispatch(struct _glapi_table
*dispatch
)
2950 (void) completeness_test
; /* to silence compiler warnings */
2955 _glapi_check_table(dispatch
);
2957 #if defined(MULTI_THREAD)
2958 /* set this thread's dispatch pointer */
2961 Dispatch
= dispatch
;
2965 /* no current context, each function is a no-op */
2966 #if defined(MULTI_THREAD)
2969 Dispatch
= &__glapi_noop_table
;
2976 * Get the global or per-thread dispatch table pointer.
2978 struct _glapi_table
*
2979 _glapi_get_dispatch(void)
2981 #if defined(MULTI_THREAD)
2982 /* return this thread's dispatch pointer */
2991 * Get API dispatcher version string.
2994 _glapi_get_version(void)
2996 return "1.2"; /* XXX this isn't well defined yet */
3001 * Return list of hard-coded extension entrypoints in the dispatch table.
3004 _glapi_get_extensions(void)
3006 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";
3012 * Dynamically allocate an extension entry point. Return a slot number.
3015 _glapi_alloc_entrypoint(const char *funcName
)
3024 * Find the dynamic entry point for the named function.
3027 _glapi_get_entrypoint(const char *funcName
)
3035 * Return entrypoint for named function.
3038 _glapi_get_proc_address(const char *funcName
)
3047 * Make sure there are no NULL pointers in the given dispatch table.
3048 * Intented for debugging purposes.
3051 _glapi_check_table(const struct _glapi_table
*table
)
3053 assert(table
->Accum
);
3054 assert(table
->AlphaFunc
);
3055 assert(table
->Begin
);
3056 assert(table
->Bitmap
);
3057 assert(table
->BlendFunc
);
3058 assert(table
->CallList
);
3059 assert(table
->CallLists
);
3060 assert(table
->Clear
);
3061 assert(table
->ClearAccum
);
3062 assert(table
->ClearColor
);
3063 assert(table
->ClearDepth
);
3064 assert(table
->ClearIndex
);
3065 assert(table
->ClearStencil
);
3066 assert(table
->ClipPlane
);
3067 assert(table
->Color3b
);
3068 assert(table
->Color3bv
);
3069 assert(table
->Color3d
);
3070 assert(table
->Color3dv
);
3071 assert(table
->Color3f
);
3072 assert(table
->Color3fv
);
3073 assert(table
->Color3i
);
3074 assert(table
->Color3iv
);
3075 assert(table
->Color3s
);
3076 assert(table
->Color3sv
);
3077 assert(table
->Color3ub
);
3078 assert(table
->Color3ubv
);
3079 assert(table
->Color3ui
);
3080 assert(table
->Color3uiv
);
3081 assert(table
->Color3us
);
3082 assert(table
->Color3usv
);
3083 assert(table
->Color4b
);
3084 assert(table
->Color4bv
);
3085 assert(table
->Color4d
);
3086 assert(table
->Color4dv
);
3087 assert(table
->Color4f
);
3088 assert(table
->Color4fv
);
3089 assert(table
->Color4i
);
3090 assert(table
->Color4iv
);
3091 assert(table
->Color4s
);
3092 assert(table
->Color4sv
);
3093 assert(table
->Color4ub
);
3094 assert(table
->Color4ubv
);
3095 assert(table
->Color4ui
);
3096 assert(table
->Color4uiv
);
3097 assert(table
->Color4us
);
3098 assert(table
->Color4usv
);
3099 assert(table
->ColorMask
);
3100 assert(table
->ColorMaterial
);
3101 assert(table
->CopyPixels
);
3102 assert(table
->CullFace
);
3103 assert(table
->DeleteLists
);
3104 assert(table
->DepthFunc
);
3105 assert(table
->DepthMask
);
3106 assert(table
->DepthRange
);
3107 assert(table
->Disable
);
3108 assert(table
->DrawBuffer
);
3109 assert(table
->DrawElements
);
3110 assert(table
->DrawPixels
);
3111 assert(table
->EdgeFlag
);
3112 assert(table
->EdgeFlagv
);
3113 assert(table
->Enable
);
3115 assert(table
->EndList
);
3116 assert(table
->EvalCoord1d
);
3117 assert(table
->EvalCoord1dv
);
3118 assert(table
->EvalCoord1f
);
3119 assert(table
->EvalCoord1fv
);
3120 assert(table
->EvalCoord2d
);
3121 assert(table
->EvalCoord2dv
);
3122 assert(table
->EvalCoord2f
);
3123 assert(table
->EvalCoord2fv
);
3124 assert(table
->EvalMesh1
);
3125 assert(table
->EvalMesh2
);
3126 assert(table
->EvalPoint1
);
3127 assert(table
->EvalPoint2
);
3128 assert(table
->FeedbackBuffer
);
3129 assert(table
->Finish
);
3130 assert(table
->Flush
);
3131 assert(table
->Fogf
);
3132 assert(table
->Fogfv
);
3133 assert(table
->Fogi
);
3134 assert(table
->Fogiv
);
3135 assert(table
->FrontFace
);
3136 assert(table
->Frustum
);
3137 assert(table
->GenLists
);
3138 assert(table
->GetBooleanv
);
3139 assert(table
->GetClipPlane
);
3140 assert(table
->GetDoublev
);
3141 assert(table
->GetError
);
3142 assert(table
->GetFloatv
);
3143 assert(table
->GetIntegerv
);
3144 assert(table
->GetLightfv
);
3145 assert(table
->GetLightiv
);
3146 assert(table
->GetMapdv
);
3147 assert(table
->GetMapfv
);
3148 assert(table
->GetMapiv
);
3149 assert(table
->GetMaterialfv
);
3150 assert(table
->GetMaterialiv
);
3151 assert(table
->GetPixelMapfv
);
3152 assert(table
->GetPixelMapuiv
);
3153 assert(table
->GetPixelMapusv
);
3154 assert(table
->GetPolygonStipple
);
3155 assert(table
->GetString
);
3156 assert(table
->GetTexEnvfv
);
3157 assert(table
->GetTexEnviv
);
3158 assert(table
->GetTexGendv
);
3159 assert(table
->GetTexGenfv
);
3160 assert(table
->GetTexGeniv
);
3161 assert(table
->GetTexImage
);
3162 assert(table
->GetTexLevelParameterfv
);
3163 assert(table
->GetTexLevelParameteriv
);
3164 assert(table
->GetTexParameterfv
);
3165 assert(table
->GetTexParameteriv
);
3166 assert(table
->Hint
);
3167 assert(table
->IndexMask
);
3168 assert(table
->Indexd
);
3169 assert(table
->Indexdv
);
3170 assert(table
->Indexf
);
3171 assert(table
->Indexfv
);
3172 assert(table
->Indexi
);
3173 assert(table
->Indexiv
);
3174 assert(table
->Indexs
);
3175 assert(table
->Indexsv
);
3176 assert(table
->InitNames
);
3177 assert(table
->IsEnabled
);
3178 assert(table
->IsList
);
3179 assert(table
->LightModelf
);
3180 assert(table
->LightModelfv
);
3181 assert(table
->LightModeli
);
3182 assert(table
->LightModeliv
);
3183 assert(table
->Lightf
);
3184 assert(table
->Lightfv
);
3185 assert(table
->Lighti
);
3186 assert(table
->Lightiv
);
3187 assert(table
->LineStipple
);
3188 assert(table
->LineWidth
);
3189 assert(table
->ListBase
);
3190 assert(table
->LoadIdentity
);
3191 assert(table
->LoadMatrixd
);
3192 assert(table
->LoadMatrixf
);
3193 assert(table
->LoadName
);
3194 assert(table
->LogicOp
);
3195 assert(table
->Map1d
);
3196 assert(table
->Map1f
);
3197 assert(table
->Map2d
);
3198 assert(table
->Map2f
);
3199 assert(table
->MapGrid1d
);
3200 assert(table
->MapGrid1f
);
3201 assert(table
->MapGrid2d
);
3202 assert(table
->MapGrid2f
);
3203 assert(table
->Materialf
);
3204 assert(table
->Materialfv
);
3205 assert(table
->Materiali
);
3206 assert(table
->Materialiv
);
3207 assert(table
->MatrixMode
);
3208 assert(table
->MultMatrixd
);
3209 assert(table
->MultMatrixf
);
3210 assert(table
->NewList
);
3211 assert(table
->Normal3b
);
3212 assert(table
->Normal3bv
);
3213 assert(table
->Normal3d
);
3214 assert(table
->Normal3dv
);
3215 assert(table
->Normal3f
);
3216 assert(table
->Normal3fv
);
3217 assert(table
->Normal3i
);
3218 assert(table
->Normal3iv
);
3219 assert(table
->Normal3s
);
3220 assert(table
->Normal3sv
);
3221 assert(table
->Ortho
);
3222 assert(table
->PassThrough
);
3223 assert(table
->PixelMapfv
);
3224 assert(table
->PixelMapuiv
);
3225 assert(table
->PixelMapusv
);
3226 assert(table
->PixelStoref
);
3227 assert(table
->PixelStorei
);
3228 assert(table
->PixelTransferf
);
3229 assert(table
->PixelTransferi
);
3230 assert(table
->PixelZoom
);
3231 assert(table
->PointSize
);
3232 assert(table
->PolygonMode
);
3233 assert(table
->PolygonOffset
);
3234 assert(table
->PolygonStipple
);
3235 assert(table
->PopAttrib
);
3236 assert(table
->PopMatrix
);
3237 assert(table
->PopName
);
3238 assert(table
->PushAttrib
);
3239 assert(table
->PushMatrix
);
3240 assert(table
->PushName
);
3241 assert(table
->RasterPos2d
);
3242 assert(table
->RasterPos2dv
);
3243 assert(table
->RasterPos2f
);
3244 assert(table
->RasterPos2fv
);
3245 assert(table
->RasterPos2i
);
3246 assert(table
->RasterPos2iv
);
3247 assert(table
->RasterPos2s
);
3248 assert(table
->RasterPos2sv
);
3249 assert(table
->RasterPos3d
);
3250 assert(table
->RasterPos3dv
);
3251 assert(table
->RasterPos3f
);
3252 assert(table
->RasterPos3fv
);
3253 assert(table
->RasterPos3i
);
3254 assert(table
->RasterPos3iv
);
3255 assert(table
->RasterPos3s
);
3256 assert(table
->RasterPos3sv
);
3257 assert(table
->RasterPos4d
);
3258 assert(table
->RasterPos4dv
);
3259 assert(table
->RasterPos4f
);
3260 assert(table
->RasterPos4fv
);
3261 assert(table
->RasterPos4i
);
3262 assert(table
->RasterPos4iv
);
3263 assert(table
->RasterPos4s
);
3264 assert(table
->RasterPos4sv
);
3265 assert(table
->ReadBuffer
);
3266 assert(table
->ReadPixels
);
3267 assert(table
->Rectd
);
3268 assert(table
->Rectdv
);
3269 assert(table
->Rectf
);
3270 assert(table
->Rectfv
);
3271 assert(table
->Recti
);
3272 assert(table
->Rectiv
);
3273 assert(table
->Rects
);
3274 assert(table
->Rectsv
);
3275 assert(table
->RenderMode
);
3276 assert(table
->Rotated
);
3277 assert(table
->Rotatef
);
3278 assert(table
->Scaled
);
3279 assert(table
->Scalef
);
3280 assert(table
->Scissor
);
3281 assert(table
->SelectBuffer
);
3282 assert(table
->ShadeModel
);
3283 assert(table
->StencilFunc
);
3284 assert(table
->StencilMask
);
3285 assert(table
->StencilOp
);
3286 assert(table
->TexCoord1d
);
3287 assert(table
->TexCoord1dv
);
3288 assert(table
->TexCoord1f
);
3289 assert(table
->TexCoord1fv
);
3290 assert(table
->TexCoord1i
);
3291 assert(table
->TexCoord1iv
);
3292 assert(table
->TexCoord1s
);
3293 assert(table
->TexCoord1sv
);
3294 assert(table
->TexCoord2d
);
3295 assert(table
->TexCoord2dv
);
3296 assert(table
->TexCoord2f
);
3297 assert(table
->TexCoord2fv
);
3298 assert(table
->TexCoord2i
);
3299 assert(table
->TexCoord2iv
);
3300 assert(table
->TexCoord2s
);
3301 assert(table
->TexCoord2sv
);
3302 assert(table
->TexCoord3d
);
3303 assert(table
->TexCoord3dv
);
3304 assert(table
->TexCoord3f
);
3305 assert(table
->TexCoord3fv
);
3306 assert(table
->TexCoord3i
);
3307 assert(table
->TexCoord3iv
);
3308 assert(table
->TexCoord3s
);
3309 assert(table
->TexCoord3sv
);
3310 assert(table
->TexCoord4d
);
3311 assert(table
->TexCoord4dv
);
3312 assert(table
->TexCoord4f
);
3313 assert(table
->TexCoord4fv
);
3314 assert(table
->TexCoord4i
);
3315 assert(table
->TexCoord4iv
);
3316 assert(table
->TexCoord4s
);
3317 assert(table
->TexCoord4sv
);
3318 assert(table
->TexEnvf
);
3319 assert(table
->TexEnvfv
);
3320 assert(table
->TexEnvi
);
3321 assert(table
->TexEnviv
);
3322 assert(table
->TexGend
);
3323 assert(table
->TexGendv
);
3324 assert(table
->TexGenf
);
3325 assert(table
->TexGenfv
);
3326 assert(table
->TexGeni
);
3327 assert(table
->TexGeniv
);
3328 assert(table
->TexImage1D
);
3329 assert(table
->TexImage2D
);
3330 assert(table
->TexParameterf
);
3331 assert(table
->TexParameterfv
);
3332 assert(table
->TexParameteri
);
3333 assert(table
->TexParameteriv
);
3334 assert(table
->Translated
);
3335 assert(table
->Translatef
);
3336 assert(table
->Vertex2d
);
3337 assert(table
->Vertex2dv
);
3338 assert(table
->Vertex2f
);
3339 assert(table
->Vertex2fv
);
3340 assert(table
->Vertex2i
);
3341 assert(table
->Vertex2iv
);
3342 assert(table
->Vertex2s
);
3343 assert(table
->Vertex2sv
);
3344 assert(table
->Vertex3d
);
3345 assert(table
->Vertex3dv
);
3346 assert(table
->Vertex3f
);
3347 assert(table
->Vertex3fv
);
3348 assert(table
->Vertex3i
);
3349 assert(table
->Vertex3iv
);
3350 assert(table
->Vertex3s
);
3351 assert(table
->Vertex3sv
);
3352 assert(table
->Vertex4d
);
3353 assert(table
->Vertex4dv
);
3354 assert(table
->Vertex4f
);
3355 assert(table
->Vertex4fv
);
3356 assert(table
->Vertex4i
);
3357 assert(table
->Vertex4iv
);
3358 assert(table
->Vertex4s
);
3359 assert(table
->Vertex4sv
);
3360 assert(table
->Viewport
);
3362 #ifdef _GLAPI_VERSION_1_1
3363 assert(table
->AreTexturesResident
);
3364 assert(table
->ArrayElement
);
3365 assert(table
->BindTexture
);
3366 assert(table
->ColorPointer
);
3367 assert(table
->CopyTexImage1D
);
3368 assert(table
->CopyTexImage2D
);
3369 assert(table
->CopyTexSubImage1D
);
3370 assert(table
->CopyTexSubImage2D
);
3371 assert(table
->DeleteTextures
);
3372 assert(table
->DisableClientState
);
3373 assert(table
->DrawArrays
);
3374 assert(table
->EdgeFlagPointer
);
3375 assert(table
->EnableClientState
);
3376 assert(table
->GenTextures
);
3377 assert(table
->GetPointerv
);
3378 assert(table
->IndexPointer
);
3379 assert(table
->Indexub
);
3380 assert(table
->Indexubv
);
3381 assert(table
->InterleavedArrays
);
3382 assert(table
->IsTexture
);
3383 assert(table
->NormalPointer
);
3384 assert(table
->PopClientAttrib
);
3385 assert(table
->PrioritizeTextures
);
3386 assert(table
->PushClientAttrib
);
3387 assert(table
->TexCoordPointer
);
3388 assert(table
->TexSubImage1D
);
3389 assert(table
->TexSubImage2D
);
3390 assert(table
->VertexPointer
);
3393 #ifdef _GLAPI_VERSION_1_2
3394 assert(table
->CopyTexSubImage3D
);
3395 assert(table
->DrawRangeElements
);
3396 assert(table
->TexImage3D
);
3397 assert(table
->TexSubImage3D
);
3398 #ifdef _GLAPI_ARB_imaging
3399 assert(table
->BlendColor
);
3400 assert(table
->BlendEquation
);
3401 assert(table
->ColorSubTable
);
3402 assert(table
->ColorTable
);
3403 assert(table
->ColorTableParameterfv
);
3404 assert(table
->ColorTableParameteriv
);
3405 assert(table
->ConvolutionFilter1D
);
3406 assert(table
->ConvolutionFilter2D
);
3407 assert(table
->ConvolutionParameterf
);
3408 assert(table
->ConvolutionParameterfv
);
3409 assert(table
->ConvolutionParameteri
);
3410 assert(table
->ConvolutionParameteriv
);
3411 assert(table
->CopyColorSubTable
);
3412 assert(table
->CopyColorTable
);
3413 assert(table
->CopyConvolutionFilter1D
);
3414 assert(table
->CopyConvolutionFilter2D
);
3415 assert(table
->GetColorTable
);
3416 assert(table
->GetColorTableParameterfv
);
3417 assert(table
->GetColorTableParameteriv
);
3418 assert(table
->GetConvolutionFilter
);
3419 assert(table
->GetConvolutionParameterfv
);
3420 assert(table
->GetConvolutionParameteriv
);
3421 assert(table
->GetHistogram
);
3422 assert(table
->GetHistogramParameterfv
);
3423 assert(table
->GetHistogramParameteriv
);
3424 assert(table
->GetMinmax
);
3425 assert(table
->GetMinmaxParameterfv
);
3426 assert(table
->GetMinmaxParameteriv
);
3427 assert(table
->Histogram
);
3428 assert(table
->Minmax
);
3429 assert(table
->ResetHistogram
);
3430 assert(table
->ResetMinmax
);
3431 assert(table
->SeparableFilter2D
);
3436 #ifdef _GLAPI_EXT_color_table
3437 assert(table
->ColorTableEXT
);
3438 assert(table
->ColorSubTableEXT
);
3439 assert(table
->GetColorTableEXT
);
3440 assert(table
->GetColorTableParameterfvEXT
);
3441 assert(table
->GetColorTableParameterivEXT
);
3444 #ifdef _GLAPI_EXT_compiled_vertex_array
3445 assert(table
->LockArraysEXT
);
3446 assert(table
->UnlockArraysEXT
);
3449 #ifdef _GLAPI_EXT_point_parameter
3450 assert(table
->PointParameterfEXT
);
3451 assert(table
->PointParameterfvEXT
);
3454 #ifdef _GLAPI_EXT_polygon_offset
3455 assert(table
->PolygonOffsetEXT
);
3458 #ifdef _GLAPI_ARB_multitexture
3459 assert(table
->ActiveTextureARB
);
3460 assert(table
->ClientActiveTextureARB
);
3461 assert(table
->MultiTexCoord1dARB
);
3462 assert(table
->MultiTexCoord1dvARB
);
3463 assert(table
->MultiTexCoord1fARB
);
3464 assert(table
->MultiTexCoord1fvARB
);
3465 assert(table
->MultiTexCoord1iARB
);
3466 assert(table
->MultiTexCoord1ivARB
);
3467 assert(table
->MultiTexCoord1sARB
);
3468 assert(table
->MultiTexCoord1svARB
);
3469 assert(table
->MultiTexCoord2dARB
);
3470 assert(table
->MultiTexCoord2dvARB
);
3471 assert(table
->MultiTexCoord2fARB
);
3472 assert(table
->MultiTexCoord2fvARB
);
3473 assert(table
->MultiTexCoord2iARB
);
3474 assert(table
->MultiTexCoord2ivARB
);
3475 assert(table
->MultiTexCoord2sARB
);
3476 assert(table
->MultiTexCoord2svARB
);
3477 assert(table
->MultiTexCoord3dARB
);
3478 assert(table
->MultiTexCoord3dvARB
);
3479 assert(table
->MultiTexCoord3fARB
);
3480 assert(table
->MultiTexCoord3fvARB
);
3481 assert(table
->MultiTexCoord3iARB
);
3482 assert(table
->MultiTexCoord3ivARB
);
3483 assert(table
->MultiTexCoord3sARB
);
3484 assert(table
->MultiTexCoord3svARB
);
3485 assert(table
->MultiTexCoord4dARB
);
3486 assert(table
->MultiTexCoord4dvARB
);
3487 assert(table
->MultiTexCoord4fARB
);
3488 assert(table
->MultiTexCoord4fvARB
);
3489 assert(table
->MultiTexCoord4iARB
);
3490 assert(table
->MultiTexCoord4ivARB
);
3491 assert(table
->MultiTexCoord4sARB
);
3492 assert(table
->MultiTexCoord4svARB
);
3495 #ifdef _GLAPI_INGR_blend_func_separate
3496 assert(table
->BlendFuncSeparateINGR
);
3499 #ifdef _GLAPI_MESA_window_pos
3500 assert(table
->WindowPos4fMESA
);
3503 #ifdef _GLAPI_MESA_resize_buffers
3504 assert(table
->ResizeBuffersMESA
);