Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / gpu / command_buffer / client / gles2_c_lib_autogen.h
blobb1181ae19982bc6d1dd6706bcc42523e05df06c5
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
9 // DO NOT EDIT!
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,
37 GLclampf green,
38 GLclampf blue,
39 GLclampf alpha) {
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,
52 GLenum dstRGB,
53 GLenum srcAlpha,
54 GLenum dstAlpha) {
55 gles2::GetGLContext()->BlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
57 void GLES2BufferData(GLenum target,
58 GLsizeiptr size,
59 const void* data,
60 GLenum usage) {
61 gles2::GetGLContext()->BufferData(target, size, data, usage);
63 void GLES2BufferSubData(GLenum target,
64 GLintptr offset,
65 GLsizeiptr size,
66 const void* data) {
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,
76 GLclampf green,
77 GLclampf blue,
78 GLclampf alpha) {
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,
88 GLboolean green,
89 GLboolean blue,
90 GLboolean alpha) {
91 gles2::GetGLContext()->ColorMask(red, green, blue, alpha);
93 void GLES2CompileShader(GLuint shader) {
94 gles2::GetGLContext()->CompileShader(shader);
96 void GLES2CompressedTexImage2D(GLenum target,
97 GLint level,
98 GLenum internalformat,
99 GLsizei width,
100 GLsizei height,
101 GLint border,
102 GLsizei imageSize,
103 const void* data) {
104 gles2::GetGLContext()->CompressedTexImage2D(
105 target, level, internalformat, width, height, border, imageSize, data);
107 void GLES2CompressedTexSubImage2D(GLenum target,
108 GLint level,
109 GLint xoffset,
110 GLint yoffset,
111 GLsizei width,
112 GLsizei height,
113 GLenum format,
114 GLsizei imageSize,
115 const void* data) {
116 gles2::GetGLContext()->CompressedTexSubImage2D(
117 target, level, xoffset, yoffset, width, height, format, imageSize, data);
119 void GLES2CopyTexImage2D(GLenum target,
120 GLint level,
121 GLenum internalformat,
122 GLint x,
123 GLint y,
124 GLsizei width,
125 GLsizei height,
126 GLint border) {
127 gles2::GetGLContext()->CopyTexImage2D(target, level, internalformat, x, y,
128 width, height, border);
130 void GLES2CopyTexSubImage2D(GLenum target,
131 GLint level,
132 GLint xoffset,
133 GLint yoffset,
134 GLint x,
135 GLint y,
136 GLsizei width,
137 GLsizei height) {
138 gles2::GetGLContext()->CopyTexSubImage2D(target, level, xoffset, yoffset, x,
139 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,
190 GLsizei count,
191 GLenum type,
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);
201 void GLES2Finish() {
202 gles2::GetGLContext()->Finish();
204 void GLES2Flush() {
205 gles2::GetGLContext()->Flush();
207 void GLES2FramebufferRenderbuffer(GLenum target,
208 GLenum attachment,
209 GLenum renderbuffertarget,
210 GLuint renderbuffer) {
211 gles2::GetGLContext()->FramebufferRenderbuffer(
212 target, attachment, renderbuffertarget, renderbuffer);
214 void GLES2FramebufferTexture2D(GLenum target,
215 GLenum attachment,
216 GLenum textarget,
217 GLuint texture,
218 GLint level) {
219 gles2::GetGLContext()->FramebufferTexture2D(target, attachment, textarget,
220 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,
241 GLuint index,
242 GLsizei bufsize,
243 GLsizei* length,
244 GLint* size,
245 GLenum* type,
246 char* name) {
247 gles2::GetGLContext()->GetActiveAttrib(program, index, bufsize, length, size,
248 type, name);
250 void GLES2GetActiveUniform(GLuint program,
251 GLuint index,
252 GLsizei bufsize,
253 GLsizei* length,
254 GLint* size,
255 GLenum* type,
256 char* name) {
257 gles2::GetGLContext()->GetActiveUniform(program, index, bufsize, length, size,
258 type, name);
260 void GLES2GetAttachedShaders(GLuint program,
261 GLsizei maxcount,
262 GLsizei* count,
263 GLuint* shaders) {
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,
282 GLenum attachment,
283 GLenum pname,
284 GLint* params) {
285 gles2::GetGLContext()->GetFramebufferAttachmentParameteriv(target, attachment,
286 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,
295 GLsizei bufsize,
296 GLsizei* length,
297 char* infolog) {
298 gles2::GetGLContext()->GetProgramInfoLog(program, bufsize, length, infolog);
300 void GLES2GetRenderbufferParameteriv(GLenum target,
301 GLenum pname,
302 GLint* params) {
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,
309 GLsizei bufsize,
310 GLsizei* length,
311 char* infolog) {
312 gles2::GetGLContext()->GetShaderInfoLog(shader, bufsize, length, infolog);
314 void GLES2GetShaderPrecisionFormat(GLenum shadertype,
315 GLenum precisiontype,
316 GLint* range,
317 GLint* precision) {
318 gles2::GetGLContext()->GetShaderPrecisionFormat(shadertype, precisiontype,
319 range, precision);
321 void GLES2GetShaderSource(GLuint shader,
322 GLsizei bufsize,
323 GLsizei* length,
324 char* source) {
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,
391 GLint y,
392 GLsizei width,
393 GLsizei height,
394 GLenum format,
395 GLenum type,
396 void* pixels) {
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,
404 GLsizei width,
405 GLsizei height) {
406 gles2::GetGLContext()->RenderbufferStorage(target, internalformat, width,
407 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,
417 GLenum binaryformat,
418 const void* binary,
419 GLsizei length) {
420 gles2::GetGLContext()->ShaderBinary(n, shaders, binaryformat, binary, length);
422 void GLES2ShaderSource(GLuint shader,
423 GLsizei count,
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,
438 GLenum func,
439 GLint ref,
440 GLuint mask) {
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,
453 GLenum fail,
454 GLenum zfail,
455 GLenum zpass) {
456 gles2::GetGLContext()->StencilOpSeparate(face, fail, zfail, zpass);
458 void GLES2TexImage2D(GLenum target,
459 GLint level,
460 GLint internalformat,
461 GLsizei width,
462 GLsizei height,
463 GLint border,
464 GLenum format,
465 GLenum type,
466 const void* pixels) {
467 gles2::GetGLContext()->TexImage2D(target, level, internalformat, width,
468 height, border, format, type, pixels);
470 void GLES2TexParameterf(GLenum target, GLenum pname, GLfloat param) {
471 gles2::GetGLContext()->TexParameterf(target, pname, param);
473 void GLES2TexParameterfv(GLenum target, GLenum pname, const GLfloat* params) {
474 gles2::GetGLContext()->TexParameterfv(target, pname, params);
476 void GLES2TexParameteri(GLenum target, GLenum pname, GLint param) {
477 gles2::GetGLContext()->TexParameteri(target, pname, param);
479 void GLES2TexParameteriv(GLenum target, GLenum pname, const GLint* params) {
480 gles2::GetGLContext()->TexParameteriv(target, pname, params);
482 void GLES2TexSubImage2D(GLenum target,
483 GLint level,
484 GLint xoffset,
485 GLint yoffset,
486 GLsizei width,
487 GLsizei height,
488 GLenum format,
489 GLenum type,
490 const void* pixels) {
491 gles2::GetGLContext()->TexSubImage2D(target, level, xoffset, yoffset, width,
492 height, format, type, pixels);
494 void GLES2Uniform1f(GLint location, GLfloat x) {
495 gles2::GetGLContext()->Uniform1f(location, x);
497 void GLES2Uniform1fv(GLint location, GLsizei count, const GLfloat* v) {
498 gles2::GetGLContext()->Uniform1fv(location, count, v);
500 void GLES2Uniform1i(GLint location, GLint x) {
501 gles2::GetGLContext()->Uniform1i(location, x);
503 void GLES2Uniform1iv(GLint location, GLsizei count, const GLint* v) {
504 gles2::GetGLContext()->Uniform1iv(location, count, v);
506 void GLES2Uniform2f(GLint location, GLfloat x, GLfloat y) {
507 gles2::GetGLContext()->Uniform2f(location, x, y);
509 void GLES2Uniform2fv(GLint location, GLsizei count, const GLfloat* v) {
510 gles2::GetGLContext()->Uniform2fv(location, count, v);
512 void GLES2Uniform2i(GLint location, GLint x, GLint y) {
513 gles2::GetGLContext()->Uniform2i(location, x, y);
515 void GLES2Uniform2iv(GLint location, GLsizei count, const GLint* v) {
516 gles2::GetGLContext()->Uniform2iv(location, count, v);
518 void GLES2Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
519 gles2::GetGLContext()->Uniform3f(location, x, y, z);
521 void GLES2Uniform3fv(GLint location, GLsizei count, const GLfloat* v) {
522 gles2::GetGLContext()->Uniform3fv(location, count, v);
524 void GLES2Uniform3i(GLint location, GLint x, GLint y, GLint z) {
525 gles2::GetGLContext()->Uniform3i(location, x, y, z);
527 void GLES2Uniform3iv(GLint location, GLsizei count, const GLint* v) {
528 gles2::GetGLContext()->Uniform3iv(location, count, v);
530 void GLES2Uniform4f(GLint location,
531 GLfloat x,
532 GLfloat y,
533 GLfloat z,
534 GLfloat w) {
535 gles2::GetGLContext()->Uniform4f(location, x, y, z, w);
537 void GLES2Uniform4fv(GLint location, GLsizei count, const GLfloat* v) {
538 gles2::GetGLContext()->Uniform4fv(location, count, v);
540 void GLES2Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
541 gles2::GetGLContext()->Uniform4i(location, x, y, z, w);
543 void GLES2Uniform4iv(GLint location, GLsizei count, const GLint* v) {
544 gles2::GetGLContext()->Uniform4iv(location, count, v);
546 void GLES2UniformMatrix2fv(GLint location,
547 GLsizei count,
548 GLboolean transpose,
549 const GLfloat* value) {
550 gles2::GetGLContext()->UniformMatrix2fv(location, count, transpose, value);
552 void GLES2UniformMatrix3fv(GLint location,
553 GLsizei count,
554 GLboolean transpose,
555 const GLfloat* value) {
556 gles2::GetGLContext()->UniformMatrix3fv(location, count, transpose, value);
558 void GLES2UniformMatrix4fv(GLint location,
559 GLsizei count,
560 GLboolean transpose,
561 const GLfloat* value) {
562 gles2::GetGLContext()->UniformMatrix4fv(location, count, transpose, value);
564 void GLES2UseProgram(GLuint program) {
565 gles2::GetGLContext()->UseProgram(program);
567 void GLES2ValidateProgram(GLuint program) {
568 gles2::GetGLContext()->ValidateProgram(program);
570 void GLES2VertexAttrib1f(GLuint indx, GLfloat x) {
571 gles2::GetGLContext()->VertexAttrib1f(indx, x);
573 void GLES2VertexAttrib1fv(GLuint indx, const GLfloat* values) {
574 gles2::GetGLContext()->VertexAttrib1fv(indx, values);
576 void GLES2VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
577 gles2::GetGLContext()->VertexAttrib2f(indx, x, y);
579 void GLES2VertexAttrib2fv(GLuint indx, const GLfloat* values) {
580 gles2::GetGLContext()->VertexAttrib2fv(indx, values);
582 void GLES2VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
583 gles2::GetGLContext()->VertexAttrib3f(indx, x, y, z);
585 void GLES2VertexAttrib3fv(GLuint indx, const GLfloat* values) {
586 gles2::GetGLContext()->VertexAttrib3fv(indx, values);
588 void GLES2VertexAttrib4f(GLuint indx,
589 GLfloat x,
590 GLfloat y,
591 GLfloat z,
592 GLfloat w) {
593 gles2::GetGLContext()->VertexAttrib4f(indx, x, y, z, w);
595 void GLES2VertexAttrib4fv(GLuint indx, const GLfloat* values) {
596 gles2::GetGLContext()->VertexAttrib4fv(indx, values);
598 void GLES2VertexAttribPointer(GLuint indx,
599 GLint size,
600 GLenum type,
601 GLboolean normalized,
602 GLsizei stride,
603 const void* ptr) {
604 gles2::GetGLContext()->VertexAttribPointer(indx, size, type, normalized,
605 stride, ptr);
607 void GLES2Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
608 gles2::GetGLContext()->Viewport(x, y, width, height);
610 void GLES2BlitFramebufferCHROMIUM(GLint srcX0,
611 GLint srcY0,
612 GLint srcX1,
613 GLint srcY1,
614 GLint dstX0,
615 GLint dstY0,
616 GLint dstX1,
617 GLint dstY1,
618 GLbitfield mask,
619 GLenum filter) {
620 gles2::GetGLContext()->BlitFramebufferCHROMIUM(
621 srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
623 void GLES2RenderbufferStorageMultisampleCHROMIUM(GLenum target,
624 GLsizei samples,
625 GLenum internalformat,
626 GLsizei width,
627 GLsizei height) {
628 gles2::GetGLContext()->RenderbufferStorageMultisampleCHROMIUM(
629 target, samples, internalformat, width, height);
631 void GLES2RenderbufferStorageMultisampleEXT(GLenum target,
632 GLsizei samples,
633 GLenum internalformat,
634 GLsizei width,
635 GLsizei height) {
636 gles2::GetGLContext()->RenderbufferStorageMultisampleEXT(
637 target, samples, internalformat, width, height);
639 void GLES2FramebufferTexture2DMultisampleEXT(GLenum target,
640 GLenum attachment,
641 GLenum textarget,
642 GLuint texture,
643 GLint level,
644 GLsizei samples) {
645 gles2::GetGLContext()->FramebufferTexture2DMultisampleEXT(
646 target, attachment, textarget, texture, level, samples);
648 void GLES2TexStorage2DEXT(GLenum target,
649 GLsizei levels,
650 GLenum internalFormat,
651 GLsizei width,
652 GLsizei height) {
653 gles2::GetGLContext()->TexStorage2DEXT(target, levels, internalFormat, width,
654 height);
656 void GLES2GenQueriesEXT(GLsizei n, GLuint* queries) {
657 gles2::GetGLContext()->GenQueriesEXT(n, queries);
659 void GLES2DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
660 gles2::GetGLContext()->DeleteQueriesEXT(n, queries);
662 GLboolean GLES2IsQueryEXT(GLuint id) {
663 return gles2::GetGLContext()->IsQueryEXT(id);
665 void GLES2BeginQueryEXT(GLenum target, GLuint id) {
666 gles2::GetGLContext()->BeginQueryEXT(target, id);
668 void GLES2EndQueryEXT(GLenum target) {
669 gles2::GetGLContext()->EndQueryEXT(target);
671 void GLES2GetQueryivEXT(GLenum target, GLenum pname, GLint* params) {
672 gles2::GetGLContext()->GetQueryivEXT(target, pname, params);
674 void GLES2GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) {
675 gles2::GetGLContext()->GetQueryObjectuivEXT(id, pname, params);
677 void GLES2InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
678 gles2::GetGLContext()->InsertEventMarkerEXT(length, marker);
680 void GLES2PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
681 gles2::GetGLContext()->PushGroupMarkerEXT(length, marker);
683 void GLES2PopGroupMarkerEXT() {
684 gles2::GetGLContext()->PopGroupMarkerEXT();
686 void GLES2GenVertexArraysOES(GLsizei n, GLuint* arrays) {
687 gles2::GetGLContext()->GenVertexArraysOES(n, arrays);
689 void GLES2DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
690 gles2::GetGLContext()->DeleteVertexArraysOES(n, arrays);
692 GLboolean GLES2IsVertexArrayOES(GLuint array) {
693 return gles2::GetGLContext()->IsVertexArrayOES(array);
695 void GLES2BindVertexArrayOES(GLuint array) {
696 gles2::GetGLContext()->BindVertexArrayOES(array);
698 void GLES2SwapBuffers() {
699 gles2::GetGLContext()->SwapBuffers();
701 GLuint GLES2GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
702 GLsizei count,
703 GLenum type,
704 GLuint offset) {
705 return gles2::GetGLContext()->GetMaxValueInBufferCHROMIUM(buffer_id, count,
706 type, offset);
708 GLboolean GLES2EnableFeatureCHROMIUM(const char* feature) {
709 return gles2::GetGLContext()->EnableFeatureCHROMIUM(feature);
711 void* GLES2MapBufferCHROMIUM(GLuint target, GLenum access) {
712 return gles2::GetGLContext()->MapBufferCHROMIUM(target, access);
714 GLboolean GLES2UnmapBufferCHROMIUM(GLuint target) {
715 return gles2::GetGLContext()->UnmapBufferCHROMIUM(target);
717 void* GLES2MapBufferSubDataCHROMIUM(GLuint target,
718 GLintptr offset,
719 GLsizeiptr size,
720 GLenum access) {
721 return gles2::GetGLContext()->MapBufferSubDataCHROMIUM(target, offset, size,
722 access);
724 void GLES2UnmapBufferSubDataCHROMIUM(const void* mem) {
725 gles2::GetGLContext()->UnmapBufferSubDataCHROMIUM(mem);
727 void* GLES2MapTexSubImage2DCHROMIUM(GLenum target,
728 GLint level,
729 GLint xoffset,
730 GLint yoffset,
731 GLsizei width,
732 GLsizei height,
733 GLenum format,
734 GLenum type,
735 GLenum access) {
736 return gles2::GetGLContext()->MapTexSubImage2DCHROMIUM(
737 target, level, xoffset, yoffset, width, height, format, type, access);
739 void GLES2UnmapTexSubImage2DCHROMIUM(const void* mem) {
740 gles2::GetGLContext()->UnmapTexSubImage2DCHROMIUM(mem);
742 void GLES2ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) {
743 gles2::GetGLContext()->ResizeCHROMIUM(width, height, scale_factor);
745 const GLchar* GLES2GetRequestableExtensionsCHROMIUM() {
746 return gles2::GetGLContext()->GetRequestableExtensionsCHROMIUM();
748 void GLES2RequestExtensionCHROMIUM(const char* extension) {
749 gles2::GetGLContext()->RequestExtensionCHROMIUM(extension);
751 void GLES2RateLimitOffscreenContextCHROMIUM() {
752 gles2::GetGLContext()->RateLimitOffscreenContextCHROMIUM();
754 void GLES2GetProgramInfoCHROMIUM(GLuint program,
755 GLsizei bufsize,
756 GLsizei* size,
757 void* info) {
758 gles2::GetGLContext()->GetProgramInfoCHROMIUM(program, bufsize, size, info);
760 GLuint GLES2CreateStreamTextureCHROMIUM(GLuint texture) {
761 return gles2::GetGLContext()->CreateStreamTextureCHROMIUM(texture);
763 GLuint GLES2CreateImageCHROMIUM(ClientBuffer buffer,
764 GLsizei width,
765 GLsizei height,
766 GLenum internalformat) {
767 return gles2::GetGLContext()->CreateImageCHROMIUM(buffer, width, height,
768 internalformat);
770 void GLES2DestroyImageCHROMIUM(GLuint image_id) {
771 gles2::GetGLContext()->DestroyImageCHROMIUM(image_id);
773 GLuint GLES2CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
774 GLsizei height,
775 GLenum internalformat,
776 GLenum usage) {
777 return gles2::GetGLContext()->CreateGpuMemoryBufferImageCHROMIUM(
778 width, height, internalformat, usage);
780 void GLES2GetTranslatedShaderSourceANGLE(GLuint shader,
781 GLsizei bufsize,
782 GLsizei* length,
783 char* source) {
784 gles2::GetGLContext()->GetTranslatedShaderSourceANGLE(shader, bufsize, length,
785 source);
787 void GLES2PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
788 gles2::GetGLContext()->PostSubBufferCHROMIUM(x, y, width, height);
790 void GLES2TexImageIOSurface2DCHROMIUM(GLenum target,
791 GLsizei width,
792 GLsizei height,
793 GLuint ioSurfaceId,
794 GLuint plane) {
795 gles2::GetGLContext()->TexImageIOSurface2DCHROMIUM(target, width, height,
796 ioSurfaceId, plane);
798 void GLES2CopyTextureCHROMIUM(GLenum target,
799 GLenum source_id,
800 GLenum dest_id,
801 GLint level,
802 GLint internalformat,
803 GLenum dest_type) {
804 gles2::GetGLContext()->CopyTextureCHROMIUM(target, source_id, dest_id, level,
805 internalformat, dest_type);
807 void GLES2DrawArraysInstancedANGLE(GLenum mode,
808 GLint first,
809 GLsizei count,
810 GLsizei primcount) {
811 gles2::GetGLContext()->DrawArraysInstancedANGLE(mode, first, count,
812 primcount);
814 void GLES2DrawElementsInstancedANGLE(GLenum mode,
815 GLsizei count,
816 GLenum type,
817 const void* indices,
818 GLsizei primcount) {
819 gles2::GetGLContext()->DrawElementsInstancedANGLE(mode, count, type, indices,
820 primcount);
822 void GLES2VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
823 gles2::GetGLContext()->VertexAttribDivisorANGLE(index, divisor);
825 void GLES2GenMailboxCHROMIUM(GLbyte* mailbox) {
826 gles2::GetGLContext()->GenMailboxCHROMIUM(mailbox);
828 void GLES2ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
829 gles2::GetGLContext()->ProduceTextureCHROMIUM(target, mailbox);
831 void GLES2ProduceTextureDirectCHROMIUM(GLuint texture,
832 GLenum target,
833 const GLbyte* mailbox) {
834 gles2::GetGLContext()->ProduceTextureDirectCHROMIUM(texture, target, mailbox);
836 void GLES2ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) {
837 gles2::GetGLContext()->ConsumeTextureCHROMIUM(target, mailbox);
839 GLuint GLES2CreateAndConsumeTextureCHROMIUM(GLenum target,
840 const GLbyte* mailbox) {
841 return gles2::GetGLContext()->CreateAndConsumeTextureCHROMIUM(target,
842 mailbox);
844 void GLES2BindUniformLocationCHROMIUM(GLuint program,
845 GLint location,
846 const char* name) {
847 gles2::GetGLContext()->BindUniformLocationCHROMIUM(program, location, name);
849 void GLES2GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) {
850 gles2::GetGLContext()->GenValuebuffersCHROMIUM(n, buffers);
852 void GLES2DeleteValuebuffersCHROMIUM(GLsizei n, const GLuint* valuebuffers) {
853 gles2::GetGLContext()->DeleteValuebuffersCHROMIUM(n, valuebuffers);
855 GLboolean GLES2IsValuebufferCHROMIUM(GLuint valuebuffer) {
856 return gles2::GetGLContext()->IsValuebufferCHROMIUM(valuebuffer);
858 void GLES2BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
859 gles2::GetGLContext()->BindValuebufferCHROMIUM(target, valuebuffer);
861 void GLES2SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
862 gles2::GetGLContext()->SubscribeValueCHROMIUM(target, subscription);
864 void GLES2PopulateSubscribedValuesCHROMIUM(GLenum target) {
865 gles2::GetGLContext()->PopulateSubscribedValuesCHROMIUM(target);
867 void GLES2UniformValuebufferCHROMIUM(GLint location,
868 GLenum target,
869 GLenum subscription) {
870 gles2::GetGLContext()->UniformValuebufferCHROMIUM(location, target,
871 subscription);
873 void GLES2BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
874 gles2::GetGLContext()->BindTexImage2DCHROMIUM(target, imageId);
876 void GLES2ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
877 gles2::GetGLContext()->ReleaseTexImage2DCHROMIUM(target, imageId);
879 void GLES2TraceBeginCHROMIUM(const char* name) {
880 gles2::GetGLContext()->TraceBeginCHROMIUM(name);
882 void GLES2TraceEndCHROMIUM() {
883 gles2::GetGLContext()->TraceEndCHROMIUM();
885 void GLES2AsyncTexSubImage2DCHROMIUM(GLenum target,
886 GLint level,
887 GLint xoffset,
888 GLint yoffset,
889 GLsizei width,
890 GLsizei height,
891 GLenum format,
892 GLenum type,
893 const void* data) {
894 gles2::GetGLContext()->AsyncTexSubImage2DCHROMIUM(
895 target, level, xoffset, yoffset, width, height, format, type, data);
897 void GLES2AsyncTexImage2DCHROMIUM(GLenum target,
898 GLint level,
899 GLenum internalformat,
900 GLsizei width,
901 GLsizei height,
902 GLint border,
903 GLenum format,
904 GLenum type,
905 const void* pixels) {
906 gles2::GetGLContext()->AsyncTexImage2DCHROMIUM(target, level, internalformat,
907 width, height, border, format,
908 type, pixels);
910 void GLES2WaitAsyncTexImage2DCHROMIUM(GLenum target) {
911 gles2::GetGLContext()->WaitAsyncTexImage2DCHROMIUM(target);
913 void GLES2WaitAllAsyncTexImage2DCHROMIUM() {
914 gles2::GetGLContext()->WaitAllAsyncTexImage2DCHROMIUM();
916 void GLES2DiscardFramebufferEXT(GLenum target,
917 GLsizei count,
918 const GLenum* attachments) {
919 gles2::GetGLContext()->DiscardFramebufferEXT(target, count, attachments);
921 void GLES2LoseContextCHROMIUM(GLenum current, GLenum other) {
922 gles2::GetGLContext()->LoseContextCHROMIUM(current, other);
924 GLuint GLES2InsertSyncPointCHROMIUM() {
925 return gles2::GetGLContext()->InsertSyncPointCHROMIUM();
927 void GLES2WaitSyncPointCHROMIUM(GLuint sync_point) {
928 gles2::GetGLContext()->WaitSyncPointCHROMIUM(sync_point);
930 void GLES2DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
931 gles2::GetGLContext()->DrawBuffersEXT(count, bufs);
933 void GLES2DiscardBackbufferCHROMIUM() {
934 gles2::GetGLContext()->DiscardBackbufferCHROMIUM();
936 void GLES2ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
937 GLenum plane_transform,
938 GLuint overlay_texture_id,
939 GLint bounds_x,
940 GLint bounds_y,
941 GLint bounds_width,
942 GLint bounds_height,
943 GLfloat uv_x,
944 GLfloat uv_y,
945 GLfloat uv_width,
946 GLfloat uv_height) {
947 gles2::GetGLContext()->ScheduleOverlayPlaneCHROMIUM(
948 plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
949 bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
951 void GLES2MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
952 gles2::GetGLContext()->MatrixLoadfCHROMIUM(matrixMode, m);
954 void GLES2MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
955 gles2::GetGLContext()->MatrixLoadIdentityCHROMIUM(matrixMode);
957 void GLES2BlendBarrierKHR() {
958 gles2::GetGLContext()->BlendBarrierKHR();
961 namespace gles2 {
963 extern const NameToFunc g_gles2_function_table[] = {
965 "glActiveTexture",
966 reinterpret_cast<GLES2FunctionPointer>(glActiveTexture),
969 "glAttachShader",
970 reinterpret_cast<GLES2FunctionPointer>(glAttachShader),
973 "glBindAttribLocation",
974 reinterpret_cast<GLES2FunctionPointer>(glBindAttribLocation),
977 "glBindBuffer",
978 reinterpret_cast<GLES2FunctionPointer>(glBindBuffer),
981 "glBindFramebuffer",
982 reinterpret_cast<GLES2FunctionPointer>(glBindFramebuffer),
985 "glBindRenderbuffer",
986 reinterpret_cast<GLES2FunctionPointer>(glBindRenderbuffer),
989 "glBindTexture",
990 reinterpret_cast<GLES2FunctionPointer>(glBindTexture),
993 "glBlendColor",
994 reinterpret_cast<GLES2FunctionPointer>(glBlendColor),
997 "glBlendEquation",
998 reinterpret_cast<GLES2FunctionPointer>(glBlendEquation),
1001 "glBlendEquationSeparate",
1002 reinterpret_cast<GLES2FunctionPointer>(glBlendEquationSeparate),
1005 "glBlendFunc",
1006 reinterpret_cast<GLES2FunctionPointer>(glBlendFunc),
1009 "glBlendFuncSeparate",
1010 reinterpret_cast<GLES2FunctionPointer>(glBlendFuncSeparate),
1013 "glBufferData",
1014 reinterpret_cast<GLES2FunctionPointer>(glBufferData),
1017 "glBufferSubData",
1018 reinterpret_cast<GLES2FunctionPointer>(glBufferSubData),
1021 "glCheckFramebufferStatus",
1022 reinterpret_cast<GLES2FunctionPointer>(glCheckFramebufferStatus),
1025 "glClear",
1026 reinterpret_cast<GLES2FunctionPointer>(glClear),
1029 "glClearColor",
1030 reinterpret_cast<GLES2FunctionPointer>(glClearColor),
1033 "glClearDepthf",
1034 reinterpret_cast<GLES2FunctionPointer>(glClearDepthf),
1037 "glClearStencil",
1038 reinterpret_cast<GLES2FunctionPointer>(glClearStencil),
1041 "glColorMask",
1042 reinterpret_cast<GLES2FunctionPointer>(glColorMask),
1045 "glCompileShader",
1046 reinterpret_cast<GLES2FunctionPointer>(glCompileShader),
1049 "glCompressedTexImage2D",
1050 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexImage2D),
1053 "glCompressedTexSubImage2D",
1054 reinterpret_cast<GLES2FunctionPointer>(glCompressedTexSubImage2D),
1057 "glCopyTexImage2D",
1058 reinterpret_cast<GLES2FunctionPointer>(glCopyTexImage2D),
1061 "glCopyTexSubImage2D",
1062 reinterpret_cast<GLES2FunctionPointer>(glCopyTexSubImage2D),
1065 "glCreateProgram",
1066 reinterpret_cast<GLES2FunctionPointer>(glCreateProgram),
1069 "glCreateShader",
1070 reinterpret_cast<GLES2FunctionPointer>(glCreateShader),
1073 "glCullFace",
1074 reinterpret_cast<GLES2FunctionPointer>(glCullFace),
1077 "glDeleteBuffers",
1078 reinterpret_cast<GLES2FunctionPointer>(glDeleteBuffers),
1081 "glDeleteFramebuffers",
1082 reinterpret_cast<GLES2FunctionPointer>(glDeleteFramebuffers),
1085 "glDeleteProgram",
1086 reinterpret_cast<GLES2FunctionPointer>(glDeleteProgram),
1089 "glDeleteRenderbuffers",
1090 reinterpret_cast<GLES2FunctionPointer>(glDeleteRenderbuffers),
1093 "glDeleteShader",
1094 reinterpret_cast<GLES2FunctionPointer>(glDeleteShader),
1097 "glDeleteTextures",
1098 reinterpret_cast<GLES2FunctionPointer>(glDeleteTextures),
1101 "glDepthFunc",
1102 reinterpret_cast<GLES2FunctionPointer>(glDepthFunc),
1105 "glDepthMask",
1106 reinterpret_cast<GLES2FunctionPointer>(glDepthMask),
1109 "glDepthRangef",
1110 reinterpret_cast<GLES2FunctionPointer>(glDepthRangef),
1113 "glDetachShader",
1114 reinterpret_cast<GLES2FunctionPointer>(glDetachShader),
1117 "glDisable",
1118 reinterpret_cast<GLES2FunctionPointer>(glDisable),
1121 "glDisableVertexAttribArray",
1122 reinterpret_cast<GLES2FunctionPointer>(glDisableVertexAttribArray),
1125 "glDrawArrays",
1126 reinterpret_cast<GLES2FunctionPointer>(glDrawArrays),
1129 "glDrawElements",
1130 reinterpret_cast<GLES2FunctionPointer>(glDrawElements),
1133 "glEnable",
1134 reinterpret_cast<GLES2FunctionPointer>(glEnable),
1137 "glEnableVertexAttribArray",
1138 reinterpret_cast<GLES2FunctionPointer>(glEnableVertexAttribArray),
1141 "glFinish",
1142 reinterpret_cast<GLES2FunctionPointer>(glFinish),
1145 "glFlush",
1146 reinterpret_cast<GLES2FunctionPointer>(glFlush),
1149 "glFramebufferRenderbuffer",
1150 reinterpret_cast<GLES2FunctionPointer>(glFramebufferRenderbuffer),
1153 "glFramebufferTexture2D",
1154 reinterpret_cast<GLES2FunctionPointer>(glFramebufferTexture2D),
1157 "glFrontFace",
1158 reinterpret_cast<GLES2FunctionPointer>(glFrontFace),
1161 "glGenBuffers",
1162 reinterpret_cast<GLES2FunctionPointer>(glGenBuffers),
1165 "glGenerateMipmap",
1166 reinterpret_cast<GLES2FunctionPointer>(glGenerateMipmap),
1169 "glGenFramebuffers",
1170 reinterpret_cast<GLES2FunctionPointer>(glGenFramebuffers),
1173 "glGenRenderbuffers",
1174 reinterpret_cast<GLES2FunctionPointer>(glGenRenderbuffers),
1177 "glGenTextures",
1178 reinterpret_cast<GLES2FunctionPointer>(glGenTextures),
1181 "glGetActiveAttrib",
1182 reinterpret_cast<GLES2FunctionPointer>(glGetActiveAttrib),
1185 "glGetActiveUniform",
1186 reinterpret_cast<GLES2FunctionPointer>(glGetActiveUniform),
1189 "glGetAttachedShaders",
1190 reinterpret_cast<GLES2FunctionPointer>(glGetAttachedShaders),
1193 "glGetAttribLocation",
1194 reinterpret_cast<GLES2FunctionPointer>(glGetAttribLocation),
1197 "glGetBooleanv",
1198 reinterpret_cast<GLES2FunctionPointer>(glGetBooleanv),
1201 "glGetBufferParameteriv",
1202 reinterpret_cast<GLES2FunctionPointer>(glGetBufferParameteriv),
1205 "glGetError",
1206 reinterpret_cast<GLES2FunctionPointer>(glGetError),
1209 "glGetFloatv",
1210 reinterpret_cast<GLES2FunctionPointer>(glGetFloatv),
1213 "glGetFramebufferAttachmentParameteriv",
1214 reinterpret_cast<GLES2FunctionPointer>(
1215 glGetFramebufferAttachmentParameteriv),
1218 "glGetIntegerv",
1219 reinterpret_cast<GLES2FunctionPointer>(glGetIntegerv),
1222 "glGetProgramiv",
1223 reinterpret_cast<GLES2FunctionPointer>(glGetProgramiv),
1226 "glGetProgramInfoLog",
1227 reinterpret_cast<GLES2FunctionPointer>(glGetProgramInfoLog),
1230 "glGetRenderbufferParameteriv",
1231 reinterpret_cast<GLES2FunctionPointer>(glGetRenderbufferParameteriv),
1234 "glGetShaderiv",
1235 reinterpret_cast<GLES2FunctionPointer>(glGetShaderiv),
1238 "glGetShaderInfoLog",
1239 reinterpret_cast<GLES2FunctionPointer>(glGetShaderInfoLog),
1242 "glGetShaderPrecisionFormat",
1243 reinterpret_cast<GLES2FunctionPointer>(glGetShaderPrecisionFormat),
1246 "glGetShaderSource",
1247 reinterpret_cast<GLES2FunctionPointer>(glGetShaderSource),
1250 "glGetString",
1251 reinterpret_cast<GLES2FunctionPointer>(glGetString),
1254 "glGetTexParameterfv",
1255 reinterpret_cast<GLES2FunctionPointer>(glGetTexParameterfv),
1258 "glGetTexParameteriv",
1259 reinterpret_cast<GLES2FunctionPointer>(glGetTexParameteriv),
1262 "glGetUniformfv",
1263 reinterpret_cast<GLES2FunctionPointer>(glGetUniformfv),
1266 "glGetUniformiv",
1267 reinterpret_cast<GLES2FunctionPointer>(glGetUniformiv),
1270 "glGetUniformLocation",
1271 reinterpret_cast<GLES2FunctionPointer>(glGetUniformLocation),
1274 "glGetVertexAttribfv",
1275 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribfv),
1278 "glGetVertexAttribiv",
1279 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribiv),
1282 "glGetVertexAttribPointerv",
1283 reinterpret_cast<GLES2FunctionPointer>(glGetVertexAttribPointerv),
1286 "glHint",
1287 reinterpret_cast<GLES2FunctionPointer>(glHint),
1290 "glIsBuffer",
1291 reinterpret_cast<GLES2FunctionPointer>(glIsBuffer),
1294 "glIsEnabled",
1295 reinterpret_cast<GLES2FunctionPointer>(glIsEnabled),
1298 "glIsFramebuffer",
1299 reinterpret_cast<GLES2FunctionPointer>(glIsFramebuffer),
1302 "glIsProgram",
1303 reinterpret_cast<GLES2FunctionPointer>(glIsProgram),
1306 "glIsRenderbuffer",
1307 reinterpret_cast<GLES2FunctionPointer>(glIsRenderbuffer),
1310 "glIsShader",
1311 reinterpret_cast<GLES2FunctionPointer>(glIsShader),
1314 "glIsTexture",
1315 reinterpret_cast<GLES2FunctionPointer>(glIsTexture),
1318 "glLineWidth",
1319 reinterpret_cast<GLES2FunctionPointer>(glLineWidth),
1322 "glLinkProgram",
1323 reinterpret_cast<GLES2FunctionPointer>(glLinkProgram),
1326 "glPixelStorei",
1327 reinterpret_cast<GLES2FunctionPointer>(glPixelStorei),
1330 "glPolygonOffset",
1331 reinterpret_cast<GLES2FunctionPointer>(glPolygonOffset),
1334 "glReadPixels",
1335 reinterpret_cast<GLES2FunctionPointer>(glReadPixels),
1338 "glReleaseShaderCompiler",
1339 reinterpret_cast<GLES2FunctionPointer>(glReleaseShaderCompiler),
1342 "glRenderbufferStorage",
1343 reinterpret_cast<GLES2FunctionPointer>(glRenderbufferStorage),
1346 "glSampleCoverage",
1347 reinterpret_cast<GLES2FunctionPointer>(glSampleCoverage),
1350 "glScissor",
1351 reinterpret_cast<GLES2FunctionPointer>(glScissor),
1354 "glShaderBinary",
1355 reinterpret_cast<GLES2FunctionPointer>(glShaderBinary),
1358 "glShaderSource",
1359 reinterpret_cast<GLES2FunctionPointer>(glShaderSource),
1362 "glShallowFinishCHROMIUM",
1363 reinterpret_cast<GLES2FunctionPointer>(glShallowFinishCHROMIUM),
1366 "glShallowFlushCHROMIUM",
1367 reinterpret_cast<GLES2FunctionPointer>(glShallowFlushCHROMIUM),
1370 "glStencilFunc",
1371 reinterpret_cast<GLES2FunctionPointer>(glStencilFunc),
1374 "glStencilFuncSeparate",
1375 reinterpret_cast<GLES2FunctionPointer>(glStencilFuncSeparate),
1378 "glStencilMask",
1379 reinterpret_cast<GLES2FunctionPointer>(glStencilMask),
1382 "glStencilMaskSeparate",
1383 reinterpret_cast<GLES2FunctionPointer>(glStencilMaskSeparate),
1386 "glStencilOp",
1387 reinterpret_cast<GLES2FunctionPointer>(glStencilOp),
1390 "glStencilOpSeparate",
1391 reinterpret_cast<GLES2FunctionPointer>(glStencilOpSeparate),
1394 "glTexImage2D",
1395 reinterpret_cast<GLES2FunctionPointer>(glTexImage2D),
1398 "glTexParameterf",
1399 reinterpret_cast<GLES2FunctionPointer>(glTexParameterf),
1402 "glTexParameterfv",
1403 reinterpret_cast<GLES2FunctionPointer>(glTexParameterfv),
1406 "glTexParameteri",
1407 reinterpret_cast<GLES2FunctionPointer>(glTexParameteri),
1410 "glTexParameteriv",
1411 reinterpret_cast<GLES2FunctionPointer>(glTexParameteriv),
1414 "glTexSubImage2D",
1415 reinterpret_cast<GLES2FunctionPointer>(glTexSubImage2D),
1418 "glUniform1f",
1419 reinterpret_cast<GLES2FunctionPointer>(glUniform1f),
1422 "glUniform1fv",
1423 reinterpret_cast<GLES2FunctionPointer>(glUniform1fv),
1426 "glUniform1i",
1427 reinterpret_cast<GLES2FunctionPointer>(glUniform1i),
1430 "glUniform1iv",
1431 reinterpret_cast<GLES2FunctionPointer>(glUniform1iv),
1434 "glUniform2f",
1435 reinterpret_cast<GLES2FunctionPointer>(glUniform2f),
1438 "glUniform2fv",
1439 reinterpret_cast<GLES2FunctionPointer>(glUniform2fv),
1442 "glUniform2i",
1443 reinterpret_cast<GLES2FunctionPointer>(glUniform2i),
1446 "glUniform2iv",
1447 reinterpret_cast<GLES2FunctionPointer>(glUniform2iv),
1450 "glUniform3f",
1451 reinterpret_cast<GLES2FunctionPointer>(glUniform3f),
1454 "glUniform3fv",
1455 reinterpret_cast<GLES2FunctionPointer>(glUniform3fv),
1458 "glUniform3i",
1459 reinterpret_cast<GLES2FunctionPointer>(glUniform3i),
1462 "glUniform3iv",
1463 reinterpret_cast<GLES2FunctionPointer>(glUniform3iv),
1466 "glUniform4f",
1467 reinterpret_cast<GLES2FunctionPointer>(glUniform4f),
1470 "glUniform4fv",
1471 reinterpret_cast<GLES2FunctionPointer>(glUniform4fv),
1474 "glUniform4i",
1475 reinterpret_cast<GLES2FunctionPointer>(glUniform4i),
1478 "glUniform4iv",
1479 reinterpret_cast<GLES2FunctionPointer>(glUniform4iv),
1482 "glUniformMatrix2fv",
1483 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix2fv),
1486 "glUniformMatrix3fv",
1487 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix3fv),
1490 "glUniformMatrix4fv",
1491 reinterpret_cast<GLES2FunctionPointer>(glUniformMatrix4fv),
1494 "glUseProgram",
1495 reinterpret_cast<GLES2FunctionPointer>(glUseProgram),
1498 "glValidateProgram",
1499 reinterpret_cast<GLES2FunctionPointer>(glValidateProgram),
1502 "glVertexAttrib1f",
1503 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib1f),
1506 "glVertexAttrib1fv",
1507 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib1fv),
1510 "glVertexAttrib2f",
1511 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib2f),
1514 "glVertexAttrib2fv",
1515 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib2fv),
1518 "glVertexAttrib3f",
1519 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib3f),
1522 "glVertexAttrib3fv",
1523 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib3fv),
1526 "glVertexAttrib4f",
1527 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib4f),
1530 "glVertexAttrib4fv",
1531 reinterpret_cast<GLES2FunctionPointer>(glVertexAttrib4fv),
1534 "glVertexAttribPointer",
1535 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribPointer),
1538 "glViewport",
1539 reinterpret_cast<GLES2FunctionPointer>(glViewport),
1542 "glBlitFramebufferCHROMIUM",
1543 reinterpret_cast<GLES2FunctionPointer>(glBlitFramebufferCHROMIUM),
1546 "glRenderbufferStorageMultisampleCHROMIUM",
1547 reinterpret_cast<GLES2FunctionPointer>(
1548 glRenderbufferStorageMultisampleCHROMIUM),
1551 "glRenderbufferStorageMultisampleEXT",
1552 reinterpret_cast<GLES2FunctionPointer>(
1553 glRenderbufferStorageMultisampleEXT),
1556 "glFramebufferTexture2DMultisampleEXT",
1557 reinterpret_cast<GLES2FunctionPointer>(
1558 glFramebufferTexture2DMultisampleEXT),
1561 "glTexStorage2DEXT",
1562 reinterpret_cast<GLES2FunctionPointer>(glTexStorage2DEXT),
1565 "glGenQueriesEXT",
1566 reinterpret_cast<GLES2FunctionPointer>(glGenQueriesEXT),
1569 "glDeleteQueriesEXT",
1570 reinterpret_cast<GLES2FunctionPointer>(glDeleteQueriesEXT),
1573 "glIsQueryEXT",
1574 reinterpret_cast<GLES2FunctionPointer>(glIsQueryEXT),
1577 "glBeginQueryEXT",
1578 reinterpret_cast<GLES2FunctionPointer>(glBeginQueryEXT),
1581 "glEndQueryEXT",
1582 reinterpret_cast<GLES2FunctionPointer>(glEndQueryEXT),
1585 "glGetQueryivEXT",
1586 reinterpret_cast<GLES2FunctionPointer>(glGetQueryivEXT),
1589 "glGetQueryObjectuivEXT",
1590 reinterpret_cast<GLES2FunctionPointer>(glGetQueryObjectuivEXT),
1593 "glInsertEventMarkerEXT",
1594 reinterpret_cast<GLES2FunctionPointer>(glInsertEventMarkerEXT),
1597 "glPushGroupMarkerEXT",
1598 reinterpret_cast<GLES2FunctionPointer>(glPushGroupMarkerEXT),
1601 "glPopGroupMarkerEXT",
1602 reinterpret_cast<GLES2FunctionPointer>(glPopGroupMarkerEXT),
1605 "glGenVertexArraysOES",
1606 reinterpret_cast<GLES2FunctionPointer>(glGenVertexArraysOES),
1609 "glDeleteVertexArraysOES",
1610 reinterpret_cast<GLES2FunctionPointer>(glDeleteVertexArraysOES),
1613 "glIsVertexArrayOES",
1614 reinterpret_cast<GLES2FunctionPointer>(glIsVertexArrayOES),
1617 "glBindVertexArrayOES",
1618 reinterpret_cast<GLES2FunctionPointer>(glBindVertexArrayOES),
1621 "glSwapBuffers",
1622 reinterpret_cast<GLES2FunctionPointer>(glSwapBuffers),
1625 "glGetMaxValueInBufferCHROMIUM",
1626 reinterpret_cast<GLES2FunctionPointer>(glGetMaxValueInBufferCHROMIUM),
1629 "glEnableFeatureCHROMIUM",
1630 reinterpret_cast<GLES2FunctionPointer>(glEnableFeatureCHROMIUM),
1633 "glMapBufferCHROMIUM",
1634 reinterpret_cast<GLES2FunctionPointer>(glMapBufferCHROMIUM),
1637 "glUnmapBufferCHROMIUM",
1638 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferCHROMIUM),
1641 "glMapBufferSubDataCHROMIUM",
1642 reinterpret_cast<GLES2FunctionPointer>(glMapBufferSubDataCHROMIUM),
1645 "glUnmapBufferSubDataCHROMIUM",
1646 reinterpret_cast<GLES2FunctionPointer>(glUnmapBufferSubDataCHROMIUM),
1649 "glMapTexSubImage2DCHROMIUM",
1650 reinterpret_cast<GLES2FunctionPointer>(glMapTexSubImage2DCHROMIUM),
1653 "glUnmapTexSubImage2DCHROMIUM",
1654 reinterpret_cast<GLES2FunctionPointer>(glUnmapTexSubImage2DCHROMIUM),
1657 "glResizeCHROMIUM",
1658 reinterpret_cast<GLES2FunctionPointer>(glResizeCHROMIUM),
1661 "glGetRequestableExtensionsCHROMIUM",
1662 reinterpret_cast<GLES2FunctionPointer>(glGetRequestableExtensionsCHROMIUM),
1665 "glRequestExtensionCHROMIUM",
1666 reinterpret_cast<GLES2FunctionPointer>(glRequestExtensionCHROMIUM),
1669 "glRateLimitOffscreenContextCHROMIUM",
1670 reinterpret_cast<GLES2FunctionPointer>(
1671 glRateLimitOffscreenContextCHROMIUM),
1674 "glGetProgramInfoCHROMIUM",
1675 reinterpret_cast<GLES2FunctionPointer>(glGetProgramInfoCHROMIUM),
1678 "glCreateStreamTextureCHROMIUM",
1679 reinterpret_cast<GLES2FunctionPointer>(glCreateStreamTextureCHROMIUM),
1682 "glCreateImageCHROMIUM",
1683 reinterpret_cast<GLES2FunctionPointer>(glCreateImageCHROMIUM),
1686 "glDestroyImageCHROMIUM",
1687 reinterpret_cast<GLES2FunctionPointer>(glDestroyImageCHROMIUM),
1690 "glCreateGpuMemoryBufferImageCHROMIUM",
1691 reinterpret_cast<GLES2FunctionPointer>(
1692 glCreateGpuMemoryBufferImageCHROMIUM),
1695 "glGetTranslatedShaderSourceANGLE",
1696 reinterpret_cast<GLES2FunctionPointer>(glGetTranslatedShaderSourceANGLE),
1699 "glPostSubBufferCHROMIUM",
1700 reinterpret_cast<GLES2FunctionPointer>(glPostSubBufferCHROMIUM),
1703 "glTexImageIOSurface2DCHROMIUM",
1704 reinterpret_cast<GLES2FunctionPointer>(glTexImageIOSurface2DCHROMIUM),
1707 "glCopyTextureCHROMIUM",
1708 reinterpret_cast<GLES2FunctionPointer>(glCopyTextureCHROMIUM),
1711 "glDrawArraysInstancedANGLE",
1712 reinterpret_cast<GLES2FunctionPointer>(glDrawArraysInstancedANGLE),
1715 "glDrawElementsInstancedANGLE",
1716 reinterpret_cast<GLES2FunctionPointer>(glDrawElementsInstancedANGLE),
1719 "glVertexAttribDivisorANGLE",
1720 reinterpret_cast<GLES2FunctionPointer>(glVertexAttribDivisorANGLE),
1723 "glGenMailboxCHROMIUM",
1724 reinterpret_cast<GLES2FunctionPointer>(glGenMailboxCHROMIUM),
1727 "glProduceTextureCHROMIUM",
1728 reinterpret_cast<GLES2FunctionPointer>(glProduceTextureCHROMIUM),
1731 "glProduceTextureDirectCHROMIUM",
1732 reinterpret_cast<GLES2FunctionPointer>(glProduceTextureDirectCHROMIUM),
1735 "glConsumeTextureCHROMIUM",
1736 reinterpret_cast<GLES2FunctionPointer>(glConsumeTextureCHROMIUM),
1739 "glCreateAndConsumeTextureCHROMIUM",
1740 reinterpret_cast<GLES2FunctionPointer>(glCreateAndConsumeTextureCHROMIUM),
1743 "glBindUniformLocationCHROMIUM",
1744 reinterpret_cast<GLES2FunctionPointer>(glBindUniformLocationCHROMIUM),
1747 "glGenValuebuffersCHROMIUM",
1748 reinterpret_cast<GLES2FunctionPointer>(glGenValuebuffersCHROMIUM),
1751 "glDeleteValuebuffersCHROMIUM",
1752 reinterpret_cast<GLES2FunctionPointer>(glDeleteValuebuffersCHROMIUM),
1755 "glIsValuebufferCHROMIUM",
1756 reinterpret_cast<GLES2FunctionPointer>(glIsValuebufferCHROMIUM),
1759 "glBindValuebufferCHROMIUM",
1760 reinterpret_cast<GLES2FunctionPointer>(glBindValuebufferCHROMIUM),
1763 "glSubscribeValueCHROMIUM",
1764 reinterpret_cast<GLES2FunctionPointer>(glSubscribeValueCHROMIUM),
1767 "glPopulateSubscribedValuesCHROMIUM",
1768 reinterpret_cast<GLES2FunctionPointer>(glPopulateSubscribedValuesCHROMIUM),
1771 "glUniformValuebufferCHROMIUM",
1772 reinterpret_cast<GLES2FunctionPointer>(glUniformValuebufferCHROMIUM),
1775 "glBindTexImage2DCHROMIUM",
1776 reinterpret_cast<GLES2FunctionPointer>(glBindTexImage2DCHROMIUM),
1779 "glReleaseTexImage2DCHROMIUM",
1780 reinterpret_cast<GLES2FunctionPointer>(glReleaseTexImage2DCHROMIUM),
1783 "glTraceBeginCHROMIUM",
1784 reinterpret_cast<GLES2FunctionPointer>(glTraceBeginCHROMIUM),
1787 "glTraceEndCHROMIUM",
1788 reinterpret_cast<GLES2FunctionPointer>(glTraceEndCHROMIUM),
1791 "glAsyncTexSubImage2DCHROMIUM",
1792 reinterpret_cast<GLES2FunctionPointer>(glAsyncTexSubImage2DCHROMIUM),
1795 "glAsyncTexImage2DCHROMIUM",
1796 reinterpret_cast<GLES2FunctionPointer>(glAsyncTexImage2DCHROMIUM),
1799 "glWaitAsyncTexImage2DCHROMIUM",
1800 reinterpret_cast<GLES2FunctionPointer>(glWaitAsyncTexImage2DCHROMIUM),
1803 "glWaitAllAsyncTexImage2DCHROMIUM",
1804 reinterpret_cast<GLES2FunctionPointer>(glWaitAllAsyncTexImage2DCHROMIUM),
1807 "glDiscardFramebufferEXT",
1808 reinterpret_cast<GLES2FunctionPointer>(glDiscardFramebufferEXT),
1811 "glLoseContextCHROMIUM",
1812 reinterpret_cast<GLES2FunctionPointer>(glLoseContextCHROMIUM),
1815 "glInsertSyncPointCHROMIUM",
1816 reinterpret_cast<GLES2FunctionPointer>(glInsertSyncPointCHROMIUM),
1819 "glWaitSyncPointCHROMIUM",
1820 reinterpret_cast<GLES2FunctionPointer>(glWaitSyncPointCHROMIUM),
1823 "glDrawBuffersEXT",
1824 reinterpret_cast<GLES2FunctionPointer>(glDrawBuffersEXT),
1827 "glDiscardBackbufferCHROMIUM",
1828 reinterpret_cast<GLES2FunctionPointer>(glDiscardBackbufferCHROMIUM),
1831 "glScheduleOverlayPlaneCHROMIUM",
1832 reinterpret_cast<GLES2FunctionPointer>(glScheduleOverlayPlaneCHROMIUM),
1835 "glMatrixLoadfCHROMIUM",
1836 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadfCHROMIUM),
1839 "glMatrixLoadIdentityCHROMIUM",
1840 reinterpret_cast<GLES2FunctionPointer>(glMatrixLoadIdentityCHROMIUM),
1843 "glBlendBarrierKHR",
1844 reinterpret_cast<GLES2FunctionPointer>(glBlendBarrierKHR),
1847 NULL,
1848 NULL,
1852 } // namespace gles2
1853 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_C_LIB_AUTOGEN_H_