1 /* DO NOT EDIT *************************************************
2 * THIS FILE AUTOMATICALLY GENERATED BY THE es_generator.py SCRIPT
3 * API specification file: main/APIspec.xml
4 * GLES version: GLES2.0
5 * date: 2012-07-10 08:30:55
10 #include "GLES2/gl2ext.h"
11 #include "main/mfeatures.h"
12 #include "main/compiler.h"
13 #include "main/api_exec.h"
18 #define GLAPIENTRYP GL_APIENTRYP
22 /* These types are needed for the Mesa veneer, but are not defined in
23 * the standard GLES headers.
25 typedef double GLdouble
;
26 typedef double GLclampd
;
28 /* Mesa error handling requires these */
29 extern void *_mesa_get_current_context(void);
30 extern void _mesa_error(void *ctx
, GLenum error
, const char *fmtString
, ... );
32 /*************************************************************
33 * Generated functions begin here
36 extern void GL_APIENTRY
_mesa_ActiveTextureARB(GLenum texture
);
37 static void GL_APIENTRY
_es_ActiveTexture(GLenum texture
)
74 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glActiveTexture(texture=0x%x)", texture
);
78 _mesa_ActiveTextureARB(texture
);
81 extern void GL_APIENTRY
_mesa_AttachShader(GLuint program
, GLuint shader
);
82 #define _es_AttachShader _mesa_AttachShader
84 extern void GL_APIENTRY
_mesa_BindAttribLocationARB(GLuint program
, GLuint index
, const char * name
);
85 #define _es_BindAttribLocation _mesa_BindAttribLocationARB
87 extern void GL_APIENTRY
_mesa_BindBufferARB(GLenum target
, GLuint buffer
);
88 static void GL_APIENTRY
_es_BindBuffer(GLenum target
, GLuint buffer
)
92 case GL_ELEMENT_ARRAY_BUFFER
:
95 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBindBuffer(target=0x%x)", target
);
99 _mesa_BindBufferARB(target
, buffer
);
102 extern void GL_APIENTRY
_mesa_BindFramebufferEXT(GLenum target
, GLuint framebuffer
);
103 #define _es_BindFramebuffer _mesa_BindFramebufferEXT
105 extern void GL_APIENTRY
_mesa_BindRenderbufferEXT(GLenum target
, GLuint renderbuffer
);
106 #define _es_BindRenderbuffer _mesa_BindRenderbufferEXT
108 extern void GL_APIENTRY
_mesa_BindTexture(GLenum target
, GLuint texture
);
109 static void GL_APIENTRY
_es_BindTexture(GLenum target
, GLuint texture
)
113 case GL_TEXTURE_CUBE_MAP
:
114 case GL_TEXTURE_3D_OES
:
115 case GL_TEXTURE_EXTERNAL_OES
:
118 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBindTexture(target=0x%x)", target
);
122 _mesa_BindTexture(target
, texture
);
125 extern void GL_APIENTRY
_mesa_BlendColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
);
126 #define _es_BlendColor _mesa_BlendColor
128 extern void GL_APIENTRY
_mesa_BlendEquation(GLenum mode
);
129 static void GL_APIENTRY
_es_BlendEquation(GLenum mode
)
133 case GL_FUNC_SUBTRACT
:
134 case GL_FUNC_REVERSE_SUBTRACT
:
139 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendEquation(mode=0x%x)", mode
);
143 _mesa_BlendEquation(mode
);
146 extern void GL_APIENTRY
_mesa_BlendEquationSeparateEXT(GLenum modeRGB
, GLenum modeAlpha
);
147 static void GL_APIENTRY
_es_BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
)
151 case GL_FUNC_SUBTRACT
:
152 case GL_FUNC_REVERSE_SUBTRACT
:
157 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendEquationSeparate(modeRGB=0x%x)", modeRGB
);
162 case GL_FUNC_SUBTRACT
:
163 case GL_FUNC_REVERSE_SUBTRACT
:
168 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendEquationSeparate(modeAlpha=0x%x)", modeAlpha
);
172 _mesa_BlendEquationSeparateEXT(modeRGB
, modeAlpha
);
175 extern void GL_APIENTRY
_mesa_BlendFunc(GLenum sfactor
, GLenum dfactor
);
176 static void GL_APIENTRY
_es_BlendFunc(GLenum sfactor
, GLenum dfactor
)
182 case GL_ONE_MINUS_SRC_COLOR
:
184 case GL_ONE_MINUS_SRC_ALPHA
:
186 case GL_ONE_MINUS_DST_ALPHA
:
188 case GL_ONE_MINUS_DST_COLOR
:
189 case GL_SRC_ALPHA_SATURATE
:
190 case GL_CONSTANT_COLOR
:
191 case GL_CONSTANT_ALPHA
:
192 case GL_ONE_MINUS_CONSTANT_COLOR
:
193 case GL_ONE_MINUS_CONSTANT_ALPHA
:
196 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendFunc(sfactor=0x%x)", sfactor
);
203 case GL_ONE_MINUS_SRC_COLOR
:
205 case GL_ONE_MINUS_SRC_ALPHA
:
207 case GL_ONE_MINUS_DST_ALPHA
:
209 case GL_ONE_MINUS_DST_COLOR
:
210 case GL_CONSTANT_COLOR
:
211 case GL_CONSTANT_ALPHA
:
212 case GL_ONE_MINUS_CONSTANT_COLOR
:
213 case GL_ONE_MINUS_CONSTANT_ALPHA
:
216 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendFunc(dfactor=0x%x)", dfactor
);
220 _mesa_BlendFunc(sfactor
, dfactor
);
223 extern void GL_APIENTRY
_mesa_BlendFuncSeparateEXT(GLenum srcRGB
, GLenum dstRGB
, GLenum srcAlpha
, GLenum dstAlpha
);
224 static void GL_APIENTRY
_es_BlendFuncSeparate(GLenum srcRGB
, GLenum dstRGB
, GLenum srcAlpha
, GLenum dstAlpha
)
230 case GL_ONE_MINUS_SRC_COLOR
:
232 case GL_ONE_MINUS_SRC_ALPHA
:
234 case GL_ONE_MINUS_DST_ALPHA
:
236 case GL_ONE_MINUS_DST_COLOR
:
237 case GL_SRC_ALPHA_SATURATE
:
238 case GL_CONSTANT_COLOR
:
239 case GL_ONE_MINUS_CONSTANT_COLOR
:
240 case GL_CONSTANT_ALPHA
:
241 case GL_ONE_MINUS_CONSTANT_ALPHA
:
244 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendFuncSeparate(srcRGB=0x%x)", srcRGB
);
251 case GL_ONE_MINUS_SRC_COLOR
:
253 case GL_ONE_MINUS_SRC_ALPHA
:
255 case GL_ONE_MINUS_DST_ALPHA
:
257 case GL_ONE_MINUS_DST_COLOR
:
258 case GL_CONSTANT_COLOR
:
259 case GL_ONE_MINUS_CONSTANT_COLOR
:
260 case GL_CONSTANT_ALPHA
:
261 case GL_ONE_MINUS_CONSTANT_ALPHA
:
264 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendFuncSeparate(dstRGB=0x%x)", dstRGB
);
271 case GL_ONE_MINUS_SRC_COLOR
:
273 case GL_ONE_MINUS_SRC_ALPHA
:
275 case GL_ONE_MINUS_DST_ALPHA
:
277 case GL_ONE_MINUS_DST_COLOR
:
278 case GL_SRC_ALPHA_SATURATE
:
279 case GL_CONSTANT_COLOR
:
280 case GL_ONE_MINUS_CONSTANT_COLOR
:
281 case GL_CONSTANT_ALPHA
:
282 case GL_ONE_MINUS_CONSTANT_ALPHA
:
285 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendFuncSeparate(srcAlpha=0x%x)", srcAlpha
);
292 case GL_ONE_MINUS_SRC_COLOR
:
294 case GL_ONE_MINUS_SRC_ALPHA
:
296 case GL_ONE_MINUS_DST_ALPHA
:
298 case GL_ONE_MINUS_DST_COLOR
:
299 case GL_CONSTANT_COLOR
:
300 case GL_ONE_MINUS_CONSTANT_COLOR
:
301 case GL_CONSTANT_ALPHA
:
302 case GL_ONE_MINUS_CONSTANT_ALPHA
:
305 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBlendFuncSeparate(dstAlpha=0x%x)", dstAlpha
);
309 _mesa_BlendFuncSeparateEXT(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
312 extern void GL_APIENTRY
_mesa_BufferDataARB(GLenum target
, GLsizeiptr size
, const GLvoid
* data
, GLenum usage
);
313 static void GL_APIENTRY
_es_BufferData(GLenum target
, GLsizeiptr size
, const GLvoid
*data
, GLenum usage
)
316 case GL_ARRAY_BUFFER
:
317 case GL_ELEMENT_ARRAY_BUFFER
:
320 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBufferData(target=0x%x)", target
);
325 case GL_DYNAMIC_DRAW
:
329 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBufferData(usage=0x%x)", usage
);
333 _mesa_BufferDataARB(target
, size
, data
, usage
);
336 extern void GL_APIENTRY
_mesa_BufferSubDataARB(GLenum target
, GLintptr offset
, GLsizeiptr size
, const GLvoid
* data
);
337 static void GL_APIENTRY
_es_BufferSubData(GLenum target
, GLintptr offset
, GLsizeiptr size
, const GLvoid
*data
)
340 case GL_ARRAY_BUFFER
:
341 case GL_ELEMENT_ARRAY_BUFFER
:
344 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glBufferSubData(target=0x%x)", target
);
348 _mesa_BufferSubDataARB(target
, offset
, size
, data
);
351 extern GLenum GL_APIENTRY
_mesa_CheckFramebufferStatusEXT(GLenum target
);
352 #define _es_CheckFramebufferStatus _mesa_CheckFramebufferStatusEXT
354 extern void GL_APIENTRY
_mesa_Clear(GLbitfield mask
);
355 static void GL_APIENTRY
_es_Clear(GLbitfield mask
)
359 case (GL_COLOR_BUFFER_BIT
):
360 case (GL_DEPTH_BUFFER_BIT
):
361 case (GL_STENCIL_BUFFER_BIT
):
362 case (GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
):
363 case (GL_COLOR_BUFFER_BIT
|GL_STENCIL_BUFFER_BIT
):
364 case (GL_DEPTH_BUFFER_BIT
|GL_STENCIL_BUFFER_BIT
):
365 case (GL_COLOR_BUFFER_BIT
|GL_DEPTH_BUFFER_BIT
|GL_STENCIL_BUFFER_BIT
):
368 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glClear(mask=0x%x)", mask
);
375 extern void GL_APIENTRY
_mesa_ClearColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
);
376 #define _es_ClearColor _mesa_ClearColor
378 extern void GL_APIENTRY
_mesa_ClearDepthf(GLclampf depth
);
379 #define _es_ClearDepthf _mesa_ClearDepthf
381 extern void GL_APIENTRY
_mesa_ClearStencil(GLint s
);
382 #define _es_ClearStencil _mesa_ClearStencil
384 extern void GL_APIENTRY
_mesa_ColorMask(GLboolean red
, GLboolean green
, GLboolean blue
, GLboolean alpha
);
385 #define _es_ColorMask _mesa_ColorMask
387 extern void GL_APIENTRY
_mesa_CompileShaderARB(GLuint shader
);
388 #define _es_CompileShader _mesa_CompileShaderARB
390 extern void GL_APIENTRY
_mesa_CompressedTexImage2DARB(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLint border
, GLsizei imageSize
, const GLvoid
* data
);
391 static void GL_APIENTRY
_es_CompressedTexImage2D(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLint border
, GLsizei imageSize
, const GLvoid
*data
)
395 case GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
396 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
397 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
398 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
399 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
400 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
403 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCompressedTexImage2D(target=0x%x)", target
);
406 switch(internalFormat
) {
407 case GL_ETC1_RGB8_OES
:
408 case GL_PALETTE4_RGB8_OES
:
409 case GL_PALETTE4_RGBA8_OES
:
410 case GL_PALETTE4_R5_G6_B5_OES
:
411 case GL_PALETTE4_RGBA4_OES
:
412 case GL_PALETTE4_RGB5_A1_OES
:
413 case GL_PALETTE8_RGB8_OES
:
414 case GL_PALETTE8_RGBA8_OES
:
415 case GL_PALETTE8_R5_G6_B5_OES
:
416 case GL_PALETTE8_RGBA4_OES
:
417 case GL_PALETTE8_RGB5_A1_OES
:
418 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT
:
419 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
:
422 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCompressedTexImage2D(internalFormat=0x%x)", internalFormat
);
429 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glCompressedTexImage2D(border=%d)", border
);
433 _mesa_CompressedTexImage2DARB(target
, level
, internalFormat
, width
, height
, border
, imageSize
, data
);
436 extern void GL_APIENTRY
_mesa_CompressedTexImage3DARB(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLsizei imagesize
, const GLvoid
* data
);
437 static void GL_APIENTRY
_es_CompressedTexImage3DOES(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLsizei imagesize
, const GLvoid
*data
)
440 case GL_TEXTURE_3D_OES
:
443 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCompressedTexImage3DOES(target=0x%x)", target
);
447 _mesa_CompressedTexImage3DARB(target
, level
, internalFormat
, width
, height
, depth
, border
, imagesize
, data
);
450 extern void GL_APIENTRY
_mesa_CompressedTexSubImage2DARB(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
, GLsizei height
, GLenum format
, GLsizei imageSize
, const GLvoid
* data
);
451 static void GL_APIENTRY
_es_CompressedTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
, GLsizei height
, GLenum format
, GLsizei imageSize
, const GLvoid
*data
)
455 case GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
456 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
457 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
458 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
459 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
460 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
463 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCompressedTexSubImage2D(target=0x%x)", target
);
467 case GL_COMPRESSED_RGB_S3TC_DXT1_EXT
:
468 case GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
:
471 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCompressedTexSubImage2D(format=0x%x)", format
);
475 _mesa_CompressedTexSubImage2DARB(target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
478 extern void GL_APIENTRY
_mesa_CompressedTexSubImage3DARB(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLsizei imagesize
, const GLvoid
* data
);
479 static void GL_APIENTRY
_es_CompressedTexSubImage3DOES(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLsizei imagesize
, const GLvoid
*data
)
482 case GL_TEXTURE_3D_OES
:
485 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCompressedTexSubImage3DOES(target=0x%x)", target
);
489 _mesa_CompressedTexSubImage3DARB(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
, imagesize
, data
);
492 extern void GL_APIENTRY
_mesa_CopyTexImage2D(GLenum target
, GLint level
, GLenum internalFormat
, GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLint border
);
493 static void GL_APIENTRY
_es_CopyTexImage2D(GLenum target
, GLint level
, GLenum internalFormat
, GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLint border
)
497 case GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
498 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
499 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
500 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
501 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
502 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
505 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCopyTexImage2D(target=0x%x)", target
);
508 switch(internalFormat
) {
513 case GL_LUMINANCE_ALPHA
:
516 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glCopyTexImage2D(internalFormat=0x%x)", internalFormat
);
523 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glCopyTexImage2D(border=%d)", border
);
527 _mesa_CopyTexImage2D(target
, level
, internalFormat
, x
, y
, width
, height
, border
);
530 extern void GL_APIENTRY
_mesa_CopyTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
);
531 static void GL_APIENTRY
_es_CopyTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
535 case GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
536 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
537 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
538 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
539 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
540 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
543 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCopyTexSubImage2D(target=0x%x)", target
);
547 _mesa_CopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
550 extern void GL_APIENTRY
_mesa_CopyTexSubImage3D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
);
551 static void GL_APIENTRY
_es_CopyTexSubImage3DOES(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLint x
, GLint y
, GLsizei width
, GLsizei height
)
554 case GL_TEXTURE_3D_OES
:
557 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCopyTexSubImage3DOES(target=0x%x)", target
);
561 _mesa_CopyTexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, x
, y
, width
, height
);
564 extern GLuint GL_APIENTRY
_mesa_CreateProgram(void);
565 #define _es_CreateProgram _mesa_CreateProgram
567 extern GLuint GL_APIENTRY
_mesa_CreateShader(GLenum type
);
568 static GLuint GL_APIENTRY
_es_CreateShader(GLenum type
)
571 case GL_VERTEX_SHADER
:
572 case GL_FRAGMENT_SHADER
:
575 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCreateShader(type=0x%x)", type
);
579 return _mesa_CreateShader(type
);
582 extern void GL_APIENTRY
_mesa_CullFace(GLenum mode
);
583 static void GL_APIENTRY
_es_CullFace(GLenum mode
)
588 case GL_FRONT_AND_BACK
:
591 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glCullFace(mode=0x%x)", mode
);
595 _mesa_CullFace(mode
);
598 extern void GL_APIENTRY
_mesa_DeleteBuffersARB(GLsizei n
, const GLuint
* buffer
);
599 #define _es_DeleteBuffers _mesa_DeleteBuffersARB
601 extern void GL_APIENTRY
_mesa_DeleteFramebuffersEXT(GLsizei n
, const GLuint
* framebuffers
);
602 #define _es_DeleteFramebuffers _mesa_DeleteFramebuffersEXT
604 extern void GL_APIENTRY
_mesa_DeleteProgram(GLuint program
);
605 #define _es_DeleteProgram _mesa_DeleteProgram
607 extern void GL_APIENTRY
_mesa_DeleteRenderbuffersEXT(GLsizei n
, const GLuint
* renderbuffers
);
608 #define _es_DeleteRenderbuffers _mesa_DeleteRenderbuffersEXT
610 extern void GL_APIENTRY
_mesa_DeleteShader(GLuint shader
);
611 #define _es_DeleteShader _mesa_DeleteShader
613 extern void GL_APIENTRY
_mesa_DeleteTextures(GLsizei n
, const GLuint
* textures
);
614 #define _es_DeleteTextures _mesa_DeleteTextures
616 extern void GL_APIENTRY
_mesa_DepthFunc(GLenum func
);
617 static void GL_APIENTRY
_es_DepthFunc(GLenum func
)
630 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glDepthFunc(func=0x%x)", func
);
634 _mesa_DepthFunc(func
);
637 extern void GL_APIENTRY
_mesa_DepthMask(GLboolean flag
);
638 #define _es_DepthMask _mesa_DepthMask
640 extern void GL_APIENTRY
_mesa_DepthRangef(GLclampf zNear
, GLclampf zFar
);
641 #define _es_DepthRangef _mesa_DepthRangef
643 extern void GL_APIENTRY
_mesa_DetachShader(GLuint program
, GLuint shader
);
644 #define _es_DetachShader _mesa_DetachShader
646 extern void GL_APIENTRY
_mesa_Disable(GLenum cap
);
647 static void GL_APIENTRY
_es_Disable(GLenum cap
)
651 case GL_SCISSOR_TEST
:
652 case GL_POLYGON_OFFSET_FILL
:
653 case GL_SAMPLE_ALPHA_TO_COVERAGE
:
654 case GL_SAMPLE_COVERAGE
:
655 case GL_STENCIL_TEST
:
661 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glDisable(cap=0x%x)", cap
);
668 extern void GL_APIENTRY
_mesa_DisableVertexAttribArrayARB(GLuint index
);
669 #define _es_DisableVertexAttribArray _mesa_DisableVertexAttribArrayARB
671 extern void GL_APIENTRY
_mesa_DrawArrays(GLenum mode
, GLint first
, GLsizei count
);
672 static void GL_APIENTRY
_es_DrawArrays(GLenum mode
, GLint first
, GLsizei count
)
680 case GL_TRIANGLE_STRIP
:
681 case GL_TRIANGLE_FAN
:
684 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glDrawArrays(mode=0x%x)", mode
);
688 _mesa_DrawArrays(mode
, first
, count
);
691 extern void GL_APIENTRY
_mesa_DrawBuffersARB(GLsizei n
, const GLenum
* bufs
);
692 #define _es_DrawBuffersNV _mesa_DrawBuffersARB
694 extern void GL_APIENTRY
_mesa_DrawElements(GLenum mode
, GLsizei count
, GLenum type
, const GLvoid
* indices
);
695 static void GL_APIENTRY
_es_DrawElements(GLenum mode
, GLsizei count
, GLenum type
, const GLvoid
*indices
)
703 case GL_TRIANGLE_STRIP
:
704 case GL_TRIANGLE_FAN
:
707 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glDrawElements(mode=0x%x)", mode
);
711 case GL_UNSIGNED_BYTE
:
712 case GL_UNSIGNED_SHORT
:
713 case GL_UNSIGNED_INT
:
716 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glDrawElements(type=0x%x)", type
);
720 _mesa_DrawElements(mode
, count
, type
, indices
);
723 extern void GL_APIENTRY
_mesa_EGLImageTargetRenderbufferStorageOES(GLenum target
, GLeglImageOES image
);
724 #define _es_EGLImageTargetRenderbufferStorageOES _mesa_EGLImageTargetRenderbufferStorageOES
726 extern void GL_APIENTRY
_mesa_EGLImageTargetTexture2DOES(GLenum target
, GLeglImageOES image
);
727 static void GL_APIENTRY
_es_EGLImageTargetTexture2DOES(GLenum target
, GLeglImageOES image
)
731 case GL_TEXTURE_EXTERNAL_OES
:
734 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glEGLImageTargetTexture2DOES(target=0x%x)", target
);
738 _mesa_EGLImageTargetTexture2DOES(target
, image
);
741 extern void GL_APIENTRY
_mesa_Enable(GLenum cap
);
742 static void GL_APIENTRY
_es_Enable(GLenum cap
)
746 case GL_SCISSOR_TEST
:
747 case GL_POLYGON_OFFSET_FILL
:
748 case GL_SAMPLE_ALPHA_TO_COVERAGE
:
749 case GL_SAMPLE_COVERAGE
:
750 case GL_STENCIL_TEST
:
756 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glEnable(cap=0x%x)", cap
);
763 extern void GL_APIENTRY
_mesa_EnableVertexAttribArrayARB(GLuint index
);
764 #define _es_EnableVertexAttribArray _mesa_EnableVertexAttribArrayARB
766 extern void GL_APIENTRY
_mesa_Finish(void);
767 #define _es_Finish _mesa_Finish
769 extern void GL_APIENTRY
_mesa_Flush(void);
770 #define _es_Flush _mesa_Flush
772 extern void GL_APIENTRY
_mesa_FramebufferRenderbufferEXT(GLenum target
, GLenum attachment
, GLenum renderbuffertarget
, GLuint renderbuffer
);
773 #define _es_FramebufferRenderbuffer _mesa_FramebufferRenderbufferEXT
775 extern void GL_APIENTRY
_mesa_FramebufferTexture2DEXT(GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
, GLint level
);
776 static void GL_APIENTRY
_es_FramebufferTexture2D(GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
, GLint level
)
780 case GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
781 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
782 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
783 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
784 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
785 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
788 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glFramebufferTexture2D(textarget=0x%x)", textarget
);
792 _mesa_FramebufferTexture2DEXT(target
, attachment
, textarget
, texture
, level
);
795 extern void GL_APIENTRY
_mesa_FramebufferTexture3DEXT(GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
, GLint level
, GLint zoffset
);
796 static void GL_APIENTRY
_es_FramebufferTexture3DOES(GLenum target
, GLenum attachment
, GLenum textarget
, GLuint texture
, GLint level
, GLint zoffset
)
799 case GL_TEXTURE_3D_OES
:
802 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glFramebufferTexture3DOES(textarget=0x%x)", textarget
);
806 _mesa_FramebufferTexture3DEXT(target
, attachment
, textarget
, texture
, level
, zoffset
);
809 extern void GL_APIENTRY
_mesa_FrontFace(GLenum mode
);
810 static void GL_APIENTRY
_es_FrontFace(GLenum mode
)
817 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glFrontFace(mode=0x%x)", mode
);
821 _mesa_FrontFace(mode
);
824 extern void GL_APIENTRY
_mesa_GenBuffersARB(GLsizei n
, GLuint
* buffer
);
825 #define _es_GenBuffers _mesa_GenBuffersARB
827 extern void GL_APIENTRY
_mesa_GenFramebuffersEXT(GLsizei n
, GLuint
* ids
);
828 #define _es_GenFramebuffers _mesa_GenFramebuffersEXT
830 extern void GL_APIENTRY
_mesa_GenRenderbuffersEXT(GLsizei n
, GLuint
* renderbuffers
);
831 #define _es_GenRenderbuffers _mesa_GenRenderbuffersEXT
833 extern void GL_APIENTRY
_mesa_GenTextures(GLsizei n
, GLuint
* textures
);
834 #define _es_GenTextures _mesa_GenTextures
836 extern void GL_APIENTRY
_mesa_GenerateMipmapEXT(GLenum target
);
837 static void GL_APIENTRY
_es_GenerateMipmap(GLenum target
)
841 case GL_TEXTURE_CUBE_MAP
:
842 case GL_TEXTURE_3D_OES
:
845 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGenerateMipmap(target=0x%x)", target
);
849 _mesa_GenerateMipmapEXT(target
);
852 extern void GL_APIENTRY
_mesa_GetActiveAttribARB(GLuint program
, GLuint index
, GLsizei bufSize
, GLsizei
* length
, GLint
* size
, GLenum
* type
, GLchar
* name
);
853 #define _es_GetActiveAttrib _mesa_GetActiveAttribARB
855 extern void GL_APIENTRY
_mesa_GetActiveUniformARB(GLuint program
, GLuint index
, GLsizei bufSize
, GLsizei
* length
, GLint
* size
, GLenum
* type
, GLchar
* name
);
856 #define _es_GetActiveUniform _mesa_GetActiveUniformARB
858 extern void GL_APIENTRY
_mesa_GetAttachedShaders(GLuint program
, GLsizei maxCount
, GLsizei
* count
, GLuint
* shaders
);
859 #define _es_GetAttachedShaders _mesa_GetAttachedShaders
861 extern GLint GL_APIENTRY
_mesa_GetAttribLocationARB(GLuint program
, const char * name
);
862 #define _es_GetAttribLocation _mesa_GetAttribLocationARB
864 extern void GL_APIENTRY
_mesa_GetBooleanv(GLenum pname
, GLboolean
* params
);
865 #define _es_GetBooleanv _mesa_GetBooleanv
867 extern void GL_APIENTRY
_mesa_GetBufferParameterivARB(GLenum target
, GLenum pname
, GLint
* params
);
868 static void GL_APIENTRY
_es_GetBufferParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
871 case GL_ARRAY_BUFFER
:
872 case GL_ELEMENT_ARRAY_BUFFER
:
875 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetBufferParameteriv(target=0x%x)", target
);
880 case GL_BUFFER_USAGE
:
881 case GL_BUFFER_ACCESS_OES
:
882 case GL_BUFFER_MAPPED_OES
:
885 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetBufferParameteriv(pname=0x%x)", pname
);
889 _mesa_GetBufferParameterivARB(target
, pname
, params
);
892 extern void GL_APIENTRY
_mesa_GetBufferPointervARB(GLenum target
, GLenum pname
, GLvoid
** params
);
893 static void GL_APIENTRY
_es_GetBufferPointervOES(GLenum target
, GLenum pname
, GLvoid
**params
)
896 case GL_ARRAY_BUFFER
:
897 case GL_ELEMENT_ARRAY_BUFFER
:
900 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetBufferPointervOES(target=0x%x)", target
);
904 case GL_BUFFER_MAP_POINTER_OES
:
907 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetBufferPointervOES(pname=0x%x)", pname
);
911 _mesa_GetBufferPointervARB(target
, pname
, params
);
914 extern GLenum GL_APIENTRY
_mesa_GetError(void);
915 #define _es_GetError _mesa_GetError
917 extern void GL_APIENTRY
_mesa_GetFloatv(GLenum pname
, GLfloat
* params
);
918 #define _es_GetFloatv _mesa_GetFloatv
920 extern void GL_APIENTRY
_mesa_GetFramebufferAttachmentParameterivEXT(GLenum target
, GLenum attachment
, GLenum pname
, GLint
* params
);
921 static void GL_APIENTRY
_es_GetFramebufferAttachmentParameteriv(GLenum target
, GLenum attachment
, GLenum pname
, GLint
*params
)
924 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
: /* size 1 */
925 case GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
: /* size 1 */
926 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
: /* size 1 */
927 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
: /* size 1 */
928 case GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES
: /* size 1 */
931 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetFramebufferAttachmentParameteriv(pname=0x%x)", pname
);
935 _mesa_GetFramebufferAttachmentParameterivEXT(target
, attachment
, pname
, params
);
938 extern void GL_APIENTRY
_mesa_GetIntegerv(GLenum pname
, GLint
* params
);
939 #define _es_GetIntegerv _mesa_GetIntegerv
941 extern void GL_APIENTRY
_mesa_GetProgramInfoLog(GLuint program
, GLsizei bufSize
, GLsizei
* length
, GLchar
* infoLog
);
942 #define _es_GetProgramInfoLog _mesa_GetProgramInfoLog
944 extern void GL_APIENTRY
_mesa_GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
);
945 static void GL_APIENTRY
_es_GetProgramiv(GLuint program
, GLenum pname
, GLint
*params
)
948 case GL_DELETE_STATUS
:
950 case GL_VALIDATE_STATUS
:
951 case GL_INFO_LOG_LENGTH
:
952 case GL_ATTACHED_SHADERS
:
953 case GL_ACTIVE_ATTRIBUTES
:
954 case GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
:
955 case GL_ACTIVE_UNIFORMS
:
956 case GL_ACTIVE_UNIFORM_MAX_LENGTH
:
959 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetProgramiv(pname=0x%x)", pname
);
963 _mesa_GetProgramiv(program
, pname
, params
);
966 extern void GL_APIENTRY
_mesa_GetRenderbufferParameterivEXT(GLenum target
, GLenum pname
, GLint
* params
);
967 static void GL_APIENTRY
_es_GetRenderbufferParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
970 case GL_RENDERBUFFER_WIDTH
: /* size 1 */
971 case GL_RENDERBUFFER_HEIGHT
: /* size 1 */
972 case GL_RENDERBUFFER_INTERNAL_FORMAT
: /* size 1 */
973 case GL_RENDERBUFFER_RED_SIZE
: /* size 1 */
974 case GL_RENDERBUFFER_GREEN_SIZE
: /* size 1 */
975 case GL_RENDERBUFFER_BLUE_SIZE
: /* size 1 */
976 case GL_RENDERBUFFER_ALPHA_SIZE
: /* size 1 */
977 case GL_RENDERBUFFER_DEPTH_SIZE
: /* size 1 */
978 case GL_RENDERBUFFER_STENCIL_SIZE
: /* size 1 */
981 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetRenderbufferParameteriv(pname=0x%x)", pname
);
985 _mesa_GetRenderbufferParameterivEXT(target
, pname
, params
);
988 extern void GL_APIENTRY
_mesa_GetShaderInfoLog(GLuint shader
, GLsizei bufSize
, GLsizei
* length
, GLchar
* infoLog
);
989 #define _es_GetShaderInfoLog _mesa_GetShaderInfoLog
991 extern void GL_APIENTRY
_mesa_GetShaderPrecisionFormat(GLenum shadertype
, GLenum precisiontype
, GLint
* range
, GLint
* precision
);
992 static void GL_APIENTRY
_es_GetShaderPrecisionFormat(GLenum shadertype
, GLenum precisiontype
, GLint
*range
, GLint
*precision
)
995 case GL_VERTEX_SHADER
:
996 case GL_FRAGMENT_SHADER
:
999 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetShaderPrecisionFormat(shadertype=0x%x)", shadertype
);
1002 switch(precisiontype
) {
1004 case GL_MEDIUM_FLOAT
:
1011 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetShaderPrecisionFormat(precisiontype=0x%x)", precisiontype
);
1015 _mesa_GetShaderPrecisionFormat(shadertype
, precisiontype
, range
, precision
);
1018 extern void GL_APIENTRY
_mesa_GetShaderSourceARB(GLuint shader
, GLsizei bufSize
, GLsizei
* length
, GLchar
* source
);
1019 #define _es_GetShaderSource _mesa_GetShaderSourceARB
1021 extern void GL_APIENTRY
_mesa_GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
);
1022 static void GL_APIENTRY
_es_GetShaderiv(GLuint shader
, GLenum pname
, GLint
*params
)
1025 case GL_SHADER_TYPE
:
1026 case GL_COMPILE_STATUS
:
1027 case GL_DELETE_STATUS
:
1028 case GL_INFO_LOG_LENGTH
:
1029 case GL_SHADER_SOURCE_LENGTH
:
1032 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetShaderiv(pname=0x%x)", pname
);
1036 _mesa_GetShaderiv(shader
, pname
, params
);
1039 extern const GLubyte
* GL_APIENTRY
_mesa_GetString(GLenum name
);
1040 static const GLubyte
* GL_APIENTRY
_es_GetString(GLenum name
)
1047 case GL_SHADING_LANGUAGE_VERSION
:
1050 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetString(name=0x%x)", name
);
1051 return (const GLubyte
*) 0;
1054 return _mesa_GetString(name
);
1057 extern void GL_APIENTRY
_mesa_GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
);
1058 static void GL_APIENTRY
_es_GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
*params
)
1062 case GL_TEXTURE_CUBE_MAP
:
1063 case GL_TEXTURE_3D_OES
:
1064 case GL_TEXTURE_EXTERNAL_OES
:
1067 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetTexParameterfv(target=0x%x)", target
);
1071 case GL_TEXTURE_WRAP_S
: /* size 1 */
1072 case GL_TEXTURE_WRAP_T
: /* size 1 */
1073 case GL_TEXTURE_WRAP_R_OES
: /* size 1 */
1074 case GL_TEXTURE_MIN_FILTER
: /* size 1 */
1075 case GL_TEXTURE_MAG_FILTER
: /* size 1 */
1078 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetTexParameterfv(pname=0x%x)", pname
);
1082 _mesa_GetTexParameterfv(target
, pname
, params
);
1085 extern void GL_APIENTRY
_mesa_GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
);
1086 static void GL_APIENTRY
_es_GetTexParameteriv(GLenum target
, GLenum pname
, GLint
*params
)
1090 case GL_TEXTURE_CUBE_MAP
:
1091 case GL_TEXTURE_3D_OES
:
1092 case GL_TEXTURE_EXTERNAL_OES
:
1095 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetTexParameteriv(target=0x%x)", target
);
1099 case GL_TEXTURE_WRAP_S
: /* size 1 */
1100 case GL_TEXTURE_WRAP_T
: /* size 1 */
1101 case GL_TEXTURE_WRAP_R_OES
: /* size 1 */
1102 case GL_TEXTURE_MIN_FILTER
: /* size 1 */
1103 case GL_TEXTURE_MAG_FILTER
: /* size 1 */
1106 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetTexParameteriv(pname=0x%x)", pname
);
1110 _mesa_GetTexParameteriv(target
, pname
, params
);
1113 extern GLint GL_APIENTRY
_mesa_GetUniformLocationARB(GLuint program
, const char * name
);
1114 #define _es_GetUniformLocation _mesa_GetUniformLocationARB
1116 extern void GL_APIENTRY
_mesa_GetUniformfvARB(GLuint program
, GLint location
, GLfloat
* params
);
1117 #define _es_GetUniformfv _mesa_GetUniformfvARB
1119 extern void GL_APIENTRY
_mesa_GetUniformivARB(GLuint program
, GLint location
, GLint
* params
);
1120 #define _es_GetUniformiv _mesa_GetUniformivARB
1122 extern void GL_APIENTRY
_mesa_GetVertexAttribPointervARB(GLuint index
, GLenum pname
, GLvoid
** pointer
);
1123 static void GL_APIENTRY
_es_GetVertexAttribPointerv(GLuint index
, GLenum pname
, GLvoid
**pointer
)
1126 case GL_VERTEX_ATTRIB_ARRAY_POINTER
:
1129 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetVertexAttribPointerv(pname=0x%x)", pname
);
1133 _mesa_GetVertexAttribPointervARB(index
, pname
, pointer
);
1136 extern void GL_APIENTRY
_mesa_GetVertexAttribfvARB(GLuint index
, GLenum pname
, GLfloat
* params
);
1137 static void GL_APIENTRY
_es_GetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
*params
)
1140 case GL_VERTEX_ATTRIB_ARRAY_ENABLED
: /* size 1 */
1141 case GL_VERTEX_ATTRIB_ARRAY_SIZE
: /* size 1 */
1142 case GL_VERTEX_ATTRIB_ARRAY_STRIDE
: /* size 1 */
1143 case GL_VERTEX_ATTRIB_ARRAY_TYPE
: /* size 1 */
1144 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
: /* size 1 */
1145 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
: /* size 1 */
1146 case GL_CURRENT_VERTEX_ATTRIB
: /* size 16? */
1149 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetVertexAttribfv(pname=0x%x)", pname
);
1153 _mesa_GetVertexAttribfvARB(index
, pname
, params
);
1156 extern void GL_APIENTRY
_mesa_GetVertexAttribivARB(GLuint index
, GLenum pname
, GLint
* params
);
1157 static void GL_APIENTRY
_es_GetVertexAttribiv(GLuint index
, GLenum pname
, GLint
*params
)
1160 case GL_VERTEX_ATTRIB_ARRAY_ENABLED
: /* size 1 */
1161 case GL_VERTEX_ATTRIB_ARRAY_SIZE
: /* size 1 */
1162 case GL_VERTEX_ATTRIB_ARRAY_STRIDE
: /* size 1 */
1163 case GL_VERTEX_ATTRIB_ARRAY_TYPE
: /* size 1 */
1164 case GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
: /* size 1 */
1165 case GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
: /* size 1 */
1166 case GL_CURRENT_VERTEX_ATTRIB
: /* size 16? */
1169 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glGetVertexAttribiv(pname=0x%x)", pname
);
1173 _mesa_GetVertexAttribivARB(index
, pname
, params
);
1176 extern void GL_APIENTRY
_mesa_Hint(GLenum target
, GLenum mode
);
1177 static void GL_APIENTRY
_es_Hint(GLenum target
, GLenum mode
)
1180 case GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES
:
1181 case GL_GENERATE_MIPMAP_HINT
:
1184 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glHint(target=0x%x)", target
);
1193 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glHint(mode=0x%x)", mode
);
1197 _mesa_Hint(target
, mode
);
1200 extern GLboolean GL_APIENTRY
_mesa_IsBufferARB(GLuint buffer
);
1201 #define _es_IsBuffer _mesa_IsBufferARB
1203 extern GLboolean GL_APIENTRY
_mesa_IsEnabled(GLenum cap
);
1204 static GLboolean GL_APIENTRY
_es_IsEnabled(GLenum cap
)
1208 case GL_SCISSOR_TEST
:
1209 case GL_POLYGON_OFFSET_FILL
:
1210 case GL_SAMPLE_ALPHA_TO_COVERAGE
:
1211 case GL_SAMPLE_COVERAGE
:
1212 case GL_STENCIL_TEST
:
1218 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glIsEnabled(cap=0x%x)", cap
);
1222 return _mesa_IsEnabled(cap
);
1225 extern GLboolean GL_APIENTRY
_mesa_IsFramebufferEXT(GLuint framebuffer
);
1226 #define _es_IsFramebuffer _mesa_IsFramebufferEXT
1228 extern GLboolean GL_APIENTRY
_mesa_IsProgram(GLuint program
);
1229 #define _es_IsProgram _mesa_IsProgram
1231 extern GLboolean GL_APIENTRY
_mesa_IsRenderbufferEXT(GLuint renderbuffer
);
1232 #define _es_IsRenderbuffer _mesa_IsRenderbufferEXT
1234 extern GLboolean GL_APIENTRY
_mesa_IsShader(GLuint shader
);
1235 #define _es_IsShader _mesa_IsShader
1237 extern GLboolean GL_APIENTRY
_mesa_IsTexture(GLuint texture
);
1238 #define _es_IsTexture _mesa_IsTexture
1240 extern void GL_APIENTRY
_mesa_LineWidth(GLfloat width
);
1241 #define _es_LineWidth _mesa_LineWidth
1243 extern void GL_APIENTRY
_mesa_LinkProgramARB(GLuint program
);
1244 #define _es_LinkProgram _mesa_LinkProgramARB
1246 extern void * GL_APIENTRY
_mesa_MapBufferARB(GLenum target
, GLenum access
);
1247 static void * GL_APIENTRY
_es_MapBufferOES(GLenum target
, GLenum access
)
1250 case GL_ARRAY_BUFFER
:
1251 case GL_ELEMENT_ARRAY_BUFFER
:
1254 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glMapBufferOES(target=0x%x)", target
);
1258 case GL_WRITE_ONLY_OES
:
1261 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glMapBufferOES(access=0x%x)", access
);
1265 return _mesa_MapBufferARB(target
, access
);
1268 extern void GL_APIENTRY
_mesa_MultiDrawArraysEXT(GLenum mode
, const GLint
* first
, const GLsizei
* count
, GLsizei primcount
);
1269 static void GL_APIENTRY
_es_MultiDrawArraysEXT(GLenum mode
, const GLint
*first
, const GLsizei
*count
, GLsizei primcount
)
1277 case GL_TRIANGLE_STRIP
:
1278 case GL_TRIANGLE_FAN
:
1281 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glMultiDrawArraysEXT(mode=0x%x)", mode
);
1285 _mesa_MultiDrawArraysEXT(mode
, first
, count
, primcount
);
1288 extern void GL_APIENTRY
_mesa_MultiDrawElementsEXT(GLenum mode
, const GLsizei
* count
, GLenum type
, const GLvoid
** indices
, GLsizei primcount
);
1289 static void GL_APIENTRY
_es_MultiDrawElementsEXT(GLenum mode
, const GLsizei
*count
, GLenum type
, const GLvoid
**indices
, GLsizei primcount
)
1297 case GL_TRIANGLE_STRIP
:
1298 case GL_TRIANGLE_FAN
:
1301 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glMultiDrawElementsEXT(mode=0x%x)", mode
);
1305 case GL_UNSIGNED_BYTE
:
1306 case GL_UNSIGNED_SHORT
:
1307 case GL_UNSIGNED_INT
:
1310 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glMultiDrawElementsEXT(type=0x%x)", type
);
1314 _mesa_MultiDrawElementsEXT(mode
, count
, type
, indices
, primcount
);
1317 extern void GL_APIENTRY
_mesa_PixelStorei(GLenum pname
, GLint param
);
1318 static void GL_APIENTRY
_es_PixelStorei(GLenum pname
, GLint param
)
1321 case GL_PACK_ALIGNMENT
:
1322 case GL_UNPACK_ALIGNMENT
:
1325 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glPixelStorei(pname=0x%x)", pname
);
1335 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glPixelStorei(param=%d)", param
);
1339 _mesa_PixelStorei(pname
, param
);
1342 extern void GL_APIENTRY
_mesa_PolygonOffset(GLfloat factor
, GLfloat units
);
1343 #define _es_PolygonOffset _mesa_PolygonOffset
1345 extern void GL_APIENTRY
_mesa_ReadPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, GLvoid
* pixels
);
1346 static void GL_APIENTRY
_es_ReadPixels(GLint x
, GLint y
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, GLvoid
*pixels
)
1350 if (type
!= GL_UNSIGNED_BYTE
) {
1351 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glReadPixels(format=0x%x)", format
);
1356 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_5_6_5
) {
1357 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glReadPixels(format=0x%x)", format
);
1362 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_4_4_4_4
&& type
!= GL_UNSIGNED_SHORT_5_5_5_1
) {
1363 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glReadPixels(format=0x%x)", format
);
1368 case GL_LUMINANCE_ALPHA
:
1369 if (type
!= GL_UNSIGNED_BYTE
) {
1370 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glReadPixels(format=0x%x)", format
);
1375 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glReadPixels(format=0x%x)", format
);
1379 _mesa_ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
1382 extern void GL_APIENTRY
_mesa_ReleaseShaderCompiler(void);
1383 #define _es_ReleaseShaderCompiler _mesa_ReleaseShaderCompiler
1385 /* this function is special and is defined elsewhere */
1386 extern void GL_APIENTRY
_es_RenderbufferStorageEXT(GLenum target
, GLenum internalFormat
, GLsizei width
, GLsizei height
);
1387 static void GL_APIENTRY
_check_RenderbufferStorage(GLenum target
, GLenum internalFormat
, GLsizei width
, GLsizei height
)
1389 switch(internalFormat
) {
1390 case GL_DEPTH_COMPONENT16
:
1394 case GL_STENCIL_INDEX8
:
1395 case GL_DEPTH_COMPONENT24_OES
:
1396 case GL_DEPTH_COMPONENT32_OES
:
1399 case GL_STENCIL_INDEX1_OES
:
1400 case GL_STENCIL_INDEX4_OES
:
1401 case GL_DEPTH24_STENCIL8_OES
:
1404 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glRenderbufferStorage(internalFormat=0x%x)", internalFormat
);
1408 _es_RenderbufferStorageEXT(target
, internalFormat
, width
, height
);
1411 extern void GL_APIENTRY
_mesa_SampleCoverageARB(GLclampf value
, GLboolean invert
);
1412 #define _es_SampleCoverage _mesa_SampleCoverageARB
1414 extern void GL_APIENTRY
_mesa_Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
);
1415 #define _es_Scissor _mesa_Scissor
1417 extern void GL_APIENTRY
_mesa_ShaderBinary(GLsizei n
, const GLuint
* shaders
, GLenum binaryformat
, const GLvoid
* binary
, GLsizei length
);
1418 #define _es_ShaderBinary _mesa_ShaderBinary
1420 extern void GL_APIENTRY
_mesa_ShaderSourceARB(GLuint shader
, GLsizei count
, const GLchar
** string
, const int * length
);
1421 #define _es_ShaderSource _mesa_ShaderSourceARB
1423 extern void GL_APIENTRY
_mesa_StencilFunc(GLenum func
, GLint ref
, GLuint mask
);
1424 static void GL_APIENTRY
_es_StencilFunc(GLenum func
, GLint ref
, GLuint mask
)
1437 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilFunc(func=0x%x)", func
);
1441 _mesa_StencilFunc(func
, ref
, mask
);
1444 extern void GL_APIENTRY
_mesa_StencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
);
1445 static void GL_APIENTRY
_es_StencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
)
1450 case GL_FRONT_AND_BACK
:
1453 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilFuncSeparate(face=0x%x)", face
);
1467 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilFuncSeparate(func=0x%x)", func
);
1471 _mesa_StencilFuncSeparate(face
, func
, ref
, mask
);
1474 extern void GL_APIENTRY
_mesa_StencilMask(GLuint mask
);
1475 #define _es_StencilMask _mesa_StencilMask
1477 extern void GL_APIENTRY
_mesa_StencilMaskSeparate(GLenum face
, GLuint mask
);
1478 static void GL_APIENTRY
_es_StencilMaskSeparate(GLenum face
, GLuint mask
)
1483 case GL_FRONT_AND_BACK
:
1486 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilMaskSeparate(face=0x%x)", face
);
1490 _mesa_StencilMaskSeparate(face
, mask
);
1493 extern void GL_APIENTRY
_mesa_StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
);
1494 static void GL_APIENTRY
_es_StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
)
1507 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilOp(fail=0x%x)", fail
);
1521 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilOp(zfail=0x%x)", zfail
);
1535 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilOp(zpass=0x%x)", zpass
);
1539 _mesa_StencilOp(fail
, zfail
, zpass
);
1542 extern void GL_APIENTRY
_mesa_StencilOpSeparate(GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
);
1543 static void GL_APIENTRY
_es_StencilOpSeparate(GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
)
1548 case GL_FRONT_AND_BACK
:
1551 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilOpSeparate(face=0x%x)", face
);
1565 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilOpSeparate(fail=0x%x)", fail
);
1579 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilOpSeparate(zfail=0x%x)", zfail
);
1593 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glStencilOpSeparate(zpass=0x%x)", zpass
);
1597 _mesa_StencilOpSeparate(face
, fail
, zfail
, zpass
);
1600 extern void GL_APIENTRY
_mesa_TexImage2D(GLenum target
, GLint level
, GLint internalFormat
, GLsizei width
, GLsizei height
, GLint border
, GLenum format
, GLenum type
, const GLvoid
* pixels
);
1601 static void GL_APIENTRY
_es_TexImage2D(GLenum target
, GLint level
, GLint internalFormat
, GLsizei width
, GLsizei height
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1605 case GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
1606 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
1607 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
1608 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
1609 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
1610 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
1613 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexImage2D(target=0x%x)", target
);
1616 switch(internalFormat
) {
1618 if (format
!= GL_ALPHA
) {
1619 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1624 if (format
!= GL_RGB
) {
1625 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1630 if (format
!= GL_RGBA
) {
1631 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1636 if (format
!= GL_LUMINANCE
) {
1637 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1641 case GL_LUMINANCE_ALPHA
:
1642 if (format
!= GL_LUMINANCE_ALPHA
) {
1643 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1647 case GL_DEPTH_COMPONENT
:
1648 if (format
!= GL_DEPTH_COMPONENT
) {
1649 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1653 case GL_DEPTH_STENCIL_OES
:
1654 if (format
!= GL_DEPTH_STENCIL_OES
) {
1655 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1660 if (format
!= GL_BGRA_EXT
) {
1661 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=0x%x)", internalFormat
);
1666 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(internalFormat=%d)", internalFormat
);
1673 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glTexImage2D(border=%d)", border
);
1678 if (type
!= GL_UNSIGNED_BYTE
) {
1679 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1684 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_5_6_5
) {
1685 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1690 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_4_4_4_4
&& type
!= GL_UNSIGNED_SHORT_5_5_5_1
&& type
!= GL_UNSIGNED_INT_2_10_10_10_REV_EXT
) {
1691 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1696 case GL_LUMINANCE_ALPHA
:
1697 if (type
!= GL_UNSIGNED_BYTE
) {
1698 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1702 case GL_DEPTH_COMPONENT
:
1703 if (type
!= GL_UNSIGNED_SHORT
&& type
!= GL_UNSIGNED_INT
) {
1704 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1708 case GL_DEPTH_STENCIL_OES
:
1709 if (type
!= GL_UNSIGNED_INT_24_8_OES
) {
1710 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1715 if (type
!= GL_UNSIGNED_BYTE
) {
1716 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1721 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage2D(format=0x%x)", format
);
1725 _mesa_TexImage2D(target
, level
, internalFormat
, width
, height
, border
, format
, type
, pixels
);
1728 extern void GL_APIENTRY
_mesa_TexImage3D(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid
* pixels
);
1729 static void GL_APIENTRY
_es_TexImage3DOES(GLenum target
, GLint level
, GLenum internalFormat
, GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1732 case GL_TEXTURE_3D_OES
:
1735 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexImage3DOES(target=0x%x)", target
);
1738 switch(internalFormat
) {
1743 case GL_LUMINANCE_ALPHA
:
1746 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexImage3DOES(internalFormat=0x%x)", internalFormat
);
1751 if (type
!= GL_UNSIGNED_BYTE
) {
1752 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage3DOES(format=0x%x)", format
);
1757 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_5_6_5
) {
1758 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage3DOES(format=0x%x)", format
);
1763 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_4_4_4_4
&& type
!= GL_UNSIGNED_SHORT_5_5_5_1
&& type
!= GL_UNSIGNED_INT_2_10_10_10_REV_EXT
) {
1764 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage3DOES(format=0x%x)", format
);
1769 case GL_LUMINANCE_ALPHA
:
1770 if (type
!= GL_UNSIGNED_BYTE
) {
1771 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage3DOES(format=0x%x)", format
);
1776 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexImage3DOES(format=0x%x)", format
);
1780 _mesa_TexImage3D(target
, level
, internalFormat
, width
, height
, depth
, border
, format
, type
, pixels
);
1783 extern void GL_APIENTRY
_mesa_TexParameterf(GLenum target
, GLenum pname
, GLfloat param
);
1784 static void GL_APIENTRY
_es_TexParameterf(GLenum target
, GLenum pname
, GLfloat param
)
1788 case GL_TEXTURE_CUBE_MAP
:
1789 case GL_TEXTURE_3D_OES
:
1790 case GL_TEXTURE_EXTERNAL_OES
:
1793 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterf(target=0x%x)", target
);
1797 case GL_TEXTURE_WRAP_S
:
1798 case GL_TEXTURE_WRAP_T
:
1799 case GL_TEXTURE_WRAP_R_OES
:
1800 if (param
!= GL_CLAMP_TO_EDGE
&& param
!= GL_REPEAT
&& param
!= GL_MIRRORED_REPEAT
) {
1801 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterf(pname=0x%x)", pname
);
1805 case GL_TEXTURE_MIN_FILTER
:
1806 if (param
!= GL_NEAREST
&& param
!= GL_LINEAR
&& param
!= GL_NEAREST_MIPMAP_NEAREST
&& param
!= GL_NEAREST_MIPMAP_LINEAR
&& param
!= GL_LINEAR_MIPMAP_NEAREST
&& param
!= GL_LINEAR_MIPMAP_LINEAR
) {
1807 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterf(pname=0x%x)", pname
);
1811 case GL_TEXTURE_MAG_FILTER
:
1812 if (param
!= GL_NEAREST
&& param
!= GL_LINEAR
) {
1813 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterf(pname=0x%x)", pname
);
1817 case GL_TEXTURE_MAX_ANISOTROPY_EXT
:
1820 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterf(pname=0x%x)", pname
);
1824 _mesa_TexParameterf(target
, pname
, param
);
1827 extern void GL_APIENTRY
_mesa_TexParameterfv(GLenum target
, GLenum pname
, const GLfloat
* params
);
1828 static void GL_APIENTRY
_es_TexParameterfv(GLenum target
, GLenum pname
, const GLfloat
*params
)
1832 case GL_TEXTURE_CUBE_MAP
:
1833 case GL_TEXTURE_3D_OES
:
1834 case GL_TEXTURE_EXTERNAL_OES
:
1837 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterfv(target=0x%x)", target
);
1841 case GL_TEXTURE_WRAP_S
: /* size 1 */
1842 case GL_TEXTURE_WRAP_T
: /* size 1 */
1843 case GL_TEXTURE_WRAP_R_OES
: /* size 1 */
1844 if (params
[0] != GL_CLAMP_TO_EDGE
&& params
[0] != GL_REPEAT
&& params
[0] != GL_MIRRORED_REPEAT
) {
1845 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterfv(pname=0x%x)", pname
);
1849 case GL_TEXTURE_MIN_FILTER
: /* size 1 */
1850 if (params
[0] != GL_NEAREST
&& params
[0] != GL_LINEAR
&& params
[0] != GL_NEAREST_MIPMAP_NEAREST
&& params
[0] != GL_NEAREST_MIPMAP_LINEAR
&& params
[0] != GL_LINEAR_MIPMAP_NEAREST
&& params
[0] != GL_LINEAR_MIPMAP_LINEAR
) {
1851 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterfv(pname=0x%x)", pname
);
1855 case GL_TEXTURE_MAG_FILTER
: /* size 1 */
1856 if (params
[0] != GL_NEAREST
&& params
[0] != GL_LINEAR
) {
1857 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterfv(pname=0x%x)", pname
);
1861 case GL_TEXTURE_MAX_ANISOTROPY_EXT
: /* size 1 */
1864 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameterfv(pname=0x%x)", pname
);
1868 _mesa_TexParameterfv(target
, pname
, params
);
1871 extern void GL_APIENTRY
_mesa_TexParameteri(GLenum target
, GLenum pname
, GLint param
);
1872 static void GL_APIENTRY
_es_TexParameteri(GLenum target
, GLenum pname
, GLint param
)
1876 case GL_TEXTURE_CUBE_MAP
:
1877 case GL_TEXTURE_3D_OES
:
1878 case GL_TEXTURE_EXTERNAL_OES
:
1881 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteri(target=0x%x)", target
);
1885 case GL_TEXTURE_WRAP_S
:
1886 case GL_TEXTURE_WRAP_T
:
1887 case GL_TEXTURE_WRAP_R_OES
:
1888 if (param
!= GL_CLAMP_TO_EDGE
&& param
!= GL_REPEAT
&& param
!= GL_MIRRORED_REPEAT
) {
1889 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteri(pname=0x%x)", pname
);
1893 case GL_TEXTURE_MIN_FILTER
:
1894 if (param
!= GL_NEAREST
&& param
!= GL_LINEAR
&& param
!= GL_NEAREST_MIPMAP_NEAREST
&& param
!= GL_NEAREST_MIPMAP_LINEAR
&& param
!= GL_LINEAR_MIPMAP_NEAREST
&& param
!= GL_LINEAR_MIPMAP_LINEAR
) {
1895 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteri(pname=0x%x)", pname
);
1899 case GL_TEXTURE_MAG_FILTER
:
1900 if (param
!= GL_NEAREST
&& param
!= GL_LINEAR
) {
1901 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteri(pname=0x%x)", pname
);
1905 case GL_TEXTURE_MAX_ANISOTROPY_EXT
:
1908 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteri(pname=0x%x)", pname
);
1912 _mesa_TexParameteri(target
, pname
, param
);
1915 extern void GL_APIENTRY
_mesa_TexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
);
1916 static void GL_APIENTRY
_es_TexParameteriv(GLenum target
, GLenum pname
, const GLint
*params
)
1920 case GL_TEXTURE_CUBE_MAP
:
1921 case GL_TEXTURE_3D_OES
:
1922 case GL_TEXTURE_EXTERNAL_OES
:
1925 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteriv(target=0x%x)", target
);
1929 case GL_TEXTURE_WRAP_S
: /* size 1 */
1930 case GL_TEXTURE_WRAP_T
: /* size 1 */
1931 case GL_TEXTURE_WRAP_R_OES
: /* size 1 */
1932 if (params
[0] != GL_CLAMP_TO_EDGE
&& params
[0] != GL_REPEAT
&& params
[0] != GL_MIRRORED_REPEAT
) {
1933 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteriv(pname=0x%x)", pname
);
1937 case GL_TEXTURE_MIN_FILTER
: /* size 1 */
1938 if (params
[0] != GL_NEAREST
&& params
[0] != GL_LINEAR
&& params
[0] != GL_NEAREST_MIPMAP_NEAREST
&& params
[0] != GL_NEAREST_MIPMAP_LINEAR
&& params
[0] != GL_LINEAR_MIPMAP_NEAREST
&& params
[0] != GL_LINEAR_MIPMAP_LINEAR
) {
1939 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteriv(pname=0x%x)", pname
);
1943 case GL_TEXTURE_MAG_FILTER
: /* size 1 */
1944 if (params
[0] != GL_NEAREST
&& params
[0] != GL_LINEAR
) {
1945 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteriv(pname=0x%x)", pname
);
1949 case GL_TEXTURE_MAX_ANISOTROPY_EXT
: /* size 1 */
1952 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexParameteriv(pname=0x%x)", pname
);
1956 _mesa_TexParameteriv(target
, pname
, params
);
1959 extern void GL_APIENTRY
_mesa_TexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
* pixels
);
1960 static void GL_APIENTRY
_es_TexSubImage2D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLsizei width
, GLsizei height
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
1964 case GL_TEXTURE_CUBE_MAP_POSITIVE_X
:
1965 case GL_TEXTURE_CUBE_MAP_POSITIVE_Y
:
1966 case GL_TEXTURE_CUBE_MAP_POSITIVE_Z
:
1967 case GL_TEXTURE_CUBE_MAP_NEGATIVE_X
:
1968 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
:
1969 case GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
:
1972 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexSubImage2D(target=0x%x)", target
);
1977 if (type
!= GL_UNSIGNED_BYTE
) {
1978 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
1983 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_5_6_5
) {
1984 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
1989 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_4_4_4_4
&& type
!= GL_UNSIGNED_SHORT_5_5_5_1
&& type
!= GL_UNSIGNED_INT_2_10_10_10_REV_EXT
) {
1990 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
1995 case GL_LUMINANCE_ALPHA
:
1996 if (type
!= GL_UNSIGNED_BYTE
) {
1997 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
2001 case GL_DEPTH_COMPONENT
:
2002 if (type
!= GL_UNSIGNED_SHORT
&& type
!= GL_UNSIGNED_INT
) {
2003 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
2007 case GL_DEPTH_STENCIL_OES
:
2008 if (type
!= GL_UNSIGNED_INT_24_8_OES
) {
2009 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
2014 if (type
!= GL_UNSIGNED_BYTE
) {
2015 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
2020 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage2D(format=0x%x)", format
);
2024 _mesa_TexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, pixels
);
2027 extern void GL_APIENTRY
_mesa_TexSubImage3D(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLenum type
, const GLvoid
* pixels
);
2028 static void GL_APIENTRY
_es_TexSubImage3DOES(GLenum target
, GLint level
, GLint xoffset
, GLint yoffset
, GLint zoffset
, GLsizei width
, GLsizei height
, GLsizei depth
, GLenum format
, GLenum type
, const GLvoid
*pixels
)
2031 case GL_TEXTURE_3D_OES
:
2034 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glTexSubImage3DOES(target=0x%x)", target
);
2039 if (type
!= GL_UNSIGNED_BYTE
) {
2040 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage3DOES(format=0x%x)", format
);
2045 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_5_6_5
) {
2046 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage3DOES(format=0x%x)", format
);
2051 if (type
!= GL_UNSIGNED_BYTE
&& type
!= GL_UNSIGNED_SHORT_4_4_4_4
&& type
!= GL_UNSIGNED_SHORT_5_5_5_1
&& type
!= GL_UNSIGNED_INT_2_10_10_10_REV_EXT
) {
2052 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage3DOES(format=0x%x)", format
);
2057 case GL_LUMINANCE_ALPHA
:
2058 if (type
!= GL_UNSIGNED_BYTE
) {
2059 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage3DOES(format=0x%x)", format
);
2064 _mesa_error(_mesa_get_current_context(), GL_INVALID_OPERATION
, "glTexSubImage3DOES(format=0x%x)", format
);
2068 _mesa_TexSubImage3D(target
, level
, xoffset
, yoffset
, zoffset
, width
, height
, depth
, format
, type
, pixels
);
2071 extern void GL_APIENTRY
_mesa_Uniform1fARB(GLint location
, GLfloat v0
);
2072 #define _es_Uniform1f _mesa_Uniform1fARB
2074 extern void GL_APIENTRY
_mesa_Uniform1fvARB(GLint location
, GLsizei count
, const GLfloat
* values
);
2075 #define _es_Uniform1fv _mesa_Uniform1fvARB
2077 extern void GL_APIENTRY
_mesa_Uniform1iARB(GLint location
, GLint v0
);
2078 #define _es_Uniform1i _mesa_Uniform1iARB
2080 extern void GL_APIENTRY
_mesa_Uniform1ivARB(GLint location
, GLsizei count
, const GLint
* values
);
2081 #define _es_Uniform1iv _mesa_Uniform1ivARB
2083 extern void GL_APIENTRY
_mesa_Uniform2fARB(GLint location
, GLfloat v0
, GLfloat v1
);
2084 #define _es_Uniform2f _mesa_Uniform2fARB
2086 extern void GL_APIENTRY
_mesa_Uniform2fvARB(GLint location
, GLsizei count
, const GLfloat
* values
);
2087 #define _es_Uniform2fv _mesa_Uniform2fvARB
2089 extern void GL_APIENTRY
_mesa_Uniform2iARB(GLint location
, GLint v0
, GLint v1
);
2090 #define _es_Uniform2i _mesa_Uniform2iARB
2092 extern void GL_APIENTRY
_mesa_Uniform2ivARB(GLint location
, GLsizei count
, const GLint
* values
);
2093 #define _es_Uniform2iv _mesa_Uniform2ivARB
2095 extern void GL_APIENTRY
_mesa_Uniform3fARB(GLint location
, GLfloat v0
, GLfloat v1
, GLfloat v2
);
2096 #define _es_Uniform3f _mesa_Uniform3fARB
2098 extern void GL_APIENTRY
_mesa_Uniform3fvARB(GLint location
, GLsizei count
, const GLfloat
* values
);
2099 #define _es_Uniform3fv _mesa_Uniform3fvARB
2101 extern void GL_APIENTRY
_mesa_Uniform3iARB(GLint location
, GLint v0
, GLint v1
, GLint v2
);
2102 #define _es_Uniform3i _mesa_Uniform3iARB
2104 extern void GL_APIENTRY
_mesa_Uniform3ivARB(GLint location
, GLsizei count
, const GLint
* values
);
2105 #define _es_Uniform3iv _mesa_Uniform3ivARB
2107 extern void GL_APIENTRY
_mesa_Uniform4fARB(GLint location
, GLfloat v0
, GLfloat v1
, GLfloat v2
, GLfloat v3
);
2108 #define _es_Uniform4f _mesa_Uniform4fARB
2110 extern void GL_APIENTRY
_mesa_Uniform4fvARB(GLint location
, GLsizei count
, const GLfloat
* values
);
2111 #define _es_Uniform4fv _mesa_Uniform4fvARB
2113 extern void GL_APIENTRY
_mesa_Uniform4iARB(GLint location
, GLint v0
, GLint v1
, GLint v2
, GLint v3
);
2114 #define _es_Uniform4i _mesa_Uniform4iARB
2116 extern void GL_APIENTRY
_mesa_Uniform4ivARB(GLint location
, GLsizei count
, const GLint
* values
);
2117 #define _es_Uniform4iv _mesa_Uniform4ivARB
2119 extern void GL_APIENTRY
_mesa_UniformMatrix2fvARB(GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
);
2120 #define _es_UniformMatrix2fv _mesa_UniformMatrix2fvARB
2122 extern void GL_APIENTRY
_mesa_UniformMatrix3fvARB(GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
);
2123 #define _es_UniformMatrix3fv _mesa_UniformMatrix3fvARB
2125 extern void GL_APIENTRY
_mesa_UniformMatrix4fvARB(GLint location
, GLsizei count
, GLboolean transpose
, const GLfloat
* value
);
2126 #define _es_UniformMatrix4fv _mesa_UniformMatrix4fvARB
2128 extern GLboolean GL_APIENTRY
_mesa_UnmapBufferARB(GLenum target
);
2129 static GLboolean GL_APIENTRY
_es_UnmapBufferOES(GLenum target
)
2132 case GL_ARRAY_BUFFER
:
2133 case GL_ELEMENT_ARRAY_BUFFER
:
2136 _mesa_error(_mesa_get_current_context(), GL_INVALID_ENUM
, "glUnmapBufferOES(target=0x%x)", target
);
2140 return _mesa_UnmapBufferARB(target
);
2143 extern void GL_APIENTRY
_mesa_UseProgramObjectARB(GLuint program
);
2144 #define _es_UseProgram _mesa_UseProgramObjectARB
2146 extern void GL_APIENTRY
_mesa_ValidateProgramARB(GLuint program
);
2147 #define _es_ValidateProgram _mesa_ValidateProgramARB
2149 /* this function is special and is defined elsewhere */
2150 extern void GL_APIENTRY
_es_VertexAttrib1f(GLuint index
, GLfloat x
);
2151 #define _check_VertexAttrib1f _es_VertexAttrib1f
2153 /* this function is special and is defined elsewhere */
2154 extern void GL_APIENTRY
_es_VertexAttrib1fv(GLuint index
, const GLfloat
* v
);
2155 #define _check_VertexAttrib1fv _es_VertexAttrib1fv
2157 /* this function is special and is defined elsewhere */
2158 extern void GL_APIENTRY
_es_VertexAttrib2f(GLuint index
, GLfloat x
, GLfloat y
);
2159 #define _check_VertexAttrib2f _es_VertexAttrib2f
2161 /* this function is special and is defined elsewhere */
2162 extern void GL_APIENTRY
_es_VertexAttrib2fv(GLuint index
, const GLfloat
* v
);
2163 #define _check_VertexAttrib2fv _es_VertexAttrib2fv
2165 /* this function is special and is defined elsewhere */
2166 extern void GL_APIENTRY
_es_VertexAttrib3f(GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
);
2167 #define _check_VertexAttrib3f _es_VertexAttrib3f
2169 /* this function is special and is defined elsewhere */
2170 extern void GL_APIENTRY
_es_VertexAttrib3fv(GLuint index
, const GLfloat
* v
);
2171 #define _check_VertexAttrib3fv _es_VertexAttrib3fv
2173 /* this function is special and is defined elsewhere */
2174 extern void GL_APIENTRY
_es_VertexAttrib4f(GLuint index
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
);
2175 #define _check_VertexAttrib4f _es_VertexAttrib4f
2177 /* this function is special and is defined elsewhere */
2178 extern void GL_APIENTRY
_es_VertexAttrib4fv(GLuint index
, const GLfloat
* v
);
2179 #define _check_VertexAttrib4fv _es_VertexAttrib4fv
2181 extern void GL_APIENTRY
_mesa_VertexAttribPointerARB(GLuint index
, GLint size
, GLenum type
, GLboolean normalized
, GLsizei stride
, const GLvoid
* pointer
);
2182 static void GL_APIENTRY
_es_VertexAttribPointer(GLuint index
, GLint size
, GLenum type
, GLboolean normalized
, GLsizei stride
, const GLvoid
*pointer
)
2191 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glVertexAttribPointer(size=%d)", size
);
2196 case GL_UNSIGNED_BYTE
:
2198 case GL_UNSIGNED_SHORT
:
2203 _mesa_error(_mesa_get_current_context(), GL_INVALID_VALUE
, "glVertexAttribPointer(type=0x%x)", type
);
2207 _mesa_VertexAttribPointerARB(index
, size
, type
, normalized
, stride
, pointer
);
2210 extern void GL_APIENTRY
_mesa_Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
);
2211 #define _es_Viewport _mesa_Viewport
2214 #include "glapi/glapi.h"
2216 #if FEATURE_remap_table
2218 /* define esLocalRemapTable */
2219 #include "main/api_exec_es2_dispatch.h"
2221 #define need_MESA_remap_table
2222 #include "main/api_exec_es2_remap_helper.h"
2225 init_remap_table(void)
2227 _glthread_DECLARE_STATIC_MUTEX(mutex
);
2228 static GLboolean initialized
= GL_FALSE
;
2229 const struct gl_function_pool_remap
*remap
= MESA_remap_table_functions
;
2232 _glthread_LOCK_MUTEX(mutex
);
2234 _glthread_UNLOCK_MUTEX(mutex
);
2238 for (i
= 0; i
< esLocalRemapTable_size
; i
++) {
2243 ASSERT(i
== remap
[i
].remap_index
);
2244 spec
= _mesa_function_pool
+ remap
[i
].pool_index
;
2246 offset
= _mesa_map_function_spec(spec
);
2247 esLocalRemapTable
[i
] = offset
;
2249 initialized
= GL_TRUE
;
2250 _glthread_UNLOCK_MUTEX(mutex
);
2253 #else /* FEATURE_remap_table */
2255 #include "es2api/main/dispatch.h"
2258 init_remap_table(void)
2262 #endif /* FEATURE_remap_table */
2264 struct _glapi_table
*
2265 _mesa_create_exec_table_es2(void)
2267 struct _glapi_table
*exec
;
2269 exec
= _mesa_alloc_dispatch_table(_gloffset_COUNT
);
2275 SET_ActiveTexture(exec
, _es_ActiveTexture
);
2276 SET_AttachShader(exec
, _es_AttachShader
);
2277 SET_BindAttribLocation(exec
, _es_BindAttribLocation
);
2278 SET_BindBuffer(exec
, _es_BindBuffer
);
2279 SET_BindFramebuffer(exec
, _es_BindFramebuffer
);
2280 SET_BindRenderbuffer(exec
, _es_BindRenderbuffer
);
2281 SET_BindTexture(exec
, _es_BindTexture
);
2282 SET_BlendColor(exec
, _es_BlendColor
);
2283 SET_BlendEquation(exec
, _es_BlendEquation
);
2284 SET_BlendEquationSeparate(exec
, _es_BlendEquationSeparate
);
2285 SET_BlendFunc(exec
, _es_BlendFunc
);
2286 SET_BlendFuncSeparate(exec
, _es_BlendFuncSeparate
);
2287 SET_BufferData(exec
, _es_BufferData
);
2288 SET_BufferSubData(exec
, _es_BufferSubData
);
2289 SET_CheckFramebufferStatus(exec
, _es_CheckFramebufferStatus
);
2290 SET_Clear(exec
, _es_Clear
);
2291 SET_ClearColor(exec
, _es_ClearColor
);
2292 SET_ClearDepthf(exec
, _es_ClearDepthf
);
2293 SET_ClearStencil(exec
, _es_ClearStencil
);
2294 SET_ColorMask(exec
, _es_ColorMask
);
2295 SET_CompileShader(exec
, _es_CompileShader
);
2296 SET_CompressedTexImage2D(exec
, _es_CompressedTexImage2D
);
2297 SET_CompressedTexImage3DOES(exec
, _es_CompressedTexImage3DOES
);
2298 SET_CompressedTexSubImage2D(exec
, _es_CompressedTexSubImage2D
);
2299 SET_CompressedTexSubImage3DOES(exec
, _es_CompressedTexSubImage3DOES
);
2300 SET_CopyTexImage2D(exec
, _es_CopyTexImage2D
);
2301 SET_CopyTexSubImage2D(exec
, _es_CopyTexSubImage2D
);
2302 SET_CopyTexSubImage3DOES(exec
, _es_CopyTexSubImage3DOES
);
2303 SET_CreateProgram(exec
, _es_CreateProgram
);
2304 SET_CreateShader(exec
, _es_CreateShader
);
2305 SET_CullFace(exec
, _es_CullFace
);
2306 SET_DeleteBuffers(exec
, _es_DeleteBuffers
);
2307 SET_DeleteFramebuffers(exec
, _es_DeleteFramebuffers
);
2308 SET_DeleteProgram(exec
, _es_DeleteProgram
);
2309 SET_DeleteRenderbuffers(exec
, _es_DeleteRenderbuffers
);
2310 SET_DeleteShader(exec
, _es_DeleteShader
);
2311 SET_DeleteTextures(exec
, _es_DeleteTextures
);
2312 SET_DepthFunc(exec
, _es_DepthFunc
);
2313 SET_DepthMask(exec
, _es_DepthMask
);
2314 SET_DepthRangef(exec
, _es_DepthRangef
);
2315 SET_DetachShader(exec
, _es_DetachShader
);
2316 SET_Disable(exec
, _es_Disable
);
2317 SET_DisableVertexAttribArray(exec
, _es_DisableVertexAttribArray
);
2318 SET_DrawArrays(exec
, _es_DrawArrays
);
2319 SET_DrawBuffersNV(exec
, _es_DrawBuffersNV
);
2320 SET_DrawElements(exec
, _es_DrawElements
);
2321 SET_EGLImageTargetRenderbufferStorageOES(exec
, _es_EGLImageTargetRenderbufferStorageOES
);
2322 SET_EGLImageTargetTexture2DOES(exec
, _es_EGLImageTargetTexture2DOES
);
2323 SET_Enable(exec
, _es_Enable
);
2324 SET_EnableVertexAttribArray(exec
, _es_EnableVertexAttribArray
);
2325 SET_Finish(exec
, _es_Finish
);
2326 SET_Flush(exec
, _es_Flush
);
2327 SET_FramebufferRenderbuffer(exec
, _es_FramebufferRenderbuffer
);
2328 SET_FramebufferTexture2D(exec
, _es_FramebufferTexture2D
);
2329 SET_FramebufferTexture3DOES(exec
, _es_FramebufferTexture3DOES
);
2330 SET_FrontFace(exec
, _es_FrontFace
);
2331 SET_GenBuffers(exec
, _es_GenBuffers
);
2332 SET_GenFramebuffers(exec
, _es_GenFramebuffers
);
2333 SET_GenRenderbuffers(exec
, _es_GenRenderbuffers
);
2334 SET_GenTextures(exec
, _es_GenTextures
);
2335 SET_GenerateMipmap(exec
, _es_GenerateMipmap
);
2336 SET_GetActiveAttrib(exec
, _es_GetActiveAttrib
);
2337 SET_GetActiveUniform(exec
, _es_GetActiveUniform
);
2338 SET_GetAttachedShaders(exec
, _es_GetAttachedShaders
);
2339 SET_GetAttribLocation(exec
, _es_GetAttribLocation
);
2340 SET_GetBooleanv(exec
, _es_GetBooleanv
);
2341 SET_GetBufferParameteriv(exec
, _es_GetBufferParameteriv
);
2342 SET_GetBufferPointervOES(exec
, _es_GetBufferPointervOES
);
2343 SET_GetError(exec
, _es_GetError
);
2344 SET_GetFloatv(exec
, _es_GetFloatv
);
2345 SET_GetFramebufferAttachmentParameteriv(exec
, _es_GetFramebufferAttachmentParameteriv
);
2346 SET_GetIntegerv(exec
, _es_GetIntegerv
);
2347 SET_GetProgramInfoLog(exec
, _es_GetProgramInfoLog
);
2348 SET_GetProgramiv(exec
, _es_GetProgramiv
);
2349 SET_GetRenderbufferParameteriv(exec
, _es_GetRenderbufferParameteriv
);
2350 SET_GetShaderInfoLog(exec
, _es_GetShaderInfoLog
);
2351 SET_GetShaderPrecisionFormat(exec
, _es_GetShaderPrecisionFormat
);
2352 SET_GetShaderSource(exec
, _es_GetShaderSource
);
2353 SET_GetShaderiv(exec
, _es_GetShaderiv
);
2354 SET_GetString(exec
, _es_GetString
);
2355 SET_GetTexParameterfv(exec
, _es_GetTexParameterfv
);
2356 SET_GetTexParameteriv(exec
, _es_GetTexParameteriv
);
2357 SET_GetUniformLocation(exec
, _es_GetUniformLocation
);
2358 SET_GetUniformfv(exec
, _es_GetUniformfv
);
2359 SET_GetUniformiv(exec
, _es_GetUniformiv
);
2360 SET_GetVertexAttribPointerv(exec
, _es_GetVertexAttribPointerv
);
2361 SET_GetVertexAttribfv(exec
, _es_GetVertexAttribfv
);
2362 SET_GetVertexAttribiv(exec
, _es_GetVertexAttribiv
);
2363 SET_Hint(exec
, _es_Hint
);
2364 SET_IsBuffer(exec
, _es_IsBuffer
);
2365 SET_IsEnabled(exec
, _es_IsEnabled
);
2366 SET_IsFramebuffer(exec
, _es_IsFramebuffer
);
2367 SET_IsProgram(exec
, _es_IsProgram
);
2368 SET_IsRenderbuffer(exec
, _es_IsRenderbuffer
);
2369 SET_IsShader(exec
, _es_IsShader
);
2370 SET_IsTexture(exec
, _es_IsTexture
);
2371 SET_LineWidth(exec
, _es_LineWidth
);
2372 SET_LinkProgram(exec
, _es_LinkProgram
);
2373 SET_MapBufferOES(exec
, _es_MapBufferOES
);
2374 SET_MultiDrawArraysEXT(exec
, _es_MultiDrawArraysEXT
);
2375 SET_MultiDrawElementsEXT(exec
, _es_MultiDrawElementsEXT
);
2376 SET_PixelStorei(exec
, _es_PixelStorei
);
2377 SET_PolygonOffset(exec
, _es_PolygonOffset
);
2378 SET_ReadPixels(exec
, _es_ReadPixels
);
2379 SET_ReleaseShaderCompiler(exec
, _es_ReleaseShaderCompiler
);
2380 SET_RenderbufferStorage(exec
, _check_RenderbufferStorage
);
2381 SET_SampleCoverage(exec
, _es_SampleCoverage
);
2382 SET_Scissor(exec
, _es_Scissor
);
2383 SET_ShaderBinary(exec
, _es_ShaderBinary
);
2384 SET_ShaderSource(exec
, _es_ShaderSource
);
2385 SET_StencilFunc(exec
, _es_StencilFunc
);
2386 SET_StencilFuncSeparate(exec
, _es_StencilFuncSeparate
);
2387 SET_StencilMask(exec
, _es_StencilMask
);
2388 SET_StencilMaskSeparate(exec
, _es_StencilMaskSeparate
);
2389 SET_StencilOp(exec
, _es_StencilOp
);
2390 SET_StencilOpSeparate(exec
, _es_StencilOpSeparate
);
2391 SET_TexImage2D(exec
, _es_TexImage2D
);
2392 SET_TexImage3DOES(exec
, _es_TexImage3DOES
);
2393 SET_TexParameterf(exec
, _es_TexParameterf
);
2394 SET_TexParameterfv(exec
, _es_TexParameterfv
);
2395 SET_TexParameteri(exec
, _es_TexParameteri
);
2396 SET_TexParameteriv(exec
, _es_TexParameteriv
);
2397 SET_TexSubImage2D(exec
, _es_TexSubImage2D
);
2398 SET_TexSubImage3DOES(exec
, _es_TexSubImage3DOES
);
2399 SET_Uniform1f(exec
, _es_Uniform1f
);
2400 SET_Uniform1fv(exec
, _es_Uniform1fv
);
2401 SET_Uniform1i(exec
, _es_Uniform1i
);
2402 SET_Uniform1iv(exec
, _es_Uniform1iv
);
2403 SET_Uniform2f(exec
, _es_Uniform2f
);
2404 SET_Uniform2fv(exec
, _es_Uniform2fv
);
2405 SET_Uniform2i(exec
, _es_Uniform2i
);
2406 SET_Uniform2iv(exec
, _es_Uniform2iv
);
2407 SET_Uniform3f(exec
, _es_Uniform3f
);
2408 SET_Uniform3fv(exec
, _es_Uniform3fv
);
2409 SET_Uniform3i(exec
, _es_Uniform3i
);
2410 SET_Uniform3iv(exec
, _es_Uniform3iv
);
2411 SET_Uniform4f(exec
, _es_Uniform4f
);
2412 SET_Uniform4fv(exec
, _es_Uniform4fv
);
2413 SET_Uniform4i(exec
, _es_Uniform4i
);
2414 SET_Uniform4iv(exec
, _es_Uniform4iv
);
2415 SET_UniformMatrix2fv(exec
, _es_UniformMatrix2fv
);
2416 SET_UniformMatrix3fv(exec
, _es_UniformMatrix3fv
);
2417 SET_UniformMatrix4fv(exec
, _es_UniformMatrix4fv
);
2418 SET_UnmapBufferOES(exec
, _es_UnmapBufferOES
);
2419 SET_UseProgram(exec
, _es_UseProgram
);
2420 SET_ValidateProgram(exec
, _es_ValidateProgram
);
2421 SET_VertexAttrib1f(exec
, _check_VertexAttrib1f
);
2422 SET_VertexAttrib1fv(exec
, _check_VertexAttrib1fv
);
2423 SET_VertexAttrib2f(exec
, _check_VertexAttrib2f
);
2424 SET_VertexAttrib2fv(exec
, _check_VertexAttrib2fv
);
2425 SET_VertexAttrib3f(exec
, _check_VertexAttrib3f
);
2426 SET_VertexAttrib3fv(exec
, _check_VertexAttrib3fv
);
2427 SET_VertexAttrib4f(exec
, _check_VertexAttrib4f
);
2428 SET_VertexAttrib4fv(exec
, _check_VertexAttrib4fv
);
2429 SET_VertexAttribPointer(exec
, _es_VertexAttribPointer
);
2430 SET_Viewport(exec
, _es_Viewport
);
2435 #endif /* FEATURE_ES2 */