1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
11 #ifndef GL_GLEXT_PROTOTYPES
12 #define GL_GLEXT_PROTOTYPES
14 #include <GLES2/gl2.h>
15 #include <GLES2/gl2ext.h>
16 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h"
18 void GL_APIENTRY
glActiveTexture(GLenum texture
) {
19 glGetInterfacePPAPI()->ActiveTexture(glGetCurrentContextPPAPI(), texture
);
22 void GL_APIENTRY
glAttachShader(GLuint program
, GLuint shader
) {
23 glGetInterfacePPAPI()->AttachShader(glGetCurrentContextPPAPI(), program
,
28 glBindAttribLocation(GLuint program
, GLuint index
, const char* name
) {
29 glGetInterfacePPAPI()->BindAttribLocation(glGetCurrentContextPPAPI(), program
,
33 void GL_APIENTRY
glBindBuffer(GLenum target
, GLuint buffer
) {
34 glGetInterfacePPAPI()->BindBuffer(glGetCurrentContextPPAPI(), target
, buffer
);
37 void GL_APIENTRY
glBindFramebuffer(GLenum target
, GLuint framebuffer
) {
38 glGetInterfacePPAPI()->BindFramebuffer(glGetCurrentContextPPAPI(), target
,
42 void GL_APIENTRY
glBindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
43 glGetInterfacePPAPI()->BindRenderbuffer(glGetCurrentContextPPAPI(), target
,
47 void GL_APIENTRY
glBindTexture(GLenum target
, GLuint texture
) {
48 glGetInterfacePPAPI()->BindTexture(glGetCurrentContextPPAPI(), target
,
53 glBlendColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
54 glGetInterfacePPAPI()->BlendColor(glGetCurrentContextPPAPI(), red
, green
,
58 void GL_APIENTRY
glBlendEquation(GLenum mode
) {
59 glGetInterfacePPAPI()->BlendEquation(glGetCurrentContextPPAPI(), mode
);
62 void GL_APIENTRY
glBlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
63 glGetInterfacePPAPI()->BlendEquationSeparate(glGetCurrentContextPPAPI(),
67 void GL_APIENTRY
glBlendFunc(GLenum sfactor
, GLenum dfactor
) {
68 glGetInterfacePPAPI()->BlendFunc(glGetCurrentContextPPAPI(), sfactor
,
72 void GL_APIENTRY
glBlendFuncSeparate(GLenum srcRGB
,
76 glGetInterfacePPAPI()->BlendFuncSeparate(glGetCurrentContextPPAPI(), srcRGB
,
77 dstRGB
, srcAlpha
, dstAlpha
);
81 glBufferData(GLenum target
, GLsizeiptr size
, const void* data
, GLenum usage
) {
82 glGetInterfacePPAPI()->BufferData(glGetCurrentContextPPAPI(), target
, size
,
86 void GL_APIENTRY
glBufferSubData(GLenum target
,
90 glGetInterfacePPAPI()->BufferSubData(glGetCurrentContextPPAPI(), target
,
94 GLenum GL_APIENTRY
glCheckFramebufferStatus(GLenum target
) {
95 return glGetInterfacePPAPI()->CheckFramebufferStatus(
96 glGetCurrentContextPPAPI(), target
);
99 void GL_APIENTRY
glClear(GLbitfield mask
) {
100 glGetInterfacePPAPI()->Clear(glGetCurrentContextPPAPI(), mask
);
104 glClearColor(GLclampf red
, GLclampf green
, GLclampf blue
, GLclampf alpha
) {
105 glGetInterfacePPAPI()->ClearColor(glGetCurrentContextPPAPI(), red
, green
,
109 void GL_APIENTRY
glClearDepthf(GLclampf depth
) {
110 glGetInterfacePPAPI()->ClearDepthf(glGetCurrentContextPPAPI(), depth
);
113 void GL_APIENTRY
glClearStencil(GLint s
) {
114 glGetInterfacePPAPI()->ClearStencil(glGetCurrentContextPPAPI(), s
);
118 glColorMask(GLboolean red
, GLboolean green
, GLboolean blue
, GLboolean alpha
) {
119 glGetInterfacePPAPI()->ColorMask(glGetCurrentContextPPAPI(), red
, green
, blue
,
123 void GL_APIENTRY
glCompileShader(GLuint shader
) {
124 glGetInterfacePPAPI()->CompileShader(glGetCurrentContextPPAPI(), shader
);
127 void GL_APIENTRY
glCompressedTexImage2D(GLenum target
,
129 GLenum internalformat
,
135 glGetInterfacePPAPI()->CompressedTexImage2D(
136 glGetCurrentContextPPAPI(), target
, level
, internalformat
, width
, height
,
137 border
, imageSize
, data
);
140 void GL_APIENTRY
glCompressedTexSubImage2D(GLenum target
,
149 glGetInterfacePPAPI()->CompressedTexSubImage2D(
150 glGetCurrentContextPPAPI(), target
, level
, xoffset
, yoffset
, width
,
151 height
, format
, imageSize
, data
);
154 void GL_APIENTRY
glCopyTexImage2D(GLenum target
,
156 GLenum internalformat
,
162 glGetInterfacePPAPI()->CopyTexImage2D(glGetCurrentContextPPAPI(), target
,
163 level
, internalformat
, x
, y
, width
,
167 void GL_APIENTRY
glCopyTexSubImage2D(GLenum target
,
175 glGetInterfacePPAPI()->CopyTexSubImage2D(glGetCurrentContextPPAPI(), target
,
176 level
, xoffset
, yoffset
, x
, y
, width
,
180 GLuint GL_APIENTRY
glCreateProgram() {
181 return glGetInterfacePPAPI()->CreateProgram(glGetCurrentContextPPAPI());
184 GLuint GL_APIENTRY
glCreateShader(GLenum type
) {
185 return glGetInterfacePPAPI()->CreateShader(glGetCurrentContextPPAPI(), type
);
188 void GL_APIENTRY
glCullFace(GLenum mode
) {
189 glGetInterfacePPAPI()->CullFace(glGetCurrentContextPPAPI(), mode
);
192 void GL_APIENTRY
glDeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
193 glGetInterfacePPAPI()->DeleteBuffers(glGetCurrentContextPPAPI(), n
, buffers
);
196 void GL_APIENTRY
glDeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
197 glGetInterfacePPAPI()->DeleteFramebuffers(glGetCurrentContextPPAPI(), n
,
201 void GL_APIENTRY
glDeleteProgram(GLuint program
) {
202 glGetInterfacePPAPI()->DeleteProgram(glGetCurrentContextPPAPI(), program
);
205 void GL_APIENTRY
glDeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) {
206 glGetInterfacePPAPI()->DeleteRenderbuffers(glGetCurrentContextPPAPI(), n
,
210 void GL_APIENTRY
glDeleteShader(GLuint shader
) {
211 glGetInterfacePPAPI()->DeleteShader(glGetCurrentContextPPAPI(), shader
);
214 void GL_APIENTRY
glDeleteTextures(GLsizei n
, const GLuint
* textures
) {
215 glGetInterfacePPAPI()->DeleteTextures(glGetCurrentContextPPAPI(), n
,
219 void GL_APIENTRY
glDepthFunc(GLenum func
) {
220 glGetInterfacePPAPI()->DepthFunc(glGetCurrentContextPPAPI(), func
);
223 void GL_APIENTRY
glDepthMask(GLboolean flag
) {
224 glGetInterfacePPAPI()->DepthMask(glGetCurrentContextPPAPI(), flag
);
227 void GL_APIENTRY
glDepthRangef(GLclampf zNear
, GLclampf zFar
) {
228 glGetInterfacePPAPI()->DepthRangef(glGetCurrentContextPPAPI(), zNear
, zFar
);
231 void GL_APIENTRY
glDetachShader(GLuint program
, GLuint shader
) {
232 glGetInterfacePPAPI()->DetachShader(glGetCurrentContextPPAPI(), program
,
236 void GL_APIENTRY
glDisable(GLenum cap
) {
237 glGetInterfacePPAPI()->Disable(glGetCurrentContextPPAPI(), cap
);
240 void GL_APIENTRY
glDisableVertexAttribArray(GLuint index
) {
241 glGetInterfacePPAPI()->DisableVertexAttribArray(glGetCurrentContextPPAPI(),
245 void GL_APIENTRY
glDrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
246 glGetInterfacePPAPI()->DrawArrays(glGetCurrentContextPPAPI(), mode
, first
,
251 glDrawElements(GLenum mode
, GLsizei count
, GLenum type
, const void* indices
) {
252 glGetInterfacePPAPI()->DrawElements(glGetCurrentContextPPAPI(), mode
, count
,
256 void GL_APIENTRY
glEnable(GLenum cap
) {
257 glGetInterfacePPAPI()->Enable(glGetCurrentContextPPAPI(), cap
);
260 void GL_APIENTRY
glEnableVertexAttribArray(GLuint index
) {
261 glGetInterfacePPAPI()->EnableVertexAttribArray(glGetCurrentContextPPAPI(),
265 void GL_APIENTRY
glFinish() {
266 glGetInterfacePPAPI()->Finish(glGetCurrentContextPPAPI());
269 void GL_APIENTRY
glFlush() {
270 glGetInterfacePPAPI()->Flush(glGetCurrentContextPPAPI());
273 void GL_APIENTRY
glFramebufferRenderbuffer(GLenum target
,
275 GLenum renderbuffertarget
,
276 GLuint renderbuffer
) {
277 glGetInterfacePPAPI()->FramebufferRenderbuffer(
278 glGetCurrentContextPPAPI(), target
, attachment
, renderbuffertarget
,
282 void GL_APIENTRY
glFramebufferTexture2D(GLenum target
,
287 glGetInterfacePPAPI()->FramebufferTexture2D(glGetCurrentContextPPAPI(),
288 target
, attachment
, textarget
,
292 void GL_APIENTRY
glFrontFace(GLenum mode
) {
293 glGetInterfacePPAPI()->FrontFace(glGetCurrentContextPPAPI(), mode
);
296 void GL_APIENTRY
glGenBuffers(GLsizei n
, GLuint
* buffers
) {
297 glGetInterfacePPAPI()->GenBuffers(glGetCurrentContextPPAPI(), n
, buffers
);
300 void GL_APIENTRY
glGenerateMipmap(GLenum target
) {
301 glGetInterfacePPAPI()->GenerateMipmap(glGetCurrentContextPPAPI(), target
);
304 void GL_APIENTRY
glGenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
305 glGetInterfacePPAPI()->GenFramebuffers(glGetCurrentContextPPAPI(), n
,
309 void GL_APIENTRY
glGenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
310 glGetInterfacePPAPI()->GenRenderbuffers(glGetCurrentContextPPAPI(), n
,
314 void GL_APIENTRY
glGenTextures(GLsizei n
, GLuint
* textures
) {
315 glGetInterfacePPAPI()->GenTextures(glGetCurrentContextPPAPI(), n
, textures
);
318 void GL_APIENTRY
glGetActiveAttrib(GLuint program
,
325 glGetInterfacePPAPI()->GetActiveAttrib(glGetCurrentContextPPAPI(), program
,
326 index
, bufsize
, length
, size
, type
,
330 void GL_APIENTRY
glGetActiveUniform(GLuint program
,
337 glGetInterfacePPAPI()->GetActiveUniform(glGetCurrentContextPPAPI(), program
,
338 index
, bufsize
, length
, size
, type
,
342 void GL_APIENTRY
glGetAttachedShaders(GLuint program
,
346 glGetInterfacePPAPI()->GetAttachedShaders(glGetCurrentContextPPAPI(), program
,
347 maxcount
, count
, shaders
);
350 GLint GL_APIENTRY
glGetAttribLocation(GLuint program
, const char* name
) {
351 return glGetInterfacePPAPI()->GetAttribLocation(glGetCurrentContextPPAPI(),
355 void GL_APIENTRY
glGetBooleanv(GLenum pname
, GLboolean
* params
) {
356 glGetInterfacePPAPI()->GetBooleanv(glGetCurrentContextPPAPI(), pname
, params
);
360 glGetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
361 glGetInterfacePPAPI()->GetBufferParameteriv(glGetCurrentContextPPAPI(),
362 target
, pname
, params
);
365 GLenum GL_APIENTRY
glGetError() {
366 return glGetInterfacePPAPI()->GetError(glGetCurrentContextPPAPI());
369 void GL_APIENTRY
glGetFloatv(GLenum pname
, GLfloat
* params
) {
370 glGetInterfacePPAPI()->GetFloatv(glGetCurrentContextPPAPI(), pname
, params
);
373 void GL_APIENTRY
glGetFramebufferAttachmentParameteriv(GLenum target
,
377 glGetInterfacePPAPI()->GetFramebufferAttachmentParameteriv(
378 glGetCurrentContextPPAPI(), target
, attachment
, pname
, params
);
381 void GL_APIENTRY
glGetIntegerv(GLenum pname
, GLint
* params
) {
382 glGetInterfacePPAPI()->GetIntegerv(glGetCurrentContextPPAPI(), pname
, params
);
385 void GL_APIENTRY
glGetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
386 glGetInterfacePPAPI()->GetProgramiv(glGetCurrentContextPPAPI(), program
,
390 void GL_APIENTRY
glGetProgramInfoLog(GLuint program
,
394 glGetInterfacePPAPI()->GetProgramInfoLog(glGetCurrentContextPPAPI(), program
,
395 bufsize
, length
, infolog
);
399 glGetRenderbufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
400 glGetInterfacePPAPI()->GetRenderbufferParameteriv(glGetCurrentContextPPAPI(),
401 target
, pname
, params
);
404 void GL_APIENTRY
glGetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
405 glGetInterfacePPAPI()->GetShaderiv(glGetCurrentContextPPAPI(), shader
, pname
,
409 void GL_APIENTRY
glGetShaderInfoLog(GLuint shader
,
413 glGetInterfacePPAPI()->GetShaderInfoLog(glGetCurrentContextPPAPI(), shader
,
414 bufsize
, length
, infolog
);
417 void GL_APIENTRY
glGetShaderPrecisionFormat(GLenum shadertype
,
418 GLenum precisiontype
,
421 glGetInterfacePPAPI()->GetShaderPrecisionFormat(
422 glGetCurrentContextPPAPI(), shadertype
, precisiontype
, range
, precision
);
425 void GL_APIENTRY
glGetShaderSource(GLuint shader
,
429 glGetInterfacePPAPI()->GetShaderSource(glGetCurrentContextPPAPI(), shader
,
430 bufsize
, length
, source
);
433 const GLubyte
* GL_APIENTRY
glGetString(GLenum name
) {
434 return glGetInterfacePPAPI()->GetString(glGetCurrentContextPPAPI(), name
);
438 glGetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) {
439 glGetInterfacePPAPI()->GetTexParameterfv(glGetCurrentContextPPAPI(), target
,
444 glGetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
445 glGetInterfacePPAPI()->GetTexParameteriv(glGetCurrentContextPPAPI(), target
,
450 glGetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) {
451 glGetInterfacePPAPI()->GetUniformfv(glGetCurrentContextPPAPI(), program
,
455 void GL_APIENTRY
glGetUniformiv(GLuint program
, GLint location
, GLint
* params
) {
456 glGetInterfacePPAPI()->GetUniformiv(glGetCurrentContextPPAPI(), program
,
460 GLint GL_APIENTRY
glGetUniformLocation(GLuint program
, const char* name
) {
461 return glGetInterfacePPAPI()->GetUniformLocation(glGetCurrentContextPPAPI(),
466 glGetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) {
467 glGetInterfacePPAPI()->GetVertexAttribfv(glGetCurrentContextPPAPI(), index
,
472 glGetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) {
473 glGetInterfacePPAPI()->GetVertexAttribiv(glGetCurrentContextPPAPI(), index
,
478 glGetVertexAttribPointerv(GLuint index
, GLenum pname
, void** pointer
) {
479 glGetInterfacePPAPI()->GetVertexAttribPointerv(glGetCurrentContextPPAPI(),
480 index
, pname
, pointer
);
483 void GL_APIENTRY
glHint(GLenum target
, GLenum mode
) {
484 glGetInterfacePPAPI()->Hint(glGetCurrentContextPPAPI(), target
, mode
);
487 GLboolean GL_APIENTRY
glIsBuffer(GLuint buffer
) {
488 return glGetInterfacePPAPI()->IsBuffer(glGetCurrentContextPPAPI(), buffer
);
491 GLboolean GL_APIENTRY
glIsEnabled(GLenum cap
) {
492 return glGetInterfacePPAPI()->IsEnabled(glGetCurrentContextPPAPI(), cap
);
495 GLboolean GL_APIENTRY
glIsFramebuffer(GLuint framebuffer
) {
496 return glGetInterfacePPAPI()->IsFramebuffer(glGetCurrentContextPPAPI(),
500 GLboolean GL_APIENTRY
glIsProgram(GLuint program
) {
501 return glGetInterfacePPAPI()->IsProgram(glGetCurrentContextPPAPI(), program
);
504 GLboolean GL_APIENTRY
glIsRenderbuffer(GLuint renderbuffer
) {
505 return glGetInterfacePPAPI()->IsRenderbuffer(glGetCurrentContextPPAPI(),
509 GLboolean GL_APIENTRY
glIsShader(GLuint shader
) {
510 return glGetInterfacePPAPI()->IsShader(glGetCurrentContextPPAPI(), shader
);
513 GLboolean GL_APIENTRY
glIsTexture(GLuint texture
) {
514 return glGetInterfacePPAPI()->IsTexture(glGetCurrentContextPPAPI(), texture
);
517 void GL_APIENTRY
glLineWidth(GLfloat width
) {
518 glGetInterfacePPAPI()->LineWidth(glGetCurrentContextPPAPI(), width
);
521 void GL_APIENTRY
glLinkProgram(GLuint program
) {
522 glGetInterfacePPAPI()->LinkProgram(glGetCurrentContextPPAPI(), program
);
525 void GL_APIENTRY
glPixelStorei(GLenum pname
, GLint param
) {
526 glGetInterfacePPAPI()->PixelStorei(glGetCurrentContextPPAPI(), pname
, param
);
529 void GL_APIENTRY
glPolygonOffset(GLfloat factor
, GLfloat units
) {
530 glGetInterfacePPAPI()->PolygonOffset(glGetCurrentContextPPAPI(), factor
,
534 void GL_APIENTRY
glReadPixels(GLint x
,
541 glGetInterfacePPAPI()->ReadPixels(glGetCurrentContextPPAPI(), x
, y
, width
,
542 height
, format
, type
, pixels
);
545 void GL_APIENTRY
glReleaseShaderCompiler() {
546 glGetInterfacePPAPI()->ReleaseShaderCompiler(glGetCurrentContextPPAPI());
549 void GL_APIENTRY
glRenderbufferStorage(GLenum target
,
550 GLenum internalformat
,
553 glGetInterfacePPAPI()->RenderbufferStorage(glGetCurrentContextPPAPI(), target
,
554 internalformat
, width
, height
);
557 void GL_APIENTRY
glSampleCoverage(GLclampf value
, GLboolean invert
) {
558 glGetInterfacePPAPI()->SampleCoverage(glGetCurrentContextPPAPI(), value
,
562 void GL_APIENTRY
glScissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
563 glGetInterfacePPAPI()->Scissor(glGetCurrentContextPPAPI(), x
, y
, width
,
567 void GL_APIENTRY
glShaderBinary(GLsizei n
,
568 const GLuint
* shaders
,
572 glGetInterfacePPAPI()->ShaderBinary(glGetCurrentContextPPAPI(), n
, shaders
,
573 binaryformat
, binary
, length
);
576 void GL_APIENTRY
glShaderSource(GLuint shader
,
579 const GLint
* length
) {
580 glGetInterfacePPAPI()->ShaderSource(glGetCurrentContextPPAPI(), shader
, count
,
584 void GL_APIENTRY
glStencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
585 glGetInterfacePPAPI()->StencilFunc(glGetCurrentContextPPAPI(), func
, ref
,
590 glStencilFuncSeparate(GLenum face
, GLenum func
, GLint ref
, GLuint mask
) {
591 glGetInterfacePPAPI()->StencilFuncSeparate(glGetCurrentContextPPAPI(), face
,
595 void GL_APIENTRY
glStencilMask(GLuint mask
) {
596 glGetInterfacePPAPI()->StencilMask(glGetCurrentContextPPAPI(), mask
);
599 void GL_APIENTRY
glStencilMaskSeparate(GLenum face
, GLuint mask
) {
600 glGetInterfacePPAPI()->StencilMaskSeparate(glGetCurrentContextPPAPI(), face
,
604 void GL_APIENTRY
glStencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
605 glGetInterfacePPAPI()->StencilOp(glGetCurrentContextPPAPI(), fail
, zfail
,
610 glStencilOpSeparate(GLenum face
, GLenum fail
, GLenum zfail
, GLenum zpass
) {
611 glGetInterfacePPAPI()->StencilOpSeparate(glGetCurrentContextPPAPI(), face
,
615 void GL_APIENTRY
glTexImage2D(GLenum target
,
617 GLint internalformat
,
623 const void* pixels
) {
624 glGetInterfacePPAPI()->TexImage2D(glGetCurrentContextPPAPI(), target
, level
,
625 internalformat
, width
, height
, border
,
626 format
, type
, pixels
);
629 void GL_APIENTRY
glTexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
630 glGetInterfacePPAPI()->TexParameterf(glGetCurrentContextPPAPI(), target
,
635 glTexParameterfv(GLenum target
, GLenum pname
, const GLfloat
* params
) {
636 glGetInterfacePPAPI()->TexParameterfv(glGetCurrentContextPPAPI(), target
,
640 void GL_APIENTRY
glTexParameteri(GLenum target
, GLenum pname
, GLint param
) {
641 glGetInterfacePPAPI()->TexParameteri(glGetCurrentContextPPAPI(), target
,
646 glTexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) {
647 glGetInterfacePPAPI()->TexParameteriv(glGetCurrentContextPPAPI(), target
,
651 void GL_APIENTRY
glTexSubImage2D(GLenum target
,
659 const void* pixels
) {
660 glGetInterfacePPAPI()->TexSubImage2D(glGetCurrentContextPPAPI(), target
,
661 level
, xoffset
, yoffset
, width
, height
,
662 format
, type
, pixels
);
665 void GL_APIENTRY
glUniform1f(GLint location
, GLfloat x
) {
666 glGetInterfacePPAPI()->Uniform1f(glGetCurrentContextPPAPI(), location
, x
);
669 void GL_APIENTRY
glUniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
670 glGetInterfacePPAPI()->Uniform1fv(glGetCurrentContextPPAPI(), location
, count
,
674 void GL_APIENTRY
glUniform1i(GLint location
, GLint x
) {
675 glGetInterfacePPAPI()->Uniform1i(glGetCurrentContextPPAPI(), location
, x
);
678 void GL_APIENTRY
glUniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
679 glGetInterfacePPAPI()->Uniform1iv(glGetCurrentContextPPAPI(), location
, count
,
683 void GL_APIENTRY
glUniform2f(GLint location
, GLfloat x
, GLfloat y
) {
684 glGetInterfacePPAPI()->Uniform2f(glGetCurrentContextPPAPI(), location
, x
, y
);
687 void GL_APIENTRY
glUniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
688 glGetInterfacePPAPI()->Uniform2fv(glGetCurrentContextPPAPI(), location
, count
,
692 void GL_APIENTRY
glUniform2i(GLint location
, GLint x
, GLint y
) {
693 glGetInterfacePPAPI()->Uniform2i(glGetCurrentContextPPAPI(), location
, x
, y
);
696 void GL_APIENTRY
glUniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
697 glGetInterfacePPAPI()->Uniform2iv(glGetCurrentContextPPAPI(), location
, count
,
701 void GL_APIENTRY
glUniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
702 glGetInterfacePPAPI()->Uniform3f(glGetCurrentContextPPAPI(), location
, x
, y
,
706 void GL_APIENTRY
glUniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
707 glGetInterfacePPAPI()->Uniform3fv(glGetCurrentContextPPAPI(), location
, count
,
711 void GL_APIENTRY
glUniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
712 glGetInterfacePPAPI()->Uniform3i(glGetCurrentContextPPAPI(), location
, x
, y
,
716 void GL_APIENTRY
glUniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
717 glGetInterfacePPAPI()->Uniform3iv(glGetCurrentContextPPAPI(), location
, count
,
722 glUniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
723 glGetInterfacePPAPI()->Uniform4f(glGetCurrentContextPPAPI(), location
, x
, y
,
727 void GL_APIENTRY
glUniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
728 glGetInterfacePPAPI()->Uniform4fv(glGetCurrentContextPPAPI(), location
, count
,
733 glUniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
734 glGetInterfacePPAPI()->Uniform4i(glGetCurrentContextPPAPI(), location
, x
, y
,
738 void GL_APIENTRY
glUniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
739 glGetInterfacePPAPI()->Uniform4iv(glGetCurrentContextPPAPI(), location
, count
,
743 void GL_APIENTRY
glUniformMatrix2fv(GLint location
,
746 const GLfloat
* value
) {
747 glGetInterfacePPAPI()->UniformMatrix2fv(glGetCurrentContextPPAPI(), location
,
748 count
, transpose
, value
);
751 void GL_APIENTRY
glUniformMatrix3fv(GLint location
,
754 const GLfloat
* value
) {
755 glGetInterfacePPAPI()->UniformMatrix3fv(glGetCurrentContextPPAPI(), location
,
756 count
, transpose
, value
);
759 void GL_APIENTRY
glUniformMatrix4fv(GLint location
,
762 const GLfloat
* value
) {
763 glGetInterfacePPAPI()->UniformMatrix4fv(glGetCurrentContextPPAPI(), location
,
764 count
, transpose
, value
);
767 void GL_APIENTRY
glUseProgram(GLuint program
) {
768 glGetInterfacePPAPI()->UseProgram(glGetCurrentContextPPAPI(), program
);
771 void GL_APIENTRY
glValidateProgram(GLuint program
) {
772 glGetInterfacePPAPI()->ValidateProgram(glGetCurrentContextPPAPI(), program
);
775 void GL_APIENTRY
glVertexAttrib1f(GLuint indx
, GLfloat x
) {
776 glGetInterfacePPAPI()->VertexAttrib1f(glGetCurrentContextPPAPI(), indx
, x
);
779 void GL_APIENTRY
glVertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
780 glGetInterfacePPAPI()->VertexAttrib1fv(glGetCurrentContextPPAPI(), indx
,
784 void GL_APIENTRY
glVertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
785 glGetInterfacePPAPI()->VertexAttrib2f(glGetCurrentContextPPAPI(), indx
, x
, y
);
788 void GL_APIENTRY
glVertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
789 glGetInterfacePPAPI()->VertexAttrib2fv(glGetCurrentContextPPAPI(), indx
,
794 glVertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
795 glGetInterfacePPAPI()->VertexAttrib3f(glGetCurrentContextPPAPI(), indx
, x
, y
,
799 void GL_APIENTRY
glVertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
800 glGetInterfacePPAPI()->VertexAttrib3fv(glGetCurrentContextPPAPI(), indx
,
805 glVertexAttrib4f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
806 glGetInterfacePPAPI()->VertexAttrib4f(glGetCurrentContextPPAPI(), indx
, x
, y
,
810 void GL_APIENTRY
glVertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
811 glGetInterfacePPAPI()->VertexAttrib4fv(glGetCurrentContextPPAPI(), indx
,
815 void GL_APIENTRY
glVertexAttribPointer(GLuint indx
,
818 GLboolean normalized
,
821 glGetInterfacePPAPI()->VertexAttribPointer(
822 glGetCurrentContextPPAPI(), indx
, size
, type
, normalized
, stride
, ptr
);
825 void GL_APIENTRY
glViewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
826 glGetInterfacePPAPI()->Viewport(glGetCurrentContextPPAPI(), x
, y
, width
,
830 void GL_APIENTRY
glBlitFramebufferEXT(GLint srcX0
,
840 const struct PPB_OpenGLES2FramebufferBlit
* ext
=
841 glGetFramebufferBlitInterfacePPAPI();
843 ext
->BlitFramebufferEXT(glGetCurrentContextPPAPI(), srcX0
, srcY0
, srcX1
,
844 srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
847 void GL_APIENTRY
glRenderbufferStorageMultisampleEXT(GLenum target
,
849 GLenum internalformat
,
852 const struct PPB_OpenGLES2FramebufferMultisample
* ext
=
853 glGetFramebufferMultisampleInterfacePPAPI();
855 ext
->RenderbufferStorageMultisampleEXT(glGetCurrentContextPPAPI(), target
,
856 samples
, internalformat
, width
,
860 void GL_APIENTRY
glGenQueriesEXT(GLsizei n
, GLuint
* queries
) {
861 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
863 ext
->GenQueriesEXT(glGetCurrentContextPPAPI(), n
, queries
);
866 void GL_APIENTRY
glDeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
867 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
869 ext
->DeleteQueriesEXT(glGetCurrentContextPPAPI(), n
, queries
);
872 GLboolean GL_APIENTRY
glIsQueryEXT(GLuint id
) {
873 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
875 return ext
->IsQueryEXT(glGetCurrentContextPPAPI(), id
);
879 void GL_APIENTRY
glBeginQueryEXT(GLenum target
, GLuint id
) {
880 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
882 ext
->BeginQueryEXT(glGetCurrentContextPPAPI(), target
, id
);
885 void GL_APIENTRY
glEndQueryEXT(GLenum target
) {
886 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
888 ext
->EndQueryEXT(glGetCurrentContextPPAPI(), target
);
891 void GL_APIENTRY
glGetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
892 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
894 ext
->GetQueryivEXT(glGetCurrentContextPPAPI(), target
, pname
, params
);
898 glGetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) {
899 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
901 ext
->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id
, pname
, params
);
904 void GL_APIENTRY
glGenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
905 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
906 glGetVertexArrayObjectInterfacePPAPI();
908 ext
->GenVertexArraysOES(glGetCurrentContextPPAPI(), n
, arrays
);
911 void GL_APIENTRY
glDeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
912 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
913 glGetVertexArrayObjectInterfacePPAPI();
915 ext
->DeleteVertexArraysOES(glGetCurrentContextPPAPI(), n
, arrays
);
918 GLboolean GL_APIENTRY
glIsVertexArrayOES(GLuint array
) {
919 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
920 glGetVertexArrayObjectInterfacePPAPI();
922 return ext
->IsVertexArrayOES(glGetCurrentContextPPAPI(), array
);
926 void GL_APIENTRY
glBindVertexArrayOES(GLuint array
) {
927 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
928 glGetVertexArrayObjectInterfacePPAPI();
930 ext
->BindVertexArrayOES(glGetCurrentContextPPAPI(), array
);
933 GLboolean GL_APIENTRY
glEnableFeatureCHROMIUM(const char* feature
) {
934 const struct PPB_OpenGLES2ChromiumEnableFeature
* ext
=
935 glGetChromiumEnableFeatureInterfacePPAPI();
937 return ext
->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature
);
941 void* GL_APIENTRY
glMapBufferSubDataCHROMIUM(GLuint target
,
945 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
946 glGetChromiumMapSubInterfacePPAPI();
948 return ext
->MapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), target
,
949 offset
, size
, access
);
953 void GL_APIENTRY
glUnmapBufferSubDataCHROMIUM(const void* mem
) {
954 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
955 glGetChromiumMapSubInterfacePPAPI();
957 ext
->UnmapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), mem
);
960 void* GL_APIENTRY
glMapTexSubImage2DCHROMIUM(GLenum target
,
969 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
970 glGetChromiumMapSubInterfacePPAPI();
972 return ext
->MapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), target
,
973 level
, xoffset
, yoffset
, width
, height
,
974 format
, type
, access
);
978 void GL_APIENTRY
glUnmapTexSubImage2DCHROMIUM(const void* mem
) {
979 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
980 glGetChromiumMapSubInterfacePPAPI();
982 ext
->UnmapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), mem
);
985 void GL_APIENTRY
glDrawArraysInstancedANGLE(GLenum mode
,
989 const struct PPB_OpenGLES2InstancedArrays
* ext
=
990 glGetInstancedArraysInterfacePPAPI();
992 ext
->DrawArraysInstancedANGLE(glGetCurrentContextPPAPI(), mode
, first
,
996 void GL_APIENTRY
glDrawElementsInstancedANGLE(GLenum mode
,
1000 GLsizei primcount
) {
1001 const struct PPB_OpenGLES2InstancedArrays
* ext
=
1002 glGetInstancedArraysInterfacePPAPI();
1004 ext
->DrawElementsInstancedANGLE(glGetCurrentContextPPAPI(), mode
, count
,
1005 type
, indices
, primcount
);
1008 void GL_APIENTRY
glVertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1009 const struct PPB_OpenGLES2InstancedArrays
* ext
=
1010 glGetInstancedArraysInterfacePPAPI();
1012 ext
->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index
, divisor
);
1015 void GL_APIENTRY
glDrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
1016 const struct PPB_OpenGLES2DrawBuffers_Dev
* ext
=
1017 glGetDrawBuffersInterfacePPAPI();
1019 ext
->DrawBuffersEXT(glGetCurrentContextPPAPI(), count
, bufs
);