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 // These functions emulate GLES2 over command buffers.
12 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
13 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_
15 void GLES2ActiveTexture(GLenum texture
) {
16 gles2::GetGLContext()->ActiveTexture(texture
);
18 void GLES2AttachShader(GLuint program
, GLuint shader
) {
19 gles2::GetGLContext()->AttachShader(program
, shader
);
21 void GLES2BindAttribLocation(GLuint program
, GLuint index
, const char* name
) {
22 gles2::GetGLContext()->BindAttribLocation(program
, index
, name
);
24 void GLES2BindBuffer(GLenum target
, GLuint buffer
) {
25 gles2::GetGLContext()->BindBuffer(target
, buffer
);
27 void GLES2BindFramebuffer(GLenum target
, GLuint framebuffer
) {
28 gles2::GetGLContext()->BindFramebuffer(target
, framebuffer
);
30 void GLES2BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
31 gles2::GetGLContext()->BindRenderbuffer(target
, renderbuffer
);
33 void GLES2BindTexture(GLenum target
, GLuint texture
) {
34 gles2::GetGLContext()->BindTexture(target
, texture
);
36 void GLES2BlendColor(GLclampf red
,
40 gles2::GetGLContext()->BlendColor(red
, green
, blue
, alpha
);
42 void GLES2BlendEquation(GLenum mode
) {
43 gles2::GetGLContext()->BlendEquation(mode
);
45 void GLES2BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
46 gles2::GetGLContext()->BlendEquationSeparate(modeRGB
, modeAlpha
);
48 void GLES2BlendFunc(GLenum sfactor
, GLenum dfactor
) {
49 gles2::GetGLContext()->BlendFunc(sfactor
, dfactor
);
51 void GLES2BlendFuncSeparate(GLenum srcRGB
,
55 gles2::GetGLContext()->BlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
57 void GLES2BufferData(GLenum target
,
61 gles2::GetGLContext()->BufferData(target
, size
, data
, usage
);
63 void GLES2BufferSubData(GLenum target
,
67 gles2::GetGLContext()->BufferSubData(target
, offset
, size
, data
);
69 GLenum
GLES2CheckFramebufferStatus(GLenum target
) {
70 return gles2::GetGLContext()->CheckFramebufferStatus(target
);
72 void GLES2Clear(GLbitfield mask
) {
73 gles2::GetGLContext()->Clear(mask
);
75 void GLES2ClearColor(GLclampf red
,
79 gles2::GetGLContext()->ClearColor(red
, green
, blue
, alpha
);
81 void GLES2ClearDepthf(GLclampf depth
) {
82 gles2::GetGLContext()->ClearDepthf(depth
);
84 void GLES2ClearStencil(GLint s
) {
85 gles2::GetGLContext()->ClearStencil(s
);
87 void GLES2ColorMask(GLboolean red
,
91 gles2::GetGLContext()->ColorMask(red
, green
, blue
, alpha
);
93 void GLES2CompileShader(GLuint shader
) {
94 gles2::GetGLContext()->CompileShader(shader
);
96 void GLES2CompressedTexImage2D(GLenum target
,
98 GLenum internalformat
,
104 gles2::GetGLContext()->CompressedTexImage2D(
105 target
, level
, internalformat
, width
, height
, border
, imageSize
, data
);
107 void GLES2CompressedTexSubImage2D(GLenum target
,
116 gles2::GetGLContext()->CompressedTexSubImage2D(
117 target
, level
, xoffset
, yoffset
, width
, height
, format
, imageSize
, data
);
119 void GLES2CopyTexImage2D(GLenum target
,
121 GLenum internalformat
,
127 gles2::GetGLContext()->CopyTexImage2D(
128 target
, level
, internalformat
, x
, y
, width
, height
, border
);
130 void GLES2CopyTexSubImage2D(GLenum target
,
138 gles2::GetGLContext()->CopyTexSubImage2D(
139 target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
141 GLuint
GLES2CreateProgram() {
142 return gles2::GetGLContext()->CreateProgram();
144 GLuint
GLES2CreateShader(GLenum type
) {
145 return gles2::GetGLContext()->CreateShader(type
);
147 void GLES2CullFace(GLenum mode
) {
148 gles2::GetGLContext()->CullFace(mode
);
150 void GLES2DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
151 gles2::GetGLContext()->DeleteBuffers(n
, buffers
);
153 void GLES2DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
154 gles2::GetGLContext()->DeleteFramebuffers(n
, framebuffers
);
156 void GLES2DeleteProgram(GLuint program
) {
157 gles2::GetGLContext()->DeleteProgram(program
);
159 void GLES2DeleteRenderbuffers(GLsizei n
, const GLuint
* renderbuffers
) {
160 gles2::GetGLContext()->DeleteRenderbuffers(n
, renderbuffers
);
162 void GLES2DeleteShader(GLuint shader
) {
163 gles2::GetGLContext()->DeleteShader(shader
);
165 void GLES2DeleteTextures(GLsizei n
, const GLuint
* textures
) {
166 gles2::GetGLContext()->DeleteTextures(n
, textures
);
168 void GLES2DepthFunc(GLenum func
) {
169 gles2::GetGLContext()->DepthFunc(func
);
171 void GLES2DepthMask(GLboolean flag
) {
172 gles2::GetGLContext()->DepthMask(flag
);
174 void GLES2DepthRangef(GLclampf zNear
, GLclampf zFar
) {
175 gles2::GetGLContext()->DepthRangef(zNear
, zFar
);
177 void GLES2DetachShader(GLuint program
, GLuint shader
) {
178 gles2::GetGLContext()->DetachShader(program
, shader
);
180 void GLES2Disable(GLenum cap
) {
181 gles2::GetGLContext()->Disable(cap
);
183 void GLES2DisableVertexAttribArray(GLuint index
) {
184 gles2::GetGLContext()->DisableVertexAttribArray(index
);
186 void GLES2DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
187 gles2::GetGLContext()->DrawArrays(mode
, first
, count
);
189 void GLES2DrawElements(GLenum mode
,
192 const void* indices
) {
193 gles2::GetGLContext()->DrawElements(mode
, count
, type
, indices
);
195 void GLES2Enable(GLenum cap
) {
196 gles2::GetGLContext()->Enable(cap
);
198 void GLES2EnableVertexAttribArray(GLuint index
) {
199 gles2::GetGLContext()->EnableVertexAttribArray(index
);
202 gles2::GetGLContext()->Finish();
205 gles2::GetGLContext()->Flush();
207 void GLES2FramebufferRenderbuffer(GLenum target
,
209 GLenum renderbuffertarget
,
210 GLuint renderbuffer
) {
211 gles2::GetGLContext()->FramebufferRenderbuffer(
212 target
, attachment
, renderbuffertarget
, renderbuffer
);
214 void GLES2FramebufferTexture2D(GLenum target
,
219 gles2::GetGLContext()->FramebufferTexture2D(
220 target
, attachment
, textarget
, texture
, level
);
222 void GLES2FrontFace(GLenum mode
) {
223 gles2::GetGLContext()->FrontFace(mode
);
225 void GLES2GenBuffers(GLsizei n
, GLuint
* buffers
) {
226 gles2::GetGLContext()->GenBuffers(n
, buffers
);
228 void GLES2GenerateMipmap(GLenum target
) {
229 gles2::GetGLContext()->GenerateMipmap(target
);
231 void GLES2GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
232 gles2::GetGLContext()->GenFramebuffers(n
, framebuffers
);
234 void GLES2GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
235 gles2::GetGLContext()->GenRenderbuffers(n
, renderbuffers
);
237 void GLES2GenTextures(GLsizei n
, GLuint
* textures
) {
238 gles2::GetGLContext()->GenTextures(n
, textures
);
240 void GLES2GetActiveAttrib(GLuint program
,
247 gles2::GetGLContext()->GetActiveAttrib(
248 program
, index
, bufsize
, length
, size
, type
, name
);
250 void GLES2GetActiveUniform(GLuint program
,
257 gles2::GetGLContext()->GetActiveUniform(
258 program
, index
, bufsize
, length
, size
, type
, name
);
260 void GLES2GetAttachedShaders(GLuint program
,
264 gles2::GetGLContext()->GetAttachedShaders(program
, maxcount
, count
, shaders
);
266 GLint
GLES2GetAttribLocation(GLuint program
, const char* name
) {
267 return gles2::GetGLContext()->GetAttribLocation(program
, name
);
269 void GLES2GetBooleanv(GLenum pname
, GLboolean
* params
) {
270 gles2::GetGLContext()->GetBooleanv(pname
, params
);
272 void GLES2GetBufferParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
273 gles2::GetGLContext()->GetBufferParameteriv(target
, pname
, params
);
275 GLenum
GLES2GetError() {
276 return gles2::GetGLContext()->GetError();
278 void GLES2GetFloatv(GLenum pname
, GLfloat
* params
) {
279 gles2::GetGLContext()->GetFloatv(pname
, params
);
281 void GLES2GetFramebufferAttachmentParameteriv(GLenum target
,
285 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(
286 target
, attachment
, pname
, params
);
288 void GLES2GetIntegerv(GLenum pname
, GLint
* params
) {
289 gles2::GetGLContext()->GetIntegerv(pname
, params
);
291 void GLES2GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
292 gles2::GetGLContext()->GetProgramiv(program
, pname
, params
);
294 void GLES2GetProgramInfoLog(GLuint program
,
298 gles2::GetGLContext()->GetProgramInfoLog(program
, bufsize
, length
, infolog
);
300 void GLES2GetRenderbufferParameteriv(GLenum target
,
303 gles2::GetGLContext()->GetRenderbufferParameteriv(target
, pname
, params
);
305 void GLES2GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
306 gles2::GetGLContext()->GetShaderiv(shader
, pname
, params
);
308 void GLES2GetShaderInfoLog(GLuint shader
,
312 gles2::GetGLContext()->GetShaderInfoLog(shader
, bufsize
, length
, infolog
);
314 void GLES2GetShaderPrecisionFormat(GLenum shadertype
,
315 GLenum precisiontype
,
318 gles2::GetGLContext()->GetShaderPrecisionFormat(
319 shadertype
, precisiontype
, range
, precision
);
321 void GLES2GetShaderSource(GLuint shader
,
325 gles2::GetGLContext()->GetShaderSource(shader
, bufsize
, length
, source
);
327 const GLubyte
* GLES2GetString(GLenum name
) {
328 return gles2::GetGLContext()->GetString(name
);
330 void GLES2GetTexParameterfv(GLenum target
, GLenum pname
, GLfloat
* params
) {
331 gles2::GetGLContext()->GetTexParameterfv(target
, pname
, params
);
333 void GLES2GetTexParameteriv(GLenum target
, GLenum pname
, GLint
* params
) {
334 gles2::GetGLContext()->GetTexParameteriv(target
, pname
, params
);
336 void GLES2GetUniformfv(GLuint program
, GLint location
, GLfloat
* params
) {
337 gles2::GetGLContext()->GetUniformfv(program
, location
, params
);
339 void GLES2GetUniformiv(GLuint program
, GLint location
, GLint
* params
) {
340 gles2::GetGLContext()->GetUniformiv(program
, location
, params
);
342 GLint
GLES2GetUniformLocation(GLuint program
, const char* name
) {
343 return gles2::GetGLContext()->GetUniformLocation(program
, name
);
345 void GLES2GetVertexAttribfv(GLuint index
, GLenum pname
, GLfloat
* params
) {
346 gles2::GetGLContext()->GetVertexAttribfv(index
, pname
, params
);
348 void GLES2GetVertexAttribiv(GLuint index
, GLenum pname
, GLint
* params
) {
349 gles2::GetGLContext()->GetVertexAttribiv(index
, pname
, params
);
351 void GLES2GetVertexAttribPointerv(GLuint index
, GLenum pname
, void** pointer
) {
352 gles2::GetGLContext()->GetVertexAttribPointerv(index
, pname
, pointer
);
354 void GLES2Hint(GLenum target
, GLenum mode
) {
355 gles2::GetGLContext()->Hint(target
, mode
);
357 GLboolean
GLES2IsBuffer(GLuint buffer
) {
358 return gles2::GetGLContext()->IsBuffer(buffer
);
360 GLboolean
GLES2IsEnabled(GLenum cap
) {
361 return gles2::GetGLContext()->IsEnabled(cap
);
363 GLboolean
GLES2IsFramebuffer(GLuint framebuffer
) {
364 return gles2::GetGLContext()->IsFramebuffer(framebuffer
);
366 GLboolean
GLES2IsProgram(GLuint program
) {
367 return gles2::GetGLContext()->IsProgram(program
);
369 GLboolean
GLES2IsRenderbuffer(GLuint renderbuffer
) {
370 return gles2::GetGLContext()->IsRenderbuffer(renderbuffer
);
372 GLboolean
GLES2IsShader(GLuint shader
) {
373 return gles2::GetGLContext()->IsShader(shader
);
375 GLboolean
GLES2IsTexture(GLuint texture
) {
376 return gles2::GetGLContext()->IsTexture(texture
);
378 void GLES2LineWidth(GLfloat width
) {
379 gles2::GetGLContext()->LineWidth(width
);
381 void GLES2LinkProgram(GLuint program
) {
382 gles2::GetGLContext()->LinkProgram(program
);
384 void GLES2PixelStorei(GLenum pname
, GLint param
) {
385 gles2::GetGLContext()->PixelStorei(pname
, param
);
387 void GLES2PolygonOffset(GLfloat factor
, GLfloat units
) {
388 gles2::GetGLContext()->PolygonOffset(factor
, units
);
390 void GLES2ReadPixels(GLint x
,
397 gles2::GetGLContext()->ReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
399 void GLES2ReleaseShaderCompiler() {
400 gles2::GetGLContext()->ReleaseShaderCompiler();
402 void GLES2RenderbufferStorage(GLenum target
,
403 GLenum internalformat
,
406 gles2::GetGLContext()->RenderbufferStorage(
407 target
, internalformat
, width
, height
);
409 void GLES2SampleCoverage(GLclampf value
, GLboolean invert
) {
410 gles2::GetGLContext()->SampleCoverage(value
, invert
);
412 void GLES2Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
413 gles2::GetGLContext()->Scissor(x
, y
, width
, height
);
415 void GLES2ShaderBinary(GLsizei n
,
416 const GLuint
* shaders
,
420 gles2::GetGLContext()->ShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
422 void GLES2ShaderSource(GLuint shader
,
424 const GLchar
* const* str
,
425 const GLint
* length
) {
426 gles2::GetGLContext()->ShaderSource(shader
, count
, str
, length
);
428 void GLES2ShallowFinishCHROMIUM() {
429 gles2::GetGLContext()->ShallowFinishCHROMIUM();
431 void GLES2ShallowFlushCHROMIUM() {
432 gles2::GetGLContext()->ShallowFlushCHROMIUM();
434 void GLES2StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
435 gles2::GetGLContext()->StencilFunc(func
, ref
, mask
);
437 void GLES2StencilFuncSeparate(GLenum face
,
441 gles2::GetGLContext()->StencilFuncSeparate(face
, func
, ref
, mask
);
443 void GLES2StencilMask(GLuint mask
) {
444 gles2::GetGLContext()->StencilMask(mask
);
446 void GLES2StencilMaskSeparate(GLenum face
, GLuint mask
) {
447 gles2::GetGLContext()->StencilMaskSeparate(face
, mask
);
449 void GLES2StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
450 gles2::GetGLContext()->StencilOp(fail
, zfail
, zpass
);
452 void GLES2StencilOpSeparate(GLenum face
,
456 gles2::GetGLContext()->StencilOpSeparate(face
, fail
, zfail
, zpass
);
458 void GLES2TexImage2D(GLenum target
,
460 GLint internalformat
,
466 const void* pixels
) {
467 gles2::GetGLContext()->TexImage2D(target
,
477 void GLES2TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
478 gles2::GetGLContext()->TexParameterf(target
, pname
, param
);
480 void GLES2TexParameterfv(GLenum target
, GLenum pname
, const GLfloat
* params
) {
481 gles2::GetGLContext()->TexParameterfv(target
, pname
, params
);
483 void GLES2TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
484 gles2::GetGLContext()->TexParameteri(target
, pname
, param
);
486 void GLES2TexParameteriv(GLenum target
, GLenum pname
, const GLint
* params
) {
487 gles2::GetGLContext()->TexParameteriv(target
, pname
, params
);
489 void GLES2TexSubImage2D(GLenum target
,
497 const void* pixels
) {
498 gles2::GetGLContext()->TexSubImage2D(
499 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, pixels
);
501 void GLES2Uniform1f(GLint location
, GLfloat x
) {
502 gles2::GetGLContext()->Uniform1f(location
, x
);
504 void GLES2Uniform1fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
505 gles2::GetGLContext()->Uniform1fv(location
, count
, v
);
507 void GLES2Uniform1i(GLint location
, GLint x
) {
508 gles2::GetGLContext()->Uniform1i(location
, x
);
510 void GLES2Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
511 gles2::GetGLContext()->Uniform1iv(location
, count
, v
);
513 void GLES2Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
514 gles2::GetGLContext()->Uniform2f(location
, x
, y
);
516 void GLES2Uniform2fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
517 gles2::GetGLContext()->Uniform2fv(location
, count
, v
);
519 void GLES2Uniform2i(GLint location
, GLint x
, GLint y
) {
520 gles2::GetGLContext()->Uniform2i(location
, x
, y
);
522 void GLES2Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
523 gles2::GetGLContext()->Uniform2iv(location
, count
, v
);
525 void GLES2Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
526 gles2::GetGLContext()->Uniform3f(location
, x
, y
, z
);
528 void GLES2Uniform3fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
529 gles2::GetGLContext()->Uniform3fv(location
, count
, v
);
531 void GLES2Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
532 gles2::GetGLContext()->Uniform3i(location
, x
, y
, z
);
534 void GLES2Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
535 gles2::GetGLContext()->Uniform3iv(location
, count
, v
);
537 void GLES2Uniform4f(GLint location
,
542 gles2::GetGLContext()->Uniform4f(location
, x
, y
, z
, w
);
544 void GLES2Uniform4fv(GLint location
, GLsizei count
, const GLfloat
* v
) {
545 gles2::GetGLContext()->Uniform4fv(location
, count
, v
);
547 void GLES2Uniform4i(GLint location
, GLint x
, GLint y
, GLint z
, GLint w
) {
548 gles2::GetGLContext()->Uniform4i(location
, x
, y
, z
, w
);
550 void GLES2Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
551 gles2::GetGLContext()->Uniform4iv(location
, count
, v
);
553 void GLES2UniformMatrix2fv(GLint location
,
556 const GLfloat
* value
) {
557 gles2::GetGLContext()->UniformMatrix2fv(location
, count
, transpose
, value
);
559 void GLES2UniformMatrix3fv(GLint location
,
562 const GLfloat
* value
) {
563 gles2::GetGLContext()->UniformMatrix3fv(location
, count
, transpose
, value
);
565 void GLES2UniformMatrix4fv(GLint location
,
568 const GLfloat
* value
) {
569 gles2::GetGLContext()->UniformMatrix4fv(location
, count
, transpose
, value
);
571 void GLES2UseProgram(GLuint program
) {
572 gles2::GetGLContext()->UseProgram(program
);
574 void GLES2ValidateProgram(GLuint program
) {
575 gles2::GetGLContext()->ValidateProgram(program
);
577 void GLES2VertexAttrib1f(GLuint indx
, GLfloat x
) {
578 gles2::GetGLContext()->VertexAttrib1f(indx
, x
);
580 void GLES2VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
581 gles2::GetGLContext()->VertexAttrib1fv(indx
, values
);
583 void GLES2VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
584 gles2::GetGLContext()->VertexAttrib2f(indx
, x
, y
);
586 void GLES2VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
587 gles2::GetGLContext()->VertexAttrib2fv(indx
, values
);
589 void GLES2VertexAttrib3f(GLuint indx
, GLfloat x
, GLfloat y
, GLfloat z
) {
590 gles2::GetGLContext()->VertexAttrib3f(indx
, x
, y
, z
);
592 void GLES2VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
593 gles2::GetGLContext()->VertexAttrib3fv(indx
, values
);
595 void GLES2VertexAttrib4f(GLuint indx
,
600 gles2::GetGLContext()->VertexAttrib4f(indx
, x
, y
, z
, w
);
602 void GLES2VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
603 gles2::GetGLContext()->VertexAttrib4fv(indx
, values
);
605 void GLES2VertexAttribPointer(GLuint indx
,
608 GLboolean normalized
,
611 gles2::GetGLContext()->VertexAttribPointer(
612 indx
, size
, type
, normalized
, stride
, ptr
);
614 void GLES2Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
615 gles2::GetGLContext()->Viewport(x
, y
, width
, height
);
617 void GLES2BlitFramebufferCHROMIUM(GLint srcX0
,
627 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
628 srcX0
, srcY0
, srcX1
, srcY1
, dstX0
, dstY0
, dstX1
, dstY1
, mask
, filter
);
630 void GLES2RenderbufferStorageMultisampleCHROMIUM(GLenum target
,
632 GLenum internalformat
,
635 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
636 target
, samples
, internalformat
, width
, height
);
638 void GLES2RenderbufferStorageMultisampleEXT(GLenum target
,
640 GLenum internalformat
,
643 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
644 target
, samples
, internalformat
, width
, height
);
646 void GLES2FramebufferTexture2DMultisampleEXT(GLenum target
,
652 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
653 target
, attachment
, textarget
, texture
, level
, samples
);
655 void GLES2TexStorage2DEXT(GLenum target
,
657 GLenum internalFormat
,
660 gles2::GetGLContext()->TexStorage2DEXT(
661 target
, levels
, internalFormat
, width
, height
);
663 void GLES2GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
664 gles2::GetGLContext()->GenQueriesEXT(n
, queries
);
666 void GLES2DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
667 gles2::GetGLContext()->DeleteQueriesEXT(n
, queries
);
669 GLboolean
GLES2IsQueryEXT(GLuint id
) {
670 return gles2::GetGLContext()->IsQueryEXT(id
);
672 void GLES2BeginQueryEXT(GLenum target
, GLuint id
) {
673 gles2::GetGLContext()->BeginQueryEXT(target
, id
);
675 void GLES2EndQueryEXT(GLenum target
) {
676 gles2::GetGLContext()->EndQueryEXT(target
);
678 void GLES2GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
679 gles2::GetGLContext()->GetQueryivEXT(target
, pname
, params
);
681 void GLES2GetQueryObjectuivEXT(GLuint id
, GLenum pname
, GLuint
* params
) {
682 gles2::GetGLContext()->GetQueryObjectuivEXT(id
, pname
, params
);
684 void GLES2InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) {
685 gles2::GetGLContext()->InsertEventMarkerEXT(length
, marker
);
687 void GLES2PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) {
688 gles2::GetGLContext()->PushGroupMarkerEXT(length
, marker
);
690 void GLES2PopGroupMarkerEXT() {
691 gles2::GetGLContext()->PopGroupMarkerEXT();
693 void GLES2GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
694 gles2::GetGLContext()->GenVertexArraysOES(n
, arrays
);
696 void GLES2DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
697 gles2::GetGLContext()->DeleteVertexArraysOES(n
, arrays
);
699 GLboolean
GLES2IsVertexArrayOES(GLuint array
) {
700 return gles2::GetGLContext()->IsVertexArrayOES(array
);
702 void GLES2BindVertexArrayOES(GLuint array
) {
703 gles2::GetGLContext()->BindVertexArrayOES(array
);
705 void GLES2SwapBuffers() {
706 gles2::GetGLContext()->SwapBuffers();
708 GLuint
GLES2GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
712 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(
713 buffer_id
, count
, type
, offset
);
715 void GLES2GenSharedIdsCHROMIUM(GLuint namespace_id
,
719 gles2::GetGLContext()->GenSharedIdsCHROMIUM(namespace_id
, id_offset
, n
, ids
);
721 void GLES2DeleteSharedIdsCHROMIUM(GLuint namespace_id
,
724 gles2::GetGLContext()->DeleteSharedIdsCHROMIUM(namespace_id
, n
, ids
);
726 void GLES2RegisterSharedIdsCHROMIUM(GLuint namespace_id
,
729 gles2::GetGLContext()->RegisterSharedIdsCHROMIUM(namespace_id
, n
, ids
);
731 GLboolean
GLES2EnableFeatureCHROMIUM(const char* feature
) {
732 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature
);
734 void* GLES2MapBufferCHROMIUM(GLuint target
, GLenum access
) {
735 return gles2::GetGLContext()->MapBufferCHROMIUM(target
, access
);
737 GLboolean
GLES2UnmapBufferCHROMIUM(GLuint target
) {
738 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target
);
740 void* GLES2MapImageCHROMIUM(GLuint image_id
) {
741 return gles2::GetGLContext()->MapImageCHROMIUM(image_id
);
743 void GLES2UnmapImageCHROMIUM(GLuint image_id
) {
744 gles2::GetGLContext()->UnmapImageCHROMIUM(image_id
);
746 void* GLES2MapBufferSubDataCHROMIUM(GLuint target
,
750 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(
751 target
, offset
, size
, access
);
753 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem
) {
754 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem
);
756 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target
,
765 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
766 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, access
);
768 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem
) {
769 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem
);
771 void GLES2ResizeCHROMIUM(GLuint width
, GLuint height
, GLfloat scale_factor
) {
772 gles2::GetGLContext()->ResizeCHROMIUM(width
, height
, scale_factor
);
774 const GLchar
* GLES2GetRequestableExtensionsCHROMIUM() {
775 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
777 void GLES2RequestExtensionCHROMIUM(const char* extension
) {
778 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension
);
780 void GLES2RateLimitOffscreenContextCHROMIUM() {
781 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
783 void GLES2GetMultipleIntegervCHROMIUM(const GLenum
* pnames
,
787 gles2::GetGLContext()->GetMultipleIntegervCHROMIUM(
788 pnames
, count
, results
, size
);
790 void GLES2GetProgramInfoCHROMIUM(GLuint program
,
794 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program
, bufsize
, size
, info
);
796 GLuint
GLES2CreateStreamTextureCHROMIUM(GLuint texture
) {
797 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture
);
799 GLuint
GLES2CreateImageCHROMIUM(GLsizei width
,
801 GLenum internalformat
,
803 return gles2::GetGLContext()->CreateImageCHROMIUM(
804 width
, height
, internalformat
, usage
);
806 void GLES2DestroyImageCHROMIUM(GLuint image_id
) {
807 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id
);
809 void GLES2GetImageParameterivCHROMIUM(GLuint image_id
,
812 gles2::GetGLContext()->GetImageParameterivCHROMIUM(image_id
, pname
, params
);
814 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader
,
818 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(
819 shader
, bufsize
, length
, source
);
821 void GLES2PostSubBufferCHROMIUM(GLint x
, GLint y
, GLint width
, GLint height
) {
822 gles2::GetGLContext()->PostSubBufferCHROMIUM(x
, y
, width
, height
);
824 void GLES2TexImageIOSurface2DCHROMIUM(GLenum target
,
829 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(
830 target
, width
, height
, ioSurfaceId
, plane
);
832 void GLES2CopyTextureCHROMIUM(GLenum target
,
836 GLint internalformat
,
838 gles2::GetGLContext()->CopyTextureCHROMIUM(
839 target
, source_id
, dest_id
, level
, internalformat
, dest_type
);
841 void GLES2DrawArraysInstancedANGLE(GLenum mode
,
845 gles2::GetGLContext()->DrawArraysInstancedANGLE(
846 mode
, first
, count
, primcount
);
848 void GLES2DrawElementsInstancedANGLE(GLenum mode
,
853 gles2::GetGLContext()->DrawElementsInstancedANGLE(
854 mode
, count
, type
, indices
, primcount
);
856 void GLES2VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
857 gles2::GetGLContext()->VertexAttribDivisorANGLE(index
, divisor
);
859 void GLES2GenMailboxCHROMIUM(GLbyte
* mailbox
) {
860 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox
);
862 void GLES2ProduceTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
863 gles2::GetGLContext()->ProduceTextureCHROMIUM(target
, mailbox
);
865 void GLES2ProduceTextureDirectCHROMIUM(GLuint texture
,
867 const GLbyte
* mailbox
) {
868 gles2::GetGLContext()->ProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
870 void GLES2ConsumeTextureCHROMIUM(GLenum target
, const GLbyte
* mailbox
) {
871 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target
, mailbox
);
873 GLuint
GLES2CreateAndConsumeTextureCHROMIUM(GLenum target
,
874 const GLbyte
* mailbox
) {
875 return gles2::GetGLContext()->CreateAndConsumeTextureCHROMIUM(target
,
878 void GLES2BindUniformLocationCHROMIUM(GLuint program
,
881 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program
, location
, name
);
883 void GLES2BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
884 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target
, imageId
);
886 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
887 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target
, imageId
);
889 void GLES2TraceBeginCHROMIUM(const char* name
) {
890 gles2::GetGLContext()->TraceBeginCHROMIUM(name
);
892 void GLES2TraceEndCHROMIUM() {
893 gles2::GetGLContext()->TraceEndCHROMIUM();
895 void GLES2AsyncTexSubImage2DCHROMIUM(GLenum target
,
904 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
905 target
, level
, xoffset
, yoffset
, width
, height
, format
, type
, data
);
907 void GLES2AsyncTexImage2DCHROMIUM(GLenum target
,
909 GLenum internalformat
,
915 const void* pixels
) {
916 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(target
,
926 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
927 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target
);
929 void GLES2WaitAllAsyncTexImage2DCHROMIUM() {
930 gles2::GetGLContext()->WaitAllAsyncTexImage2DCHROMIUM();
932 void GLES2DiscardFramebufferEXT(GLenum target
,
934 const GLenum
* attachments
) {
935 gles2::GetGLContext()->DiscardFramebufferEXT(target
, count
, attachments
);
937 void GLES2LoseContextCHROMIUM(GLenum current
, GLenum other
) {
938 gles2::GetGLContext()->LoseContextCHROMIUM(current
, other
);
940 GLuint
GLES2InsertSyncPointCHROMIUM() {
941 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
943 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point
) {
944 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point
);
946 void GLES2DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
947 gles2::GetGLContext()->DrawBuffersEXT(count
, bufs
);
949 void GLES2DiscardBackbufferCHROMIUM() {
950 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
952 void GLES2ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
953 GLenum plane_transform
,
954 GLuint overlay_texture_id
,
963 gles2::GetGLContext()->ScheduleOverlayPlaneCHROMIUM(plane_z_order
,
975 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) {
976 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode
, m
);
978 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
979 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode
);
984 extern const NameToFunc g_gles2_function_table
[] = {
986 "glActiveTexture", reinterpret_cast<GLES2FunctionPointer
>(glActiveTexture
),
989 "glAttachShader", reinterpret_cast<GLES2FunctionPointer
>(glAttachShader
),
992 "glBindAttribLocation",
993 reinterpret_cast<GLES2FunctionPointer
>(glBindAttribLocation
),
996 "glBindBuffer", reinterpret_cast<GLES2FunctionPointer
>(glBindBuffer
),
1000 reinterpret_cast<GLES2FunctionPointer
>(glBindFramebuffer
),
1003 "glBindRenderbuffer",
1004 reinterpret_cast<GLES2FunctionPointer
>(glBindRenderbuffer
),
1007 "glBindTexture", reinterpret_cast<GLES2FunctionPointer
>(glBindTexture
),
1010 "glBlendColor", reinterpret_cast<GLES2FunctionPointer
>(glBlendColor
),
1013 "glBlendEquation", reinterpret_cast<GLES2FunctionPointer
>(glBlendEquation
),
1016 "glBlendEquationSeparate",
1017 reinterpret_cast<GLES2FunctionPointer
>(glBlendEquationSeparate
),
1020 "glBlendFunc", reinterpret_cast<GLES2FunctionPointer
>(glBlendFunc
),
1023 "glBlendFuncSeparate",
1024 reinterpret_cast<GLES2FunctionPointer
>(glBlendFuncSeparate
),
1027 "glBufferData", reinterpret_cast<GLES2FunctionPointer
>(glBufferData
),
1030 "glBufferSubData", reinterpret_cast<GLES2FunctionPointer
>(glBufferSubData
),
1033 "glCheckFramebufferStatus",
1034 reinterpret_cast<GLES2FunctionPointer
>(glCheckFramebufferStatus
),
1037 "glClear", reinterpret_cast<GLES2FunctionPointer
>(glClear
),
1040 "glClearColor", reinterpret_cast<GLES2FunctionPointer
>(glClearColor
),
1043 "glClearDepthf", reinterpret_cast<GLES2FunctionPointer
>(glClearDepthf
),
1046 "glClearStencil", reinterpret_cast<GLES2FunctionPointer
>(glClearStencil
),
1049 "glColorMask", reinterpret_cast<GLES2FunctionPointer
>(glColorMask
),
1052 "glCompileShader", reinterpret_cast<GLES2FunctionPointer
>(glCompileShader
),
1055 "glCompressedTexImage2D",
1056 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexImage2D
),
1059 "glCompressedTexSubImage2D",
1060 reinterpret_cast<GLES2FunctionPointer
>(glCompressedTexSubImage2D
),
1064 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexImage2D
),
1067 "glCopyTexSubImage2D",
1068 reinterpret_cast<GLES2FunctionPointer
>(glCopyTexSubImage2D
),
1071 "glCreateProgram", reinterpret_cast<GLES2FunctionPointer
>(glCreateProgram
),
1074 "glCreateShader", reinterpret_cast<GLES2FunctionPointer
>(glCreateShader
),
1077 "glCullFace", reinterpret_cast<GLES2FunctionPointer
>(glCullFace
),
1080 "glDeleteBuffers", reinterpret_cast<GLES2FunctionPointer
>(glDeleteBuffers
),
1083 "glDeleteFramebuffers",
1084 reinterpret_cast<GLES2FunctionPointer
>(glDeleteFramebuffers
),
1087 "glDeleteProgram", reinterpret_cast<GLES2FunctionPointer
>(glDeleteProgram
),
1090 "glDeleteRenderbuffers",
1091 reinterpret_cast<GLES2FunctionPointer
>(glDeleteRenderbuffers
),
1094 "glDeleteShader", reinterpret_cast<GLES2FunctionPointer
>(glDeleteShader
),
1098 reinterpret_cast<GLES2FunctionPointer
>(glDeleteTextures
),
1101 "glDepthFunc", reinterpret_cast<GLES2FunctionPointer
>(glDepthFunc
),
1104 "glDepthMask", reinterpret_cast<GLES2FunctionPointer
>(glDepthMask
),
1107 "glDepthRangef", reinterpret_cast<GLES2FunctionPointer
>(glDepthRangef
),
1110 "glDetachShader", reinterpret_cast<GLES2FunctionPointer
>(glDetachShader
),
1113 "glDisable", reinterpret_cast<GLES2FunctionPointer
>(glDisable
),
1116 "glDisableVertexAttribArray",
1117 reinterpret_cast<GLES2FunctionPointer
>(glDisableVertexAttribArray
),
1120 "glDrawArrays", reinterpret_cast<GLES2FunctionPointer
>(glDrawArrays
),
1123 "glDrawElements", reinterpret_cast<GLES2FunctionPointer
>(glDrawElements
),
1126 "glEnable", reinterpret_cast<GLES2FunctionPointer
>(glEnable
),
1129 "glEnableVertexAttribArray",
1130 reinterpret_cast<GLES2FunctionPointer
>(glEnableVertexAttribArray
),
1133 "glFinish", reinterpret_cast<GLES2FunctionPointer
>(glFinish
),
1136 "glFlush", reinterpret_cast<GLES2FunctionPointer
>(glFlush
),
1139 "glFramebufferRenderbuffer",
1140 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferRenderbuffer
),
1143 "glFramebufferTexture2D",
1144 reinterpret_cast<GLES2FunctionPointer
>(glFramebufferTexture2D
),
1147 "glFrontFace", reinterpret_cast<GLES2FunctionPointer
>(glFrontFace
),
1150 "glGenBuffers", reinterpret_cast<GLES2FunctionPointer
>(glGenBuffers
),
1154 reinterpret_cast<GLES2FunctionPointer
>(glGenerateMipmap
),
1157 "glGenFramebuffers",
1158 reinterpret_cast<GLES2FunctionPointer
>(glGenFramebuffers
),
1161 "glGenRenderbuffers",
1162 reinterpret_cast<GLES2FunctionPointer
>(glGenRenderbuffers
),
1165 "glGenTextures", reinterpret_cast<GLES2FunctionPointer
>(glGenTextures
),
1168 "glGetActiveAttrib",
1169 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveAttrib
),
1172 "glGetActiveUniform",
1173 reinterpret_cast<GLES2FunctionPointer
>(glGetActiveUniform
),
1176 "glGetAttachedShaders",
1177 reinterpret_cast<GLES2FunctionPointer
>(glGetAttachedShaders
),
1180 "glGetAttribLocation",
1181 reinterpret_cast<GLES2FunctionPointer
>(glGetAttribLocation
),
1184 "glGetBooleanv", reinterpret_cast<GLES2FunctionPointer
>(glGetBooleanv
),
1187 "glGetBufferParameteriv",
1188 reinterpret_cast<GLES2FunctionPointer
>(glGetBufferParameteriv
),
1191 "glGetError", reinterpret_cast<GLES2FunctionPointer
>(glGetError
),
1194 "glGetFloatv", reinterpret_cast<GLES2FunctionPointer
>(glGetFloatv
),
1197 "glGetFramebufferAttachmentParameteriv",
1198 reinterpret_cast<GLES2FunctionPointer
>(
1199 glGetFramebufferAttachmentParameteriv
),
1202 "glGetIntegerv", reinterpret_cast<GLES2FunctionPointer
>(glGetIntegerv
),
1205 "glGetProgramiv", reinterpret_cast<GLES2FunctionPointer
>(glGetProgramiv
),
1208 "glGetProgramInfoLog",
1209 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoLog
),
1212 "glGetRenderbufferParameteriv",
1213 reinterpret_cast<GLES2FunctionPointer
>(glGetRenderbufferParameteriv
),
1216 "glGetShaderiv", reinterpret_cast<GLES2FunctionPointer
>(glGetShaderiv
),
1219 "glGetShaderInfoLog",
1220 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderInfoLog
),
1223 "glGetShaderPrecisionFormat",
1224 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderPrecisionFormat
),
1227 "glGetShaderSource",
1228 reinterpret_cast<GLES2FunctionPointer
>(glGetShaderSource
),
1231 "glGetString", reinterpret_cast<GLES2FunctionPointer
>(glGetString
),
1234 "glGetTexParameterfv",
1235 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameterfv
),
1238 "glGetTexParameteriv",
1239 reinterpret_cast<GLES2FunctionPointer
>(glGetTexParameteriv
),
1242 "glGetUniformfv", reinterpret_cast<GLES2FunctionPointer
>(glGetUniformfv
),
1245 "glGetUniformiv", reinterpret_cast<GLES2FunctionPointer
>(glGetUniformiv
),
1248 "glGetUniformLocation",
1249 reinterpret_cast<GLES2FunctionPointer
>(glGetUniformLocation
),
1252 "glGetVertexAttribfv",
1253 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribfv
),
1256 "glGetVertexAttribiv",
1257 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribiv
),
1260 "glGetVertexAttribPointerv",
1261 reinterpret_cast<GLES2FunctionPointer
>(glGetVertexAttribPointerv
),
1264 "glHint", reinterpret_cast<GLES2FunctionPointer
>(glHint
),
1267 "glIsBuffer", reinterpret_cast<GLES2FunctionPointer
>(glIsBuffer
),
1270 "glIsEnabled", reinterpret_cast<GLES2FunctionPointer
>(glIsEnabled
),
1273 "glIsFramebuffer", reinterpret_cast<GLES2FunctionPointer
>(glIsFramebuffer
),
1276 "glIsProgram", reinterpret_cast<GLES2FunctionPointer
>(glIsProgram
),
1280 reinterpret_cast<GLES2FunctionPointer
>(glIsRenderbuffer
),
1283 "glIsShader", reinterpret_cast<GLES2FunctionPointer
>(glIsShader
),
1286 "glIsTexture", reinterpret_cast<GLES2FunctionPointer
>(glIsTexture
),
1289 "glLineWidth", reinterpret_cast<GLES2FunctionPointer
>(glLineWidth
),
1292 "glLinkProgram", reinterpret_cast<GLES2FunctionPointer
>(glLinkProgram
),
1295 "glPixelStorei", reinterpret_cast<GLES2FunctionPointer
>(glPixelStorei
),
1298 "glPolygonOffset", reinterpret_cast<GLES2FunctionPointer
>(glPolygonOffset
),
1301 "glReadPixels", reinterpret_cast<GLES2FunctionPointer
>(glReadPixels
),
1304 "glReleaseShaderCompiler",
1305 reinterpret_cast<GLES2FunctionPointer
>(glReleaseShaderCompiler
),
1308 "glRenderbufferStorage",
1309 reinterpret_cast<GLES2FunctionPointer
>(glRenderbufferStorage
),
1313 reinterpret_cast<GLES2FunctionPointer
>(glSampleCoverage
),
1316 "glScissor", reinterpret_cast<GLES2FunctionPointer
>(glScissor
),
1319 "glShaderBinary", reinterpret_cast<GLES2FunctionPointer
>(glShaderBinary
),
1322 "glShaderSource", reinterpret_cast<GLES2FunctionPointer
>(glShaderSource
),
1325 "glShallowFinishCHROMIUM",
1326 reinterpret_cast<GLES2FunctionPointer
>(glShallowFinishCHROMIUM
),
1329 "glShallowFlushCHROMIUM",
1330 reinterpret_cast<GLES2FunctionPointer
>(glShallowFlushCHROMIUM
),
1333 "glStencilFunc", reinterpret_cast<GLES2FunctionPointer
>(glStencilFunc
),
1336 "glStencilFuncSeparate",
1337 reinterpret_cast<GLES2FunctionPointer
>(glStencilFuncSeparate
),
1340 "glStencilMask", reinterpret_cast<GLES2FunctionPointer
>(glStencilMask
),
1343 "glStencilMaskSeparate",
1344 reinterpret_cast<GLES2FunctionPointer
>(glStencilMaskSeparate
),
1347 "glStencilOp", reinterpret_cast<GLES2FunctionPointer
>(glStencilOp
),
1350 "glStencilOpSeparate",
1351 reinterpret_cast<GLES2FunctionPointer
>(glStencilOpSeparate
),
1354 "glTexImage2D", reinterpret_cast<GLES2FunctionPointer
>(glTexImage2D
),
1357 "glTexParameterf", reinterpret_cast<GLES2FunctionPointer
>(glTexParameterf
),
1361 reinterpret_cast<GLES2FunctionPointer
>(glTexParameterfv
),
1364 "glTexParameteri", reinterpret_cast<GLES2FunctionPointer
>(glTexParameteri
),
1368 reinterpret_cast<GLES2FunctionPointer
>(glTexParameteriv
),
1371 "glTexSubImage2D", reinterpret_cast<GLES2FunctionPointer
>(glTexSubImage2D
),
1374 "glUniform1f", reinterpret_cast<GLES2FunctionPointer
>(glUniform1f
),
1377 "glUniform1fv", reinterpret_cast<GLES2FunctionPointer
>(glUniform1fv
),
1380 "glUniform1i", reinterpret_cast<GLES2FunctionPointer
>(glUniform1i
),
1383 "glUniform1iv", reinterpret_cast<GLES2FunctionPointer
>(glUniform1iv
),
1386 "glUniform2f", reinterpret_cast<GLES2FunctionPointer
>(glUniform2f
),
1389 "glUniform2fv", reinterpret_cast<GLES2FunctionPointer
>(glUniform2fv
),
1392 "glUniform2i", reinterpret_cast<GLES2FunctionPointer
>(glUniform2i
),
1395 "glUniform2iv", reinterpret_cast<GLES2FunctionPointer
>(glUniform2iv
),
1398 "glUniform3f", reinterpret_cast<GLES2FunctionPointer
>(glUniform3f
),
1401 "glUniform3fv", reinterpret_cast<GLES2FunctionPointer
>(glUniform3fv
),
1404 "glUniform3i", reinterpret_cast<GLES2FunctionPointer
>(glUniform3i
),
1407 "glUniform3iv", reinterpret_cast<GLES2FunctionPointer
>(glUniform3iv
),
1410 "glUniform4f", reinterpret_cast<GLES2FunctionPointer
>(glUniform4f
),
1413 "glUniform4fv", reinterpret_cast<GLES2FunctionPointer
>(glUniform4fv
),
1416 "glUniform4i", reinterpret_cast<GLES2FunctionPointer
>(glUniform4i
),
1419 "glUniform4iv", reinterpret_cast<GLES2FunctionPointer
>(glUniform4iv
),
1422 "glUniformMatrix2fv",
1423 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix2fv
),
1426 "glUniformMatrix3fv",
1427 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix3fv
),
1430 "glUniformMatrix4fv",
1431 reinterpret_cast<GLES2FunctionPointer
>(glUniformMatrix4fv
),
1434 "glUseProgram", reinterpret_cast<GLES2FunctionPointer
>(glUseProgram
),
1437 "glValidateProgram",
1438 reinterpret_cast<GLES2FunctionPointer
>(glValidateProgram
),
1442 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1f
),
1445 "glVertexAttrib1fv",
1446 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib1fv
),
1450 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2f
),
1453 "glVertexAttrib2fv",
1454 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib2fv
),
1458 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3f
),
1461 "glVertexAttrib3fv",
1462 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib3fv
),
1466 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4f
),
1469 "glVertexAttrib4fv",
1470 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttrib4fv
),
1473 "glVertexAttribPointer",
1474 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribPointer
),
1477 "glViewport", reinterpret_cast<GLES2FunctionPointer
>(glViewport
),
1480 "glBlitFramebufferCHROMIUM",
1481 reinterpret_cast<GLES2FunctionPointer
>(glBlitFramebufferCHROMIUM
),
1484 "glRenderbufferStorageMultisampleCHROMIUM",
1485 reinterpret_cast<GLES2FunctionPointer
>(
1486 glRenderbufferStorageMultisampleCHROMIUM
),
1489 "glRenderbufferStorageMultisampleEXT",
1490 reinterpret_cast<GLES2FunctionPointer
>(
1491 glRenderbufferStorageMultisampleEXT
),
1494 "glFramebufferTexture2DMultisampleEXT",
1495 reinterpret_cast<GLES2FunctionPointer
>(
1496 glFramebufferTexture2DMultisampleEXT
),
1499 "glTexStorage2DEXT",
1500 reinterpret_cast<GLES2FunctionPointer
>(glTexStorage2DEXT
),
1503 "glGenQueriesEXT", reinterpret_cast<GLES2FunctionPointer
>(glGenQueriesEXT
),
1506 "glDeleteQueriesEXT",
1507 reinterpret_cast<GLES2FunctionPointer
>(glDeleteQueriesEXT
),
1510 "glIsQueryEXT", reinterpret_cast<GLES2FunctionPointer
>(glIsQueryEXT
),
1513 "glBeginQueryEXT", reinterpret_cast<GLES2FunctionPointer
>(glBeginQueryEXT
),
1516 "glEndQueryEXT", reinterpret_cast<GLES2FunctionPointer
>(glEndQueryEXT
),
1519 "glGetQueryivEXT", reinterpret_cast<GLES2FunctionPointer
>(glGetQueryivEXT
),
1522 "glGetQueryObjectuivEXT",
1523 reinterpret_cast<GLES2FunctionPointer
>(glGetQueryObjectuivEXT
),
1526 "glInsertEventMarkerEXT",
1527 reinterpret_cast<GLES2FunctionPointer
>(glInsertEventMarkerEXT
),
1530 "glPushGroupMarkerEXT",
1531 reinterpret_cast<GLES2FunctionPointer
>(glPushGroupMarkerEXT
),
1534 "glPopGroupMarkerEXT",
1535 reinterpret_cast<GLES2FunctionPointer
>(glPopGroupMarkerEXT
),
1538 "glGenVertexArraysOES",
1539 reinterpret_cast<GLES2FunctionPointer
>(glGenVertexArraysOES
),
1542 "glDeleteVertexArraysOES",
1543 reinterpret_cast<GLES2FunctionPointer
>(glDeleteVertexArraysOES
),
1546 "glIsVertexArrayOES",
1547 reinterpret_cast<GLES2FunctionPointer
>(glIsVertexArrayOES
),
1550 "glBindVertexArrayOES",
1551 reinterpret_cast<GLES2FunctionPointer
>(glBindVertexArrayOES
),
1554 "glSwapBuffers", reinterpret_cast<GLES2FunctionPointer
>(glSwapBuffers
),
1557 "glGetMaxValueInBufferCHROMIUM",
1558 reinterpret_cast<GLES2FunctionPointer
>(glGetMaxValueInBufferCHROMIUM
),
1561 "glGenSharedIdsCHROMIUM",
1562 reinterpret_cast<GLES2FunctionPointer
>(glGenSharedIdsCHROMIUM
),
1565 "glDeleteSharedIdsCHROMIUM",
1566 reinterpret_cast<GLES2FunctionPointer
>(glDeleteSharedIdsCHROMIUM
),
1569 "glRegisterSharedIdsCHROMIUM",
1570 reinterpret_cast<GLES2FunctionPointer
>(glRegisterSharedIdsCHROMIUM
),
1573 "glEnableFeatureCHROMIUM",
1574 reinterpret_cast<GLES2FunctionPointer
>(glEnableFeatureCHROMIUM
),
1577 "glMapBufferCHROMIUM",
1578 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferCHROMIUM
),
1581 "glUnmapBufferCHROMIUM",
1582 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferCHROMIUM
),
1585 "glMapImageCHROMIUM",
1586 reinterpret_cast<GLES2FunctionPointer
>(glMapImageCHROMIUM
),
1589 "glUnmapImageCHROMIUM",
1590 reinterpret_cast<GLES2FunctionPointer
>(glUnmapImageCHROMIUM
),
1593 "glMapBufferSubDataCHROMIUM",
1594 reinterpret_cast<GLES2FunctionPointer
>(glMapBufferSubDataCHROMIUM
),
1597 "glUnmapBufferSubDataCHROMIUM",
1598 reinterpret_cast<GLES2FunctionPointer
>(glUnmapBufferSubDataCHROMIUM
),
1601 "glMapTexSubImage2DCHROMIUM",
1602 reinterpret_cast<GLES2FunctionPointer
>(glMapTexSubImage2DCHROMIUM
),
1605 "glUnmapTexSubImage2DCHROMIUM",
1606 reinterpret_cast<GLES2FunctionPointer
>(glUnmapTexSubImage2DCHROMIUM
),
1610 reinterpret_cast<GLES2FunctionPointer
>(glResizeCHROMIUM
),
1613 "glGetRequestableExtensionsCHROMIUM",
1614 reinterpret_cast<GLES2FunctionPointer
>(glGetRequestableExtensionsCHROMIUM
),
1617 "glRequestExtensionCHROMIUM",
1618 reinterpret_cast<GLES2FunctionPointer
>(glRequestExtensionCHROMIUM
),
1621 "glRateLimitOffscreenContextCHROMIUM",
1622 reinterpret_cast<GLES2FunctionPointer
>(
1623 glRateLimitOffscreenContextCHROMIUM
),
1626 "glGetMultipleIntegervCHROMIUM",
1627 reinterpret_cast<GLES2FunctionPointer
>(glGetMultipleIntegervCHROMIUM
),
1630 "glGetProgramInfoCHROMIUM",
1631 reinterpret_cast<GLES2FunctionPointer
>(glGetProgramInfoCHROMIUM
),
1634 "glCreateStreamTextureCHROMIUM",
1635 reinterpret_cast<GLES2FunctionPointer
>(glCreateStreamTextureCHROMIUM
),
1638 "glCreateImageCHROMIUM",
1639 reinterpret_cast<GLES2FunctionPointer
>(glCreateImageCHROMIUM
),
1642 "glDestroyImageCHROMIUM",
1643 reinterpret_cast<GLES2FunctionPointer
>(glDestroyImageCHROMIUM
),
1646 "glGetImageParameterivCHROMIUM",
1647 reinterpret_cast<GLES2FunctionPointer
>(glGetImageParameterivCHROMIUM
),
1650 "glGetTranslatedShaderSourceANGLE",
1651 reinterpret_cast<GLES2FunctionPointer
>(glGetTranslatedShaderSourceANGLE
),
1654 "glPostSubBufferCHROMIUM",
1655 reinterpret_cast<GLES2FunctionPointer
>(glPostSubBufferCHROMIUM
),
1658 "glTexImageIOSurface2DCHROMIUM",
1659 reinterpret_cast<GLES2FunctionPointer
>(glTexImageIOSurface2DCHROMIUM
),
1662 "glCopyTextureCHROMIUM",
1663 reinterpret_cast<GLES2FunctionPointer
>(glCopyTextureCHROMIUM
),
1666 "glDrawArraysInstancedANGLE",
1667 reinterpret_cast<GLES2FunctionPointer
>(glDrawArraysInstancedANGLE
),
1670 "glDrawElementsInstancedANGLE",
1671 reinterpret_cast<GLES2FunctionPointer
>(glDrawElementsInstancedANGLE
),
1674 "glVertexAttribDivisorANGLE",
1675 reinterpret_cast<GLES2FunctionPointer
>(glVertexAttribDivisorANGLE
),
1678 "glGenMailboxCHROMIUM",
1679 reinterpret_cast<GLES2FunctionPointer
>(glGenMailboxCHROMIUM
),
1682 "glProduceTextureCHROMIUM",
1683 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureCHROMIUM
),
1686 "glProduceTextureDirectCHROMIUM",
1687 reinterpret_cast<GLES2FunctionPointer
>(glProduceTextureDirectCHROMIUM
),
1690 "glConsumeTextureCHROMIUM",
1691 reinterpret_cast<GLES2FunctionPointer
>(glConsumeTextureCHROMIUM
),
1694 "glCreateAndConsumeTextureCHROMIUM",
1695 reinterpret_cast<GLES2FunctionPointer
>(glCreateAndConsumeTextureCHROMIUM
),
1698 "glBindUniformLocationCHROMIUM",
1699 reinterpret_cast<GLES2FunctionPointer
>(glBindUniformLocationCHROMIUM
),
1702 "glBindTexImage2DCHROMIUM",
1703 reinterpret_cast<GLES2FunctionPointer
>(glBindTexImage2DCHROMIUM
),
1706 "glReleaseTexImage2DCHROMIUM",
1707 reinterpret_cast<GLES2FunctionPointer
>(glReleaseTexImage2DCHROMIUM
),
1710 "glTraceBeginCHROMIUM",
1711 reinterpret_cast<GLES2FunctionPointer
>(glTraceBeginCHROMIUM
),
1714 "glTraceEndCHROMIUM",
1715 reinterpret_cast<GLES2FunctionPointer
>(glTraceEndCHROMIUM
),
1718 "glAsyncTexSubImage2DCHROMIUM",
1719 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexSubImage2DCHROMIUM
),
1722 "glAsyncTexImage2DCHROMIUM",
1723 reinterpret_cast<GLES2FunctionPointer
>(glAsyncTexImage2DCHROMIUM
),
1726 "glWaitAsyncTexImage2DCHROMIUM",
1727 reinterpret_cast<GLES2FunctionPointer
>(glWaitAsyncTexImage2DCHROMIUM
),
1730 "glWaitAllAsyncTexImage2DCHROMIUM",
1731 reinterpret_cast<GLES2FunctionPointer
>(glWaitAllAsyncTexImage2DCHROMIUM
),
1734 "glDiscardFramebufferEXT",
1735 reinterpret_cast<GLES2FunctionPointer
>(glDiscardFramebufferEXT
),
1738 "glLoseContextCHROMIUM",
1739 reinterpret_cast<GLES2FunctionPointer
>(glLoseContextCHROMIUM
),
1742 "glInsertSyncPointCHROMIUM",
1743 reinterpret_cast<GLES2FunctionPointer
>(glInsertSyncPointCHROMIUM
),
1746 "glWaitSyncPointCHROMIUM",
1747 reinterpret_cast<GLES2FunctionPointer
>(glWaitSyncPointCHROMIUM
),
1751 reinterpret_cast<GLES2FunctionPointer
>(glDrawBuffersEXT
),
1754 "glDiscardBackbufferCHROMIUM",
1755 reinterpret_cast<GLES2FunctionPointer
>(glDiscardBackbufferCHROMIUM
),
1758 "glScheduleOverlayPlaneCHROMIUM",
1759 reinterpret_cast<GLES2FunctionPointer
>(glScheduleOverlayPlaneCHROMIUM
),
1762 "glMatrixLoadfCHROMIUM",
1763 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadfCHROMIUM
),
1766 "glMatrixLoadIdentityCHROMIUM",
1767 reinterpret_cast<GLES2FunctionPointer
>(glMatrixLoadIdentityCHROMIUM
),
1774 } // namespace gles2
1775 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_