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
,
27 void GL_APIENTRY
glBindAttribLocation(GLuint program
,
30 glGetInterfacePPAPI()->BindAttribLocation(glGetCurrentContextPPAPI(), program
,
34 void GL_APIENTRY
glBindBuffer(GLenum target
, GLuint buffer
) {
35 glGetInterfacePPAPI()->BindBuffer(glGetCurrentContextPPAPI(), target
, buffer
);
38 void GL_APIENTRY
glBindFramebuffer(GLenum target
, GLuint framebuffer
) {
39 glGetInterfacePPAPI()->BindFramebuffer(glGetCurrentContextPPAPI(), target
,
43 void GL_APIENTRY
glBindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
44 glGetInterfacePPAPI()->BindRenderbuffer(glGetCurrentContextPPAPI(), target
,
48 void GL_APIENTRY
glBindTexture(GLenum target
, GLuint texture
) {
49 glGetInterfacePPAPI()->BindTexture(glGetCurrentContextPPAPI(), target
,
53 void GL_APIENTRY
glBlendColor(GLclampf red
,
57 glGetInterfacePPAPI()->BlendColor(glGetCurrentContextPPAPI(), red
, green
,
61 void GL_APIENTRY
glBlendEquation(GLenum mode
) {
62 glGetInterfacePPAPI()->BlendEquation(glGetCurrentContextPPAPI(), mode
);
65 void GL_APIENTRY
glBlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
66 glGetInterfacePPAPI()->BlendEquationSeparate(glGetCurrentContextPPAPI(),
70 void GL_APIENTRY
glBlendFunc(GLenum sfactor
, GLenum dfactor
) {
71 glGetInterfacePPAPI()->BlendFunc(glGetCurrentContextPPAPI(), sfactor
,
75 void GL_APIENTRY
glBlendFuncSeparate(GLenum srcRGB
,
79 glGetInterfacePPAPI()->BlendFuncSeparate(glGetCurrentContextPPAPI(), srcRGB
,
80 dstRGB
, srcAlpha
, dstAlpha
);
83 void GL_APIENTRY
glBufferData(GLenum target
,
87 glGetInterfacePPAPI()->BufferData(glGetCurrentContextPPAPI(), target
, size
,
91 void GL_APIENTRY
glBufferSubData(GLenum target
,
95 glGetInterfacePPAPI()->BufferSubData(glGetCurrentContextPPAPI(), target
,
99 GLenum GL_APIENTRY
glCheckFramebufferStatus(GLenum target
) {
100 return glGetInterfacePPAPI()->CheckFramebufferStatus(
101 glGetCurrentContextPPAPI(), target
);
104 void GL_APIENTRY
glClear(GLbitfield mask
) {
105 glGetInterfacePPAPI()->Clear(glGetCurrentContextPPAPI(), mask
);
108 void GL_APIENTRY
glClearColor(GLclampf red
,
112 glGetInterfacePPAPI()->ClearColor(glGetCurrentContextPPAPI(), red
, green
,
116 void GL_APIENTRY
glClearDepthf(GLclampf depth
) {
117 glGetInterfacePPAPI()->ClearDepthf(glGetCurrentContextPPAPI(), depth
);
120 void GL_APIENTRY
glClearStencil(GLint s
) {
121 glGetInterfacePPAPI()->ClearStencil(glGetCurrentContextPPAPI(), s
);
124 void GL_APIENTRY
glColorMask(GLboolean red
,
128 glGetInterfacePPAPI()->ColorMask(glGetCurrentContextPPAPI(), red
, green
, blue
,
132 void GL_APIENTRY
glCompileShader(GLuint shader
) {
133 glGetInterfacePPAPI()->CompileShader(glGetCurrentContextPPAPI(), shader
);
136 void GL_APIENTRY
glCompressedTexImage2D(GLenum target
,
138 GLenum internalformat
,
144 glGetInterfacePPAPI()->CompressedTexImage2D(
145 glGetCurrentContextPPAPI(), target
, level
, internalformat
, width
, height
,
146 border
, imageSize
, data
);
149 void GL_APIENTRY
glCompressedTexSubImage2D(GLenum target
,
158 glGetInterfacePPAPI()->CompressedTexSubImage2D(
159 glGetCurrentContextPPAPI(), target
, level
, xoffset
, yoffset
, width
,
160 height
, format
, imageSize
, data
);
163 void GL_APIENTRY
glCopyTexImage2D(GLenum target
,
165 GLenum internalformat
,
171 glGetInterfacePPAPI()->CopyTexImage2D(glGetCurrentContextPPAPI(), target
,
172 level
, internalformat
, x
, y
, width
,
176 void GL_APIENTRY
glCopyTexSubImage2D(GLenum target
,
184 glGetInterfacePPAPI()->CopyTexSubImage2D(glGetCurrentContextPPAPI(), target
,
185 level
, xoffset
, yoffset
, x
, y
, width
,
189 GLuint GL_APIENTRY
glCreateProgram() {
190 return glGetInterfacePPAPI()->CreateProgram(glGetCurrentContextPPAPI());
193 GLuint GL_APIENTRY
glCreateShader(GLenum type
) {
194 return glGetInterfacePPAPI()->CreateShader(glGetCurrentContextPPAPI(), type
);
197 void GL_APIENTRY
glCullFace(GLenum mode
) {
198 glGetInterfacePPAPI()->CullFace(glGetCurrentContextPPAPI(), mode
);
201 void GL_APIENTRY
glDeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
202 glGetInterfacePPAPI()->DeleteBuffers(glGetCurrentContextPPAPI(), n
, buffers
);
205 void GL_APIENTRY
glDeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
206 glGetInterfacePPAPI()->DeleteFramebuffers(glGetCurrentContextPPAPI(), n
,
210 void GL_APIENTRY
glDeleteProgram(GLuint program
) {
211 glGetInterfacePPAPI()->DeleteProgram(glGetCurrentContextPPAPI(), program
);
214 void GL_APIENTRY
glDeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) {
215 glGetInterfacePPAPI()->DeleteRenderbuffers(glGetCurrentContextPPAPI(), n
,
219 void GL_APIENTRY
glDeleteShader(GLuint shader
) {
220 glGetInterfacePPAPI()->DeleteShader(glGetCurrentContextPPAPI(), shader
);
223 void GL_APIENTRY
glDeleteTextures(GLsizei n
, const GLuint
* textures
) {
224 glGetInterfacePPAPI()->DeleteTextures(glGetCurrentContextPPAPI(), n
,
228 void GL_APIENTRY
glDepthFunc(GLenum func
) {
229 glGetInterfacePPAPI()->DepthFunc(glGetCurrentContextPPAPI(), func
);
232 void GL_APIENTRY
glDepthMask(GLboolean flag
) {
233 glGetInterfacePPAPI()->DepthMask(glGetCurrentContextPPAPI(), flag
);
236 void GL_APIENTRY
glDepthRangef(GLclampf zNear
, GLclampf zFar
) {
237 glGetInterfacePPAPI()->DepthRangef(glGetCurrentContextPPAPI(), zNear
, zFar
);
240 void GL_APIENTRY
glDetachShader(GLuint program
, GLuint shader
) {
241 glGetInterfacePPAPI()->DetachShader(glGetCurrentContextPPAPI(), program
,
245 void GL_APIENTRY
glDisable(GLenum cap
) {
246 glGetInterfacePPAPI()->Disable(glGetCurrentContextPPAPI(), cap
);
249 void GL_APIENTRY
glDisableVertexAttribArray(GLuint index
) {
250 glGetInterfacePPAPI()->DisableVertexAttribArray(glGetCurrentContextPPAPI(),
254 void GL_APIENTRY
glDrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
255 glGetInterfacePPAPI()->DrawArrays(glGetCurrentContextPPAPI(), mode
, first
,
259 void GL_APIENTRY
glDrawElements(GLenum mode
,
262 const void* indices
) {
263 glGetInterfacePPAPI()->DrawElements(glGetCurrentContextPPAPI(), mode
, count
,
267 void GL_APIENTRY
glEnable(GLenum cap
) {
268 glGetInterfacePPAPI()->Enable(glGetCurrentContextPPAPI(), cap
);
271 void GL_APIENTRY
glEnableVertexAttribArray(GLuint index
) {
272 glGetInterfacePPAPI()->EnableVertexAttribArray(glGetCurrentContextPPAPI(),
276 void GL_APIENTRY
glFinish() {
277 glGetInterfacePPAPI()->Finish(glGetCurrentContextPPAPI());
280 void GL_APIENTRY
glFlush() {
281 glGetInterfacePPAPI()->Flush(glGetCurrentContextPPAPI());
284 void GL_APIENTRY
glFramebufferRenderbuffer(GLenum target
,
286 GLenum renderbuffertarget
,
287 GLuint renderbuffer
) {
288 glGetInterfacePPAPI()->FramebufferRenderbuffer(
289 glGetCurrentContextPPAPI(), target
, attachment
, renderbuffertarget
,
293 void GL_APIENTRY
glFramebufferTexture2D(GLenum target
,
298 glGetInterfacePPAPI()->FramebufferTexture2D(glGetCurrentContextPPAPI(),
299 target
, attachment
, textarget
,
303 void GL_APIENTRY
glFrontFace(GLenum mode
) {
304 glGetInterfacePPAPI()->FrontFace(glGetCurrentContextPPAPI(), mode
);
307 void GL_APIENTRY
glGenBuffers(GLsizei n
, GLuint
* buffers
) {
308 glGetInterfacePPAPI()->GenBuffers(glGetCurrentContextPPAPI(), n
, buffers
);
311 void GL_APIENTRY
glGenerateMipmap(GLenum target
) {
312 glGetInterfacePPAPI()->GenerateMipmap(glGetCurrentContextPPAPI(), target
);
315 void GL_APIENTRY
glGenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
316 glGetInterfacePPAPI()->GenFramebuffers(glGetCurrentContextPPAPI(), n
,
320 void GL_APIENTRY
glGenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
321 glGetInterfacePPAPI()->GenRenderbuffers(glGetCurrentContextPPAPI(), n
,
325 void GL_APIENTRY
glGenTextures(GLsizei n
, GLuint
* textures
) {
326 glGetInterfacePPAPI()->GenTextures(glGetCurrentContextPPAPI(), n
, textures
);
329 void GL_APIENTRY
glGetActiveAttrib(GLuint program
,
336 glGetInterfacePPAPI()->GetActiveAttrib(glGetCurrentContextPPAPI(), program
,
337 index
, bufsize
, length
, size
, type
,
341 void GL_APIENTRY
glGetActiveUniform(GLuint program
,
348 glGetInterfacePPAPI()->GetActiveUniform(glGetCurrentContextPPAPI(), program
,
349 index
, bufsize
, length
, size
, type
,
353 void GL_APIENTRY
glGetAttachedShaders(GLuint program
,
357 glGetInterfacePPAPI()->GetAttachedShaders(glGetCurrentContextPPAPI(), program
,
358 maxcount
, count
, shaders
);
361 GLint GL_APIENTRY
glGetAttribLocation(GLuint program
, const char* name
) {
362 return glGetInterfacePPAPI()->GetAttribLocation(glGetCurrentContextPPAPI(),
366 void GL_APIENTRY
glGetBooleanv(GLenum pname
, GLboolean
* params
) {
367 glGetInterfacePPAPI()->GetBooleanv(glGetCurrentContextPPAPI(), pname
, params
);
370 void GL_APIENTRY
glGetBufferParameteriv(GLenum target
,
373 glGetInterfacePPAPI()->GetBufferParameteriv(glGetCurrentContextPPAPI(),
374 target
, pname
, params
);
377 GLenum GL_APIENTRY
glGetError() {
378 return glGetInterfacePPAPI()->GetError(glGetCurrentContextPPAPI());
381 void GL_APIENTRY
glGetFloatv(GLenum pname
, GLfloat
* params
) {
382 glGetInterfacePPAPI()->GetFloatv(glGetCurrentContextPPAPI(), pname
, params
);
385 void GL_APIENTRY
glGetFramebufferAttachmentParameteriv(GLenum target
,
389 glGetInterfacePPAPI()->GetFramebufferAttachmentParameteriv(
390 glGetCurrentContextPPAPI(), target
, attachment
, pname
, params
);
393 void GL_APIENTRY
glGetIntegerv(GLenum pname
, GLint
* params
) {
394 glGetInterfacePPAPI()->GetIntegerv(glGetCurrentContextPPAPI(), pname
, params
);
397 void GL_APIENTRY
glGetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
398 glGetInterfacePPAPI()->GetProgramiv(glGetCurrentContextPPAPI(), program
,
402 void GL_APIENTRY
glGetProgramInfoLog(GLuint program
,
406 glGetInterfacePPAPI()->GetProgramInfoLog(glGetCurrentContextPPAPI(), program
,
407 bufsize
, length
, infolog
);
410 void GL_APIENTRY
glGetRenderbufferParameteriv(GLenum target
,
413 glGetInterfacePPAPI()->GetRenderbufferParameteriv(glGetCurrentContextPPAPI(),
414 target
, pname
, params
);
417 void GL_APIENTRY
glGetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
418 glGetInterfacePPAPI()->GetShaderiv(glGetCurrentContextPPAPI(), shader
, pname
,
422 void GL_APIENTRY
glGetShaderInfoLog(GLuint shader
,
426 glGetInterfacePPAPI()->GetShaderInfoLog(glGetCurrentContextPPAPI(), shader
,
427 bufsize
, length
, infolog
);
430 void GL_APIENTRY
glGetShaderPrecisionFormat(GLenum shadertype
,
431 GLenum precisiontype
,
434 glGetInterfacePPAPI()->GetShaderPrecisionFormat(
435 glGetCurrentContextPPAPI(), shadertype
, precisiontype
, range
, precision
);
438 void GL_APIENTRY
glGetShaderSource(GLuint shader
,
442 glGetInterfacePPAPI()->GetShaderSource(glGetCurrentContextPPAPI(), shader
,
443 bufsize
, length
, source
);
446 const GLubyte
* GL_APIENTRY
glGetString(GLenum name
) {
447 return glGetInterfacePPAPI()->GetString(glGetCurrentContextPPAPI(), name
);
450 void GL_APIENTRY
glGetTexParameterfv(GLenum target
,
453 glGetInterfacePPAPI()->GetTexParameterfv(glGetCurrentContextPPAPI(), target
,
457 void GL_APIENTRY
glGetTexParameteriv(GLenum target
,
460 glGetInterfacePPAPI()->GetTexParameteriv(glGetCurrentContextPPAPI(), target
,
464 void GL_APIENTRY
glGetUniformfv(GLuint program
,
467 glGetInterfacePPAPI()->GetUniformfv(glGetCurrentContextPPAPI(), program
,
471 void GL_APIENTRY
glGetUniformiv(GLuint program
, GLint location
, GLint
* params
) {
472 glGetInterfacePPAPI()->GetUniformiv(glGetCurrentContextPPAPI(), program
,
476 GLint GL_APIENTRY
glGetUniformLocation(GLuint program
, const char* name
) {
477 return glGetInterfacePPAPI()->GetUniformLocation(glGetCurrentContextPPAPI(),
481 void GL_APIENTRY
glGetVertexAttribfv(GLuint index
,
484 glGetInterfacePPAPI()->GetVertexAttribfv(glGetCurrentContextPPAPI(), index
,
488 void GL_APIENTRY
glGetVertexAttribiv(GLuint index
,
491 glGetInterfacePPAPI()->GetVertexAttribiv(glGetCurrentContextPPAPI(), index
,
495 void GL_APIENTRY
glGetVertexAttribPointerv(GLuint index
,
498 glGetInterfacePPAPI()->GetVertexAttribPointerv(glGetCurrentContextPPAPI(),
499 index
, pname
, pointer
);
502 void GL_APIENTRY
glHint(GLenum target
, GLenum mode
) {
503 glGetInterfacePPAPI()->Hint(glGetCurrentContextPPAPI(), target
, mode
);
506 GLboolean GL_APIENTRY
glIsBuffer(GLuint buffer
) {
507 return glGetInterfacePPAPI()->IsBuffer(glGetCurrentContextPPAPI(), buffer
);
510 GLboolean GL_APIENTRY
glIsEnabled(GLenum cap
) {
511 return glGetInterfacePPAPI()->IsEnabled(glGetCurrentContextPPAPI(), cap
);
514 GLboolean GL_APIENTRY
glIsFramebuffer(GLuint framebuffer
) {
515 return glGetInterfacePPAPI()->IsFramebuffer(glGetCurrentContextPPAPI(),
519 GLboolean GL_APIENTRY
glIsProgram(GLuint program
) {
520 return glGetInterfacePPAPI()->IsProgram(glGetCurrentContextPPAPI(), program
);
523 GLboolean GL_APIENTRY
glIsRenderbuffer(GLuint renderbuffer
) {
524 return glGetInterfacePPAPI()->IsRenderbuffer(glGetCurrentContextPPAPI(),
528 GLboolean GL_APIENTRY
glIsShader(GLuint shader
) {
529 return glGetInterfacePPAPI()->IsShader(glGetCurrentContextPPAPI(), shader
);
532 GLboolean GL_APIENTRY
glIsTexture(GLuint texture
) {
533 return glGetInterfacePPAPI()->IsTexture(glGetCurrentContextPPAPI(), texture
);
536 void GL_APIENTRY
glLineWidth(GLfloat width
) {
537 glGetInterfacePPAPI()->LineWidth(glGetCurrentContextPPAPI(), width
);
540 void GL_APIENTRY
glLinkProgram(GLuint program
) {
541 glGetInterfacePPAPI()->LinkProgram(glGetCurrentContextPPAPI(), program
);
544 void GL_APIENTRY
glPixelStorei(GLenum pname
, GLint param
) {
545 glGetInterfacePPAPI()->PixelStorei(glGetCurrentContextPPAPI(), pname
, param
);
548 void GL_APIENTRY
glPolygonOffset(GLfloat factor
, GLfloat units
) {
549 glGetInterfacePPAPI()->PolygonOffset(glGetCurrentContextPPAPI(), factor
,
553 void GL_APIENTRY
glReadPixels(GLint x
,
560 glGetInterfacePPAPI()->ReadPixels(glGetCurrentContextPPAPI(), x
, y
, width
,
561 height
, format
, type
, pixels
);
564 void GL_APIENTRY
glReleaseShaderCompiler() {
565 glGetInterfacePPAPI()->ReleaseShaderCompiler(glGetCurrentContextPPAPI());
568 void GL_APIENTRY
glRenderbufferStorage(GLenum target
,
569 GLenum internalformat
,
572 glGetInterfacePPAPI()->RenderbufferStorage(glGetCurrentContextPPAPI(), target
,
573 internalformat
, width
, height
);
576 void GL_APIENTRY
glSampleCoverage(GLclampf value
, GLboolean invert
) {
577 glGetInterfacePPAPI()->SampleCoverage(glGetCurrentContextPPAPI(), value
,
581 void GL_APIENTRY
glScissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
582 glGetInterfacePPAPI()->Scissor(glGetCurrentContextPPAPI(), x
, y
, width
,
586 void GL_APIENTRY
glShaderBinary(GLsizei n
,
587 const GLuint
* shaders
,
591 glGetInterfacePPAPI()->ShaderBinary(glGetCurrentContextPPAPI(), n
, shaders
,
592 binaryformat
, binary
, length
);
595 void GL_APIENTRY
glShaderSource(GLuint shader
,
598 const GLint
* length
) {
599 glGetInterfacePPAPI()->ShaderSource(glGetCurrentContextPPAPI(), shader
, count
,
603 void GL_APIENTRY
glStencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
604 glGetInterfacePPAPI()->StencilFunc(glGetCurrentContextPPAPI(), func
, ref
,
608 void GL_APIENTRY
glStencilFuncSeparate(GLenum face
,
612 glGetInterfacePPAPI()->StencilFuncSeparate(glGetCurrentContextPPAPI(), face
,
616 void GL_APIENTRY
glStencilMask(GLuint mask
) {
617 glGetInterfacePPAPI()->StencilMask(glGetCurrentContextPPAPI(), mask
);
620 void GL_APIENTRY
glStencilMaskSeparate(GLenum face
, GLuint mask
) {
621 glGetInterfacePPAPI()->StencilMaskSeparate(glGetCurrentContextPPAPI(), face
,
625 void GL_APIENTRY
glStencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
626 glGetInterfacePPAPI()->StencilOp(glGetCurrentContextPPAPI(), fail
, zfail
,
630 void GL_APIENTRY
glStencilOpSeparate(GLenum face
,
634 glGetInterfacePPAPI()->StencilOpSeparate(glGetCurrentContextPPAPI(), face
,
638 void GL_APIENTRY
glTexImage2D(GLenum target
,
640 GLint internalformat
,
646 const void* pixels
) {
647 glGetInterfacePPAPI()->TexImage2D(glGetCurrentContextPPAPI(), target
, level
,
648 internalformat
, width
, height
, border
,
649 format
, type
, pixels
);
652 void GL_APIENTRY
glTexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
653 glGetInterfacePPAPI()->TexParameterf(glGetCurrentContextPPAPI(), target
,
657 void GL_APIENTRY
glTexParameterfv(GLenum target
,
659 const GLfloat
* params
) {
660 glGetInterfacePPAPI()->TexParameterfv(glGetCurrentContextPPAPI(), target
,
664 void GL_APIENTRY
glTexParameteri(GLenum target
, GLenum pname
, GLint param
) {
665 glGetInterfacePPAPI()->TexParameteri(glGetCurrentContextPPAPI(), target
,
669 void GL_APIENTRY
glTexParameteriv(GLenum target
,
671 const GLint
* params
) {
672 glGetInterfacePPAPI()->TexParameteriv(glGetCurrentContextPPAPI(), target
,
676 void GL_APIENTRY
glTexSubImage2D(GLenum target
,
684 const void* pixels
) {
685 glGetInterfacePPAPI()->TexSubImage2D(glGetCurrentContextPPAPI(), target
,
686 level
, xoffset
, yoffset
, width
, height
,
687 format
, type
, pixels
);
690 void GL_APIENTRY
glUniform1f(GLint location
, GLfloat x
) {
691 glGetInterfacePPAPI()->Uniform1f(glGetCurrentContextPPAPI(), location
, x
);
694 void GL_APIENTRY
glUniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
695 glGetInterfacePPAPI()->Uniform1fv(glGetCurrentContextPPAPI(), location
, count
,
699 void GL_APIENTRY
glUniform1i(GLint location
, GLint x
) {
700 glGetInterfacePPAPI()->Uniform1i(glGetCurrentContextPPAPI(), location
, x
);
703 void GL_APIENTRY
glUniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
704 glGetInterfacePPAPI()->Uniform1iv(glGetCurrentContextPPAPI(), location
, count
,
708 void GL_APIENTRY
glUniform2f(GLint location
, GLfloat x
, GLfloat y
) {
709 glGetInterfacePPAPI()->Uniform2f(glGetCurrentContextPPAPI(), location
, x
, y
);
712 void GL_APIENTRY
glUniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
713 glGetInterfacePPAPI()->Uniform2fv(glGetCurrentContextPPAPI(), location
, count
,
717 void GL_APIENTRY
glUniform2i(GLint location
, GLint x
, GLint y
) {
718 glGetInterfacePPAPI()->Uniform2i(glGetCurrentContextPPAPI(), location
, x
, y
);
721 void GL_APIENTRY
glUniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
722 glGetInterfacePPAPI()->Uniform2iv(glGetCurrentContextPPAPI(), location
, count
,
726 void GL_APIENTRY
glUniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
727 glGetInterfacePPAPI()->Uniform3f(glGetCurrentContextPPAPI(), location
, x
, y
,
731 void GL_APIENTRY
glUniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
732 glGetInterfacePPAPI()->Uniform3fv(glGetCurrentContextPPAPI(), location
, count
,
736 void GL_APIENTRY
glUniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
737 glGetInterfacePPAPI()->Uniform3i(glGetCurrentContextPPAPI(), location
, x
, y
,
741 void GL_APIENTRY
glUniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
742 glGetInterfacePPAPI()->Uniform3iv(glGetCurrentContextPPAPI(), location
, count
,
747 glUniform4f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
748 glGetInterfacePPAPI()->Uniform4f(glGetCurrentContextPPAPI(), location
, x
, y
,
752 void GL_APIENTRY
glUniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
753 glGetInterfacePPAPI()->Uniform4fv(glGetCurrentContextPPAPI(), location
, count
,
758 glUniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
759 glGetInterfacePPAPI()->Uniform4i(glGetCurrentContextPPAPI(), location
, x
, y
,
763 void GL_APIENTRY
glUniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
764 glGetInterfacePPAPI()->Uniform4iv(glGetCurrentContextPPAPI(), location
, count
,
768 void GL_APIENTRY
glUniformMatrix2fv(GLint location
,
771 const GLfloat
* value
) {
772 glGetInterfacePPAPI()->UniformMatrix2fv(glGetCurrentContextPPAPI(), location
,
773 count
, transpose
, value
);
776 void GL_APIENTRY
glUniformMatrix3fv(GLint location
,
779 const GLfloat
* value
) {
780 glGetInterfacePPAPI()->UniformMatrix3fv(glGetCurrentContextPPAPI(), location
,
781 count
, transpose
, value
);
784 void GL_APIENTRY
glUniformMatrix4fv(GLint location
,
787 const GLfloat
* value
) {
788 glGetInterfacePPAPI()->UniformMatrix4fv(glGetCurrentContextPPAPI(), location
,
789 count
, transpose
, value
);
792 void GL_APIENTRY
glUseProgram(GLuint program
) {
793 glGetInterfacePPAPI()->UseProgram(glGetCurrentContextPPAPI(), program
);
796 void GL_APIENTRY
glValidateProgram(GLuint program
) {
797 glGetInterfacePPAPI()->ValidateProgram(glGetCurrentContextPPAPI(), program
);
800 void GL_APIENTRY
glVertexAttrib1f(GLuint indx
, GLfloat x
) {
801 glGetInterfacePPAPI()->VertexAttrib1f(glGetCurrentContextPPAPI(), indx
, x
);
804 void GL_APIENTRY
glVertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
805 glGetInterfacePPAPI()->VertexAttrib1fv(glGetCurrentContextPPAPI(), indx
,
809 void GL_APIENTRY
glVertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
810 glGetInterfacePPAPI()->VertexAttrib2f(glGetCurrentContextPPAPI(), indx
, x
, y
);
813 void GL_APIENTRY
glVertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
814 glGetInterfacePPAPI()->VertexAttrib2fv(glGetCurrentContextPPAPI(), indx
,
818 void GL_APIENTRY
glVertexAttrib3f(GLuint indx
,
822 glGetInterfacePPAPI()->VertexAttrib3f(glGetCurrentContextPPAPI(), indx
, x
, y
,
826 void GL_APIENTRY
glVertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
827 glGetInterfacePPAPI()->VertexAttrib3fv(glGetCurrentContextPPAPI(), indx
,
832 glVertexAttrib4f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
, GLfloat w
) {
833 glGetInterfacePPAPI()->VertexAttrib4f(glGetCurrentContextPPAPI(), indx
, x
, y
,
837 void GL_APIENTRY
glVertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
838 glGetInterfacePPAPI()->VertexAttrib4fv(glGetCurrentContextPPAPI(), indx
,
842 void GL_APIENTRY
glVertexAttribPointer(GLuint indx
,
845 GLboolean normalized
,
848 glGetInterfacePPAPI()->VertexAttribPointer(
849 glGetCurrentContextPPAPI(), indx
, size
, type
, normalized
, stride
, ptr
);
852 void GL_APIENTRY
glViewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
853 glGetInterfacePPAPI()->Viewport(glGetCurrentContextPPAPI(), x
, y
, width
,
857 void GL_APIENTRY
glBlitFramebufferEXT(GLint srcX0
,
867 const struct PPB_OpenGLES2FramebufferBlit
* ext
=
868 glGetFramebufferBlitInterfacePPAPI();
870 ext
->BlitFramebufferEXT(glGetCurrentContextPPAPI(), srcX0
, srcY0
, srcX1
,
871 srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
874 void GL_APIENTRY
glRenderbufferStorageMultisampleEXT(GLenum target
,
876 GLenum internalformat
,
879 const struct PPB_OpenGLES2FramebufferMultisample
* ext
=
880 glGetFramebufferMultisampleInterfacePPAPI();
882 ext
->RenderbufferStorageMultisampleEXT(glGetCurrentContextPPAPI(), target
,
883 samples
, internalformat
, width
,
887 void GL_APIENTRY
glGenQueriesEXT(GLsizei n
, GLuint
* queries
) {
888 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
890 ext
->GenQueriesEXT(glGetCurrentContextPPAPI(), n
, queries
);
893 void GL_APIENTRY
glDeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
894 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
896 ext
->DeleteQueriesEXT(glGetCurrentContextPPAPI(), n
, queries
);
899 GLboolean GL_APIENTRY
glIsQueryEXT(GLuint id
) {
900 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
902 return ext
->IsQueryEXT(glGetCurrentContextPPAPI(), id
);
906 void GL_APIENTRY
glBeginQueryEXT(GLenum target
, GLuint id
) {
907 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
909 ext
->BeginQueryEXT(glGetCurrentContextPPAPI(), target
, id
);
912 void GL_APIENTRY
glEndQueryEXT(GLenum target
) {
913 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
915 ext
->EndQueryEXT(glGetCurrentContextPPAPI(), target
);
918 void GL_APIENTRY
glGetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
919 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
921 ext
->GetQueryivEXT(glGetCurrentContextPPAPI(), target
, pname
, params
);
924 void GL_APIENTRY
glGetQueryObjectuivEXT(GLuint id
,
927 const struct PPB_OpenGLES2Query
* ext
= glGetQueryInterfacePPAPI();
929 ext
->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id
, pname
, params
);
932 void GL_APIENTRY
glGenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
933 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
934 glGetVertexArrayObjectInterfacePPAPI();
936 ext
->GenVertexArraysOES(glGetCurrentContextPPAPI(), n
, arrays
);
939 void GL_APIENTRY
glDeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
940 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
941 glGetVertexArrayObjectInterfacePPAPI();
943 ext
->DeleteVertexArraysOES(glGetCurrentContextPPAPI(), n
, arrays
);
946 GLboolean GL_APIENTRY
glIsVertexArrayOES(GLuint array
) {
947 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
948 glGetVertexArrayObjectInterfacePPAPI();
950 return ext
->IsVertexArrayOES(glGetCurrentContextPPAPI(), array
);
954 void GL_APIENTRY
glBindVertexArrayOES(GLuint array
) {
955 const struct PPB_OpenGLES2VertexArrayObject
* ext
=
956 glGetVertexArrayObjectInterfacePPAPI();
958 ext
->BindVertexArrayOES(glGetCurrentContextPPAPI(), array
);
961 GLboolean GL_APIENTRY
glEnableFeatureCHROMIUM(const char* feature
) {
962 const struct PPB_OpenGLES2ChromiumEnableFeature
* ext
=
963 glGetChromiumEnableFeatureInterfacePPAPI();
965 return ext
->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature
);
969 void* GL_APIENTRY
glMapBufferSubDataCHROMIUM(GLuint target
,
973 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
974 glGetChromiumMapSubInterfacePPAPI();
976 return ext
->MapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), target
,
977 offset
, size
, access
);
981 void GL_APIENTRY
glUnmapBufferSubDataCHROMIUM(const void* mem
) {
982 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
983 glGetChromiumMapSubInterfacePPAPI();
985 ext
->UnmapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), mem
);
988 void* GL_APIENTRY
glMapTexSubImage2DCHROMIUM(GLenum target
,
997 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
998 glGetChromiumMapSubInterfacePPAPI();
1000 return ext
->MapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), target
,
1001 level
, xoffset
, yoffset
, width
, height
,
1002 format
, type
, access
);
1006 void GL_APIENTRY
glUnmapTexSubImage2DCHROMIUM(const void* mem
) {
1007 const struct PPB_OpenGLES2ChromiumMapSub
* ext
=
1008 glGetChromiumMapSubInterfacePPAPI();
1010 ext
->UnmapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), mem
);
1013 void GL_APIENTRY
glDrawArraysInstancedANGLE(GLenum mode
,
1016 GLsizei primcount
) {
1017 const struct PPB_OpenGLES2InstancedArrays
* ext
=
1018 glGetInstancedArraysInterfacePPAPI();
1020 ext
->DrawArraysInstancedANGLE(glGetCurrentContextPPAPI(), mode
, first
,
1024 void GL_APIENTRY
glDrawElementsInstancedANGLE(GLenum mode
,
1027 const void* indices
,
1028 GLsizei primcount
) {
1029 const struct PPB_OpenGLES2InstancedArrays
* ext
=
1030 glGetInstancedArraysInterfacePPAPI();
1032 ext
->DrawElementsInstancedANGLE(glGetCurrentContextPPAPI(), mode
, count
,
1033 type
, indices
, primcount
);
1036 void GL_APIENTRY
glVertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1037 const struct PPB_OpenGLES2InstancedArrays
* ext
=
1038 glGetInstancedArraysInterfacePPAPI();
1040 ext
->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index
, divisor
);
1043 void GL_APIENTRY
glDrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
1044 const struct PPB_OpenGLES2DrawBuffers_Dev
* ext
=
1045 glGetDrawBuffersInterfacePPAPI();
1047 ext
->DrawBuffersEXT(glGetCurrentContextPPAPI(), count
, bufs
);