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 /* From ppb_opengles2.idl modified Fri Sep 5 14:52:51 2014. */
7 #ifndef PPAPI_C_PPB_OPENGLES2_H_
8 #define PPAPI_C_PPB_OPENGLES2_H_
10 #include "ppapi/c/pp_macros.h"
11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_stdint.h"
14 #define PPB_OPENGLES2_INTERFACE_1_0 "PPB_OpenGLES2;1.0"
15 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_1_0
17 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 \
18 "PPB_OpenGLES2InstancedArrays;1.0"
19 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE \
20 PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0
22 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 \
23 "PPB_OpenGLES2FramebufferBlit;1.0"
24 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE \
25 PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0
27 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 \
28 "PPB_OpenGLES2FramebufferMultisample;1.0"
29 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE \
30 PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0
32 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 \
33 "PPB_OpenGLES2ChromiumEnableFeature;1.0"
34 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE \
35 PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0
37 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 \
38 "PPB_OpenGLES2ChromiumMapSub;1.0"
39 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE \
40 PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0
42 #define PPB_OPENGLES2_QUERY_INTERFACE_1_0 "PPB_OpenGLES2Query;1.0"
43 #define PPB_OPENGLES2_QUERY_INTERFACE PPB_OPENGLES2_QUERY_INTERFACE_1_0
45 #define PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE_1_0 \
46 "PPB_OpenGLES2VertexArrayObject;1.0"
47 #define PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE \
48 PPB_OPENGLES2_VERTEXARRAYOBJECT_INTERFACE_1_0
52 * This file is auto-generated from
53 * gpu/command_buffer/build_gles2_cmd_buffer.py
54 * It's formatted by clang-format using chromium coding style:
55 * clang-format -i -style=chromium filename
59 #include "ppapi/c/pp_resource.h"
64 typedef unsigned short GLushort;
65 typedef short GLshort;
66 typedef unsigned char GLubyte;
67 typedef unsigned int GLenum;
69 typedef unsigned char GLboolean;
70 typedef unsigned int GLbitfield;
71 typedef float GLfloat;
72 typedef float GLclampf;
73 typedef signed char GLbyte;
74 typedef unsigned int GLuint;
78 typedef long long int GLintptr;
79 typedef long long int GLsizeiptr;
81 typedef long int GLintptr;
82 typedef long int GLsizeiptr;
88 * @addtogroup Interfaces
91 struct PPB_OpenGLES2_1_0 {
92 void (*ActiveTexture)(PP_Resource context, GLenum texture);
93 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader);
94 void (*BindAttribLocation)(PP_Resource context,
98 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer);
99 void (*BindFramebuffer)(PP_Resource context,
102 void (*BindRenderbuffer)(PP_Resource context,
104 GLuint renderbuffer);
105 void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture);
106 void (*BlendColor)(PP_Resource context,
111 void (*BlendEquation)(PP_Resource context, GLenum mode);
112 void (*BlendEquationSeparate)(PP_Resource context,
115 void (*BlendFunc)(PP_Resource context, GLenum sfactor, GLenum dfactor);
116 void (*BlendFuncSeparate)(PP_Resource context,
121 void (*BufferData)(PP_Resource context,
126 void (*BufferSubData)(PP_Resource context,
131 GLenum (*CheckFramebufferStatus)(PP_Resource context, GLenum target);
132 void (*Clear)(PP_Resource context, GLbitfield mask);
133 void (*ClearColor)(PP_Resource context,
138 void (*ClearDepthf)(PP_Resource context, GLclampf depth);
139 void (*ClearStencil)(PP_Resource context, GLint s);
140 void (*ColorMask)(PP_Resource context,
145 void (*CompileShader)(PP_Resource context, GLuint shader);
146 void (*CompressedTexImage2D)(PP_Resource context,
149 GLenum internalformat,
155 void (*CompressedTexSubImage2D)(PP_Resource context,
165 void (*CopyTexImage2D)(PP_Resource context,
168 GLenum internalformat,
174 void (*CopyTexSubImage2D)(PP_Resource context,
183 GLuint (*CreateProgram)(PP_Resource context);
184 GLuint (*CreateShader)(PP_Resource context, GLenum type);
185 void (*CullFace)(PP_Resource context, GLenum mode);
186 void (*DeleteBuffers)(PP_Resource context, GLsizei n, const GLuint* buffers);
187 void (*DeleteFramebuffers)(PP_Resource context,
189 const GLuint* framebuffers);
190 void (*DeleteProgram)(PP_Resource context, GLuint program);
191 void (*DeleteRenderbuffers)(PP_Resource context,
193 const GLuint* renderbuffers);
194 void (*DeleteShader)(PP_Resource context, GLuint shader);
195 void (*DeleteTextures)(PP_Resource context,
197 const GLuint* textures);
198 void (*DepthFunc)(PP_Resource context, GLenum func);
199 void (*DepthMask)(PP_Resource context, GLboolean flag);
200 void (*DepthRangef)(PP_Resource context, GLclampf zNear, GLclampf zFar);
201 void (*DetachShader)(PP_Resource context, GLuint program, GLuint shader);
202 void (*Disable)(PP_Resource context, GLenum cap);
203 void (*DisableVertexAttribArray)(PP_Resource context, GLuint index);
204 void (*DrawArrays)(PP_Resource context,
208 void (*DrawElements)(PP_Resource context,
212 const void* indices);
213 void (*Enable)(PP_Resource context, GLenum cap);
214 void (*EnableVertexAttribArray)(PP_Resource context, GLuint index);
215 void (*Finish)(PP_Resource context);
216 void (*Flush)(PP_Resource context);
217 void (*FramebufferRenderbuffer)(PP_Resource context,
220 GLenum renderbuffertarget,
221 GLuint renderbuffer);
222 void (*FramebufferTexture2D)(PP_Resource context,
228 void (*FrontFace)(PP_Resource context, GLenum mode);
229 void (*GenBuffers)(PP_Resource context, GLsizei n, GLuint* buffers);
230 void (*GenerateMipmap)(PP_Resource context, GLenum target);
231 void (*GenFramebuffers)(PP_Resource context, GLsizei n, GLuint* framebuffers);
232 void (*GenRenderbuffers)(PP_Resource context,
234 GLuint* renderbuffers);
235 void (*GenTextures)(PP_Resource context, GLsizei n, GLuint* textures);
236 void (*GetActiveAttrib)(PP_Resource context,
244 void (*GetActiveUniform)(PP_Resource context,
252 void (*GetAttachedShaders)(PP_Resource context,
257 GLint (*GetAttribLocation)(PP_Resource context,
260 void (*GetBooleanv)(PP_Resource context, GLenum pname, GLboolean* params);
261 void (*GetBufferParameteriv)(PP_Resource context,
265 GLenum (*GetError)(PP_Resource context);
266 void (*GetFloatv)(PP_Resource context, GLenum pname, GLfloat* params);
267 void (*GetFramebufferAttachmentParameteriv)(PP_Resource context,
272 void (*GetIntegerv)(PP_Resource context, GLenum pname, GLint* params);
273 void (*GetProgramiv)(PP_Resource context,
277 void (*GetProgramInfoLog)(PP_Resource context,
282 void (*GetRenderbufferParameteriv)(PP_Resource context,
286 void (*GetShaderiv)(PP_Resource context,
290 void (*GetShaderInfoLog)(PP_Resource context,
295 void (*GetShaderPrecisionFormat)(PP_Resource context,
297 GLenum precisiontype,
300 void (*GetShaderSource)(PP_Resource context,
305 const GLubyte* (*GetString)(PP_Resource context, GLenum name);
306 void (*GetTexParameterfv)(PP_Resource context,
310 void (*GetTexParameteriv)(PP_Resource context,
314 void (*GetUniformfv)(PP_Resource context,
318 void (*GetUniformiv)(PP_Resource context,
322 GLint (*GetUniformLocation)(PP_Resource context,
325 void (*GetVertexAttribfv)(PP_Resource context,
329 void (*GetVertexAttribiv)(PP_Resource context,
333 void (*GetVertexAttribPointerv)(PP_Resource context,
337 void (*Hint)(PP_Resource context, GLenum target, GLenum mode);
338 GLboolean (*IsBuffer)(PP_Resource context, GLuint buffer);
339 GLboolean (*IsEnabled)(PP_Resource context, GLenum cap);
340 GLboolean (*IsFramebuffer)(PP_Resource context, GLuint framebuffer);
341 GLboolean (*IsProgram)(PP_Resource context, GLuint program);
342 GLboolean (*IsRenderbuffer)(PP_Resource context, GLuint renderbuffer);
343 GLboolean (*IsShader)(PP_Resource context, GLuint shader);
344 GLboolean (*IsTexture)(PP_Resource context, GLuint texture);
345 void (*LineWidth)(PP_Resource context, GLfloat width);
346 void (*LinkProgram)(PP_Resource context, GLuint program);
347 void (*PixelStorei)(PP_Resource context, GLenum pname, GLint param);
348 void (*PolygonOffset)(PP_Resource context, GLfloat factor, GLfloat units);
349 void (*ReadPixels)(PP_Resource context,
357 void (*ReleaseShaderCompiler)(PP_Resource context);
358 void (*RenderbufferStorage)(PP_Resource context,
360 GLenum internalformat,
363 void (*SampleCoverage)(PP_Resource context, GLclampf value, GLboolean invert);
364 void (*Scissor)(PP_Resource context,
369 void (*ShaderBinary)(PP_Resource context,
371 const GLuint* shaders,
375 void (*ShaderSource)(PP_Resource context,
379 const GLint* length);
380 void (*StencilFunc)(PP_Resource context, GLenum func, GLint ref, GLuint mask);
381 void (*StencilFuncSeparate)(PP_Resource context,
386 void (*StencilMask)(PP_Resource context, GLuint mask);
387 void (*StencilMaskSeparate)(PP_Resource context, GLenum face, GLuint mask);
388 void (*StencilOp)(PP_Resource context,
392 void (*StencilOpSeparate)(PP_Resource context,
397 void (*TexImage2D)(PP_Resource context,
400 GLint internalformat,
407 void (*TexParameterf)(PP_Resource context,
411 void (*TexParameterfv)(PP_Resource context,
414 const GLfloat* params);
415 void (*TexParameteri)(PP_Resource context,
419 void (*TexParameteriv)(PP_Resource context,
422 const GLint* params);
423 void (*TexSubImage2D)(PP_Resource context,
433 void (*Uniform1f)(PP_Resource context, GLint location, GLfloat x);
434 void (*Uniform1fv)(PP_Resource context,
438 void (*Uniform1i)(PP_Resource context, GLint location, GLint x);
439 void (*Uniform1iv)(PP_Resource context,
443 void (*Uniform2f)(PP_Resource context, GLint location, GLfloat x, GLfloat y);
444 void (*Uniform2fv)(PP_Resource context,
448 void (*Uniform2i)(PP_Resource context, GLint location, GLint x, GLint y);
449 void (*Uniform2iv)(PP_Resource context,
453 void (*Uniform3f)(PP_Resource context,
458 void (*Uniform3fv)(PP_Resource context,
462 void (*Uniform3i)(PP_Resource context,
467 void (*Uniform3iv)(PP_Resource context,
471 void (*Uniform4f)(PP_Resource context,
477 void (*Uniform4fv)(PP_Resource context,
481 void (*Uniform4i)(PP_Resource context,
487 void (*Uniform4iv)(PP_Resource context,
491 void (*UniformMatrix2fv)(PP_Resource context,
495 const GLfloat* value);
496 void (*UniformMatrix3fv)(PP_Resource context,
500 const GLfloat* value);
501 void (*UniformMatrix4fv)(PP_Resource context,
505 const GLfloat* value);
506 void (*UseProgram)(PP_Resource context, GLuint program);
507 void (*ValidateProgram)(PP_Resource context, GLuint program);
508 void (*VertexAttrib1f)(PP_Resource context, GLuint indx, GLfloat x);
509 void (*VertexAttrib1fv)(PP_Resource context,
511 const GLfloat* values);
512 void (*VertexAttrib2f)(PP_Resource context,
516 void (*VertexAttrib2fv)(PP_Resource context,
518 const GLfloat* values);
519 void (*VertexAttrib3f)(PP_Resource context,
524 void (*VertexAttrib3fv)(PP_Resource context,
526 const GLfloat* values);
527 void (*VertexAttrib4f)(PP_Resource context,
533 void (*VertexAttrib4fv)(PP_Resource context,
535 const GLfloat* values);
536 void (*VertexAttribPointer)(PP_Resource context,
540 GLboolean normalized,
543 void (*Viewport)(PP_Resource context,
550 struct PPB_OpenGLES2 {
551 void (*ActiveTexture)(PP_Resource context, GLenum texture);
552 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader);
553 void (*BindAttribLocation)(PP_Resource context,
557 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer);
558 void (*BindFramebuffer)(PP_Resource context,
561 void (*BindRenderbuffer)(PP_Resource context,
563 GLuint renderbuffer);
564 void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture);
565 void (*BlendColor)(PP_Resource context,
570 void (*BlendEquation)(PP_Resource context, GLenum mode);
571 void (*BlendEquationSeparate)(PP_Resource context,
574 void (*BlendFunc)(PP_Resource context, GLenum sfactor, GLenum dfactor);
575 void (*BlendFuncSeparate)(PP_Resource context,
580 void (*BufferData)(PP_Resource context,
585 void (*BufferSubData)(PP_Resource context,
590 GLenum (*CheckFramebufferStatus)(PP_Resource context, GLenum target);
591 void (*Clear)(PP_Resource context, GLbitfield mask);
592 void (*ClearColor)(PP_Resource context,
597 void (*ClearDepthf)(PP_Resource context, GLclampf depth);
598 void (*ClearStencil)(PP_Resource context, GLint s);
599 void (*ColorMask)(PP_Resource context,
604 void (*CompileShader)(PP_Resource context, GLuint shader);
605 void (*CompressedTexImage2D)(PP_Resource context,
608 GLenum internalformat,
614 void (*CompressedTexSubImage2D)(PP_Resource context,
624 void (*CopyTexImage2D)(PP_Resource context,
627 GLenum internalformat,
633 void (*CopyTexSubImage2D)(PP_Resource context,
642 GLuint (*CreateProgram)(PP_Resource context);
643 GLuint (*CreateShader)(PP_Resource context, GLenum type);
644 void (*CullFace)(PP_Resource context, GLenum mode);
645 void (*DeleteBuffers)(PP_Resource context, GLsizei n, const GLuint* buffers);
646 void (*DeleteFramebuffers)(PP_Resource context,
648 const GLuint* framebuffers);
649 void (*DeleteProgram)(PP_Resource context, GLuint program);
650 void (*DeleteRenderbuffers)(PP_Resource context,
652 const GLuint* renderbuffers);
653 void (*DeleteShader)(PP_Resource context, GLuint shader);
654 void (*DeleteTextures)(PP_Resource context,
656 const GLuint* textures);
657 void (*DepthFunc)(PP_Resource context, GLenum func);
658 void (*DepthMask)(PP_Resource context, GLboolean flag);
659 void (*DepthRangef)(PP_Resource context, GLclampf zNear, GLclampf zFar);
660 void (*DetachShader)(PP_Resource context, GLuint program, GLuint shader);
661 void (*Disable)(PP_Resource context, GLenum cap);
662 void (*DisableVertexAttribArray)(PP_Resource context, GLuint index);
663 void (*DrawArrays)(PP_Resource context,
667 void (*DrawElements)(PP_Resource context,
671 const void* indices);
672 void (*Enable)(PP_Resource context, GLenum cap);
673 void (*EnableVertexAttribArray)(PP_Resource context, GLuint index);
674 void (*Finish)(PP_Resource context);
675 void (*Flush)(PP_Resource context);
676 void (*FramebufferRenderbuffer)(PP_Resource context,
679 GLenum renderbuffertarget,
680 GLuint renderbuffer);
681 void (*FramebufferTexture2D)(PP_Resource context,
687 void (*FrontFace)(PP_Resource context, GLenum mode);
688 void (*GenBuffers)(PP_Resource context, GLsizei n, GLuint* buffers);
689 void (*GenerateMipmap)(PP_Resource context, GLenum target);
690 void (*GenFramebuffers)(PP_Resource context, GLsizei n, GLuint* framebuffers);
691 void (*GenRenderbuffers)(PP_Resource context,
693 GLuint* renderbuffers);
694 void (*GenTextures)(PP_Resource context, GLsizei n, GLuint* textures);
695 void (*GetActiveAttrib)(PP_Resource context,
703 void (*GetActiveUniform)(PP_Resource context,
711 void (*GetAttachedShaders)(PP_Resource context,
716 GLint (*GetAttribLocation)(PP_Resource context,
719 void (*GetBooleanv)(PP_Resource context, GLenum pname, GLboolean* params);
720 void (*GetBufferParameteriv)(PP_Resource context,
724 GLenum (*GetError)(PP_Resource context);
725 void (*GetFloatv)(PP_Resource context, GLenum pname, GLfloat* params);
726 void (*GetFramebufferAttachmentParameteriv)(PP_Resource context,
731 void (*GetIntegerv)(PP_Resource context, GLenum pname, GLint* params);
732 void (*GetProgramiv)(PP_Resource context,
736 void (*GetProgramInfoLog)(PP_Resource context,
741 void (*GetRenderbufferParameteriv)(PP_Resource context,
745 void (*GetShaderiv)(PP_Resource context,
749 void (*GetShaderInfoLog)(PP_Resource context,
754 void (*GetShaderPrecisionFormat)(PP_Resource context,
756 GLenum precisiontype,
759 void (*GetShaderSource)(PP_Resource context,
764 const GLubyte* (*GetString)(PP_Resource context, GLenum name);
765 void (*GetTexParameterfv)(PP_Resource context,
769 void (*GetTexParameteriv)(PP_Resource context,
773 void (*GetUniformfv)(PP_Resource context,
777 void (*GetUniformiv)(PP_Resource context,
781 GLint (*GetUniformLocation)(PP_Resource context,
784 void (*GetVertexAttribfv)(PP_Resource context,
788 void (*GetVertexAttribiv)(PP_Resource context,
792 void (*GetVertexAttribPointerv)(PP_Resource context,
796 void (*Hint)(PP_Resource context, GLenum target, GLenum mode);
797 GLboolean (*IsBuffer)(PP_Resource context, GLuint buffer);
798 GLboolean (*IsEnabled)(PP_Resource context, GLenum cap);
799 GLboolean (*IsFramebuffer)(PP_Resource context, GLuint framebuffer);
800 GLboolean (*IsProgram)(PP_Resource context, GLuint program);
801 GLboolean (*IsRenderbuffer)(PP_Resource context, GLuint renderbuffer);
802 GLboolean (*IsShader)(PP_Resource context, GLuint shader);
803 GLboolean (*IsTexture)(PP_Resource context, GLuint texture);
804 void (*LineWidth)(PP_Resource context, GLfloat width);
805 void (*LinkProgram)(PP_Resource context, GLuint program);
806 void (*PixelStorei)(PP_Resource context, GLenum pname, GLint param);
807 void (*PolygonOffset)(PP_Resource context, GLfloat factor, GLfloat units);
808 void (*ReadPixels)(PP_Resource context,
816 void (*ReleaseShaderCompiler)(PP_Resource context);
817 void (*RenderbufferStorage)(PP_Resource context,
819 GLenum internalformat,
822 void (*SampleCoverage)(PP_Resource context, GLclampf value, GLboolean invert);
823 void (*Scissor)(PP_Resource context,
828 void (*ShaderBinary)(PP_Resource context,
830 const GLuint* shaders,
834 void (*ShaderSource)(PP_Resource context,
838 const GLint* length);
839 void (*StencilFunc)(PP_Resource context, GLenum func, GLint ref, GLuint mask);
840 void (*StencilFuncSeparate)(PP_Resource context,
845 void (*StencilMask)(PP_Resource context, GLuint mask);
846 void (*StencilMaskSeparate)(PP_Resource context, GLenum face, GLuint mask);
847 void (*StencilOp)(PP_Resource context,
851 void (*StencilOpSeparate)(PP_Resource context,
856 void (*TexImage2D)(PP_Resource context,
859 GLint internalformat,
866 void (*TexParameterf)(PP_Resource context,
870 void (*TexParameterfv)(PP_Resource context,
873 const GLfloat* params);
874 void (*TexParameteri)(PP_Resource context,
878 void (*TexParameteriv)(PP_Resource context,
881 const GLint* params);
882 void (*TexSubImage2D)(PP_Resource context,
892 void (*Uniform1f)(PP_Resource context, GLint location, GLfloat x);
893 void (*Uniform1fv)(PP_Resource context,
897 void (*Uniform1i)(PP_Resource context, GLint location, GLint x);
898 void (*Uniform1iv)(PP_Resource context,
902 void (*Uniform2f)(PP_Resource context, GLint location, GLfloat x, GLfloat y);
903 void (*Uniform2fv)(PP_Resource context,
907 void (*Uniform2i)(PP_Resource context, GLint location, GLint x, GLint y);
908 void (*Uniform2iv)(PP_Resource context,
912 void (*Uniform3f)(PP_Resource context,
917 void (*Uniform3fv)(PP_Resource context,
921 void (*Uniform3i)(PP_Resource context,
926 void (*Uniform3iv)(PP_Resource context,
930 void (*Uniform4f)(PP_Resource context,
936 void (*Uniform4fv)(PP_Resource context,
940 void (*Uniform4i)(PP_Resource context,
946 void (*Uniform4iv)(PP_Resource context,
950 void (*UniformMatrix2fv)(PP_Resource context,
954 const GLfloat* value);
955 void (*UniformMatrix3fv)(PP_Resource context,
959 const GLfloat* value);
960 void (*UniformMatrix4fv)(PP_Resource context,
964 const GLfloat* value);
965 void (*UseProgram)(PP_Resource context, GLuint program);
966 void (*ValidateProgram)(PP_Resource context, GLuint program);
967 void (*VertexAttrib1f)(PP_Resource context, GLuint indx, GLfloat x);
968 void (*VertexAttrib1fv)(PP_Resource context,
970 const GLfloat* values);
971 void (*VertexAttrib2f)(PP_Resource context,
975 void (*VertexAttrib2fv)(PP_Resource context,
977 const GLfloat* values);
978 void (*VertexAttrib3f)(PP_Resource context,
983 void (*VertexAttrib3fv)(PP_Resource context,
985 const GLfloat* values);
986 void (*VertexAttrib4f)(PP_Resource context,
992 void (*VertexAttrib4fv)(PP_Resource context,
994 const GLfloat* values);
995 void (*VertexAttribPointer)(PP_Resource context,
999 GLboolean normalized,
1002 void (*Viewport)(PP_Resource context,
1009 struct PPB_OpenGLES2InstancedArrays_1_0 {
1010 void (*DrawArraysInstancedANGLE)(PP_Resource context,
1015 void (*DrawElementsInstancedANGLE)(PP_Resource context,
1019 const void* indices,
1021 void (*VertexAttribDivisorANGLE)(PP_Resource context,
1026 struct PPB_OpenGLES2InstancedArrays {
1027 void (*DrawArraysInstancedANGLE)(PP_Resource context,
1032 void (*DrawElementsInstancedANGLE)(PP_Resource context,
1036 const void* indices,
1038 void (*VertexAttribDivisorANGLE)(PP_Resource context,
1043 struct PPB_OpenGLES2FramebufferBlit_1_0 {
1044 void (*BlitFramebufferEXT)(PP_Resource context,
1057 struct PPB_OpenGLES2FramebufferBlit {
1058 void (*BlitFramebufferEXT)(PP_Resource context,
1071 struct PPB_OpenGLES2FramebufferMultisample_1_0 {
1072 void (*RenderbufferStorageMultisampleEXT)(PP_Resource context,
1075 GLenum internalformat,
1080 struct PPB_OpenGLES2FramebufferMultisample {
1081 void (*RenderbufferStorageMultisampleEXT)(PP_Resource context,
1084 GLenum internalformat,
1089 struct PPB_OpenGLES2ChromiumEnableFeature_1_0 {
1090 GLboolean (*EnableFeatureCHROMIUM)(PP_Resource context, const char* feature);
1093 struct PPB_OpenGLES2ChromiumEnableFeature {
1094 GLboolean (*EnableFeatureCHROMIUM)(PP_Resource context, const char* feature);
1097 struct PPB_OpenGLES2ChromiumMapSub_1_0 {
1098 void* (*MapBufferSubDataCHROMIUM)(PP_Resource context,
1103 void (*UnmapBufferSubDataCHROMIUM)(PP_Resource context, const void* mem);
1104 void* (*MapTexSubImage2DCHROMIUM)(PP_Resource context,
1114 void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem);
1117 struct PPB_OpenGLES2ChromiumMapSub {
1118 void* (*MapBufferSubDataCHROMIUM)(PP_Resource context,
1123 void (*UnmapBufferSubDataCHROMIUM)(PP_Resource context, const void* mem);
1124 void* (*MapTexSubImage2DCHROMIUM)(PP_Resource context,
1134 void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem);
1137 struct PPB_OpenGLES2Query_1_0 {
1138 void (*GenQueriesEXT)(PP_Resource context, GLsizei n, GLuint* queries);
1139 void (*DeleteQueriesEXT)(PP_Resource context,
1141 const GLuint* queries);
1142 GLboolean (*IsQueryEXT)(PP_Resource context, GLuint id);
1143 void (*BeginQueryEXT)(PP_Resource context, GLenum target, GLuint id);
1144 void (*EndQueryEXT)(PP_Resource context, GLenum target);
1145 void (*GetQueryivEXT)(PP_Resource context,
1149 void (*GetQueryObjectuivEXT)(PP_Resource context,
1155 struct PPB_OpenGLES2Query {
1156 void (*GenQueriesEXT)(PP_Resource context, GLsizei n, GLuint* queries);
1157 void (*DeleteQueriesEXT)(PP_Resource context,
1159 const GLuint* queries);
1160 GLboolean (*IsQueryEXT)(PP_Resource context, GLuint id);
1161 void (*BeginQueryEXT)(PP_Resource context, GLenum target, GLuint id);
1162 void (*EndQueryEXT)(PP_Resource context, GLenum target);
1163 void (*GetQueryivEXT)(PP_Resource context,
1167 void (*GetQueryObjectuivEXT)(PP_Resource context,
1173 struct PPB_OpenGLES2VertexArrayObject_1_0 {
1174 void (*GenVertexArraysOES)(PP_Resource context, GLsizei n, GLuint* arrays);
1175 void (*DeleteVertexArraysOES)(PP_Resource context,
1177 const GLuint* arrays);
1178 GLboolean (*IsVertexArrayOES)(PP_Resource context, GLuint array);
1179 void (*BindVertexArrayOES)(PP_Resource context, GLuint array);
1182 struct PPB_OpenGLES2VertexArrayObject {
1183 void (*GenVertexArraysOES)(PP_Resource context, GLsizei n, GLuint* arrays);
1184 void (*DeleteVertexArraysOES)(PP_Resource context,
1186 const GLuint* arrays);
1187 GLboolean (*IsVertexArrayOES)(PP_Resource context, GLuint array);
1188 void (*BindVertexArrayOES)(PP_Resource context, GLuint array);
1194 #endif /* PPAPI_C_PPB_OPENGLES2_H_ */