7 #ifndef PPAPI_C_PPB_OPENGLES2_H_
8 #define PPAPI_C_PPB_OPENGLES2_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
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;
92 void (*ActiveTexture)(
PP_Resource context, GLenum texture);
93 void (*AttachShader)(
PP_Resource context, GLuint program, GLuint shader);
98 void (*BindBuffer)(
PP_Resource context, GLenum target, GLuint buffer);
104 GLuint renderbuffer);
105 void (*BindTexture)(
PP_Resource context, GLenum target, GLuint texture);
111 void (*BlendEquation)(
PP_Resource context, GLenum mode);
115 void (*BlendFunc)(
PP_Resource context, GLenum sfactor, GLenum dfactor);
131 GLenum (*CheckFramebufferStatus)(
PP_Resource context, GLenum target);
132 void (*Clear)(
PP_Resource context, GLbitfield mask);
138 void (*ClearDepthf)(
PP_Resource context, GLclampf depth);
139 void (*ClearStencil)(
PP_Resource context, GLint s);
145 void (*CompileShader)(
PP_Resource context, GLuint shader);
149 GLenum internalformat,
155 void (*CompressedTexSubImage2D)(
PP_Resource context,
168 GLenum internalformat,
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);
189 const GLuint* framebuffers);
190 void (*DeleteProgram)(
PP_Resource context, GLuint program);
193 const GLuint* renderbuffers);
194 void (*DeleteShader)(
PP_Resource context, GLuint shader);
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);
203 void (*DisableVertexAttribArray)(
PP_Resource context, GLuint index);
212 const void* indices);
214 void (*EnableVertexAttribArray)(
PP_Resource context, GLuint index);
217 void (*FramebufferRenderbuffer)(
PP_Resource context,
220 GLenum renderbuffertarget,
221 GLuint renderbuffer);
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);
234 GLuint* renderbuffers);
235 void (*GenTextures)(
PP_Resource context, GLsizei n, GLuint* textures);
260 void (*GetBooleanv)(
PP_Resource context, GLenum pname, GLboolean* params);
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);
282 void (*GetRenderbufferParameteriv)(
PP_Resource context,
295 void (*GetShaderPrecisionFormat)(
PP_Resource context,
297 GLenum precisiontype,
305 const GLubyte* (*GetString)(
PP_Resource context, GLenum name);
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);
357 void (*ReleaseShaderCompiler)(
PP_Resource context);
360 GLenum internalformat,
363 void (*SampleCoverage)(
PP_Resource context, GLclampf value, GLboolean invert);
371 const GLuint* shaders,
379 const GLint* length);
380 void (*StencilFunc)(
PP_Resource context, GLenum func, GLint ref, GLuint mask);
386 void (*StencilMask)(
PP_Resource context, GLuint mask);
387 void (*StencilMaskSeparate)(
PP_Resource context, GLenum face, GLuint mask);
400 GLint internalformat,
414 const GLfloat* params);
422 const GLint* params);
433 void (*Uniform1f)(
PP_Resource context, GLint location, GLfloat x);
438 void (*Uniform1i)(
PP_Resource context, GLint location, GLint x);
443 void (*Uniform2f)(
PP_Resource context, GLint location, GLfloat x, GLfloat y);
448 void (*Uniform2i)(
PP_Resource context, GLint location, GLint x, GLint y);
495 const GLfloat* value);
500 const GLfloat* value);
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);
511 const GLfloat* values);
518 const GLfloat* values);
526 const GLfloat* values);
535 const GLfloat* values);
540 GLboolean normalized,
551 void (*ActiveTexture)(
PP_Resource context, GLenum texture);
552 void (*AttachShader)(
PP_Resource context, GLuint program, GLuint shader);
557 void (*BindBuffer)(
PP_Resource context, GLenum target, GLuint buffer);
563 GLuint renderbuffer);
564 void (*BindTexture)(
PP_Resource context, GLenum target, GLuint texture);
570 void (*BlendEquation)(
PP_Resource context, GLenum mode);
574 void (*BlendFunc)(
PP_Resource context, GLenum sfactor, GLenum dfactor);
590 GLenum (*CheckFramebufferStatus)(
PP_Resource context, GLenum target);
591 void (*Clear)(
PP_Resource context, GLbitfield mask);
597 void (*ClearDepthf)(
PP_Resource context, GLclampf depth);
598 void (*ClearStencil)(
PP_Resource context, GLint s);
604 void (*CompileShader)(
PP_Resource context, GLuint shader);
608 GLenum internalformat,
614 void (*CompressedTexSubImage2D)(
PP_Resource context,
627 GLenum internalformat,
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);
648 const GLuint* framebuffers);
649 void (*DeleteProgram)(
PP_Resource context, GLuint program);
652 const GLuint* renderbuffers);
653 void (*DeleteShader)(
PP_Resource context, GLuint shader);
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);
662 void (*DisableVertexAttribArray)(
PP_Resource context, GLuint index);
671 const void* indices);
673 void (*EnableVertexAttribArray)(
PP_Resource context, GLuint index);
676 void (*FramebufferRenderbuffer)(
PP_Resource context,
679 GLenum renderbuffertarget,
680 GLuint renderbuffer);
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);
693 GLuint* renderbuffers);
694 void (*GenTextures)(
PP_Resource context, GLsizei n, GLuint* textures);
719 void (*GetBooleanv)(
PP_Resource context, GLenum pname, GLboolean* params);
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);
741 void (*GetRenderbufferParameteriv)(
PP_Resource context,
754 void (*GetShaderPrecisionFormat)(
PP_Resource context,
756 GLenum precisiontype,
764 const GLubyte* (*GetString)(
PP_Resource context, GLenum name);
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);
816 void (*ReleaseShaderCompiler)(
PP_Resource context);
819 GLenum internalformat,
822 void (*SampleCoverage)(
PP_Resource context, GLclampf value, GLboolean invert);
830 const GLuint* shaders,
838 const GLint* length);
839 void (*StencilFunc)(
PP_Resource context, GLenum func, GLint ref, GLuint mask);
845 void (*StencilMask)(
PP_Resource context, GLuint mask);
846 void (*StencilMaskSeparate)(
PP_Resource context, GLenum face, GLuint mask);
859 GLint internalformat,
873 const GLfloat* params);
881 const GLint* params);
892 void (*Uniform1f)(
PP_Resource context, GLint location, GLfloat x);
897 void (*Uniform1i)(
PP_Resource context, GLint location, GLint x);
902 void (*Uniform2f)(
PP_Resource context, GLint location, GLfloat x, GLfloat y);
907 void (*Uniform2i)(
PP_Resource context, GLint location, GLint x, GLint y);
954 const GLfloat* value);
959 const GLfloat* value);
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);
970 const GLfloat* values);
977 const GLfloat* values);
985 const GLfloat* values);
994 const GLfloat* values);
999 GLboolean normalized,
1010 void (*DrawArraysInstancedANGLE)(
PP_Resource context,
1015 void (*DrawElementsInstancedANGLE)(
PP_Resource context,
1019 const void* indices,
1021 void (*VertexAttribDivisorANGLE)(
PP_Resource context,
1027 void (*DrawArraysInstancedANGLE)(
PP_Resource context,
1032 void (*DrawElementsInstancedANGLE)(
PP_Resource context,
1036 const void* indices,
1038 void (*VertexAttribDivisorANGLE)(
PP_Resource context,
1072 void (*RenderbufferStorageMultisampleCHROMIUM)(
PP_Resource context,
1075 GLenum internalformat,
1078 void (*RenderbufferStorageMultisampleEXT)(
PP_Resource context,
1081 GLenum internalformat,
1084 void (*FramebufferTexture2DMultisampleEXT)(
PP_Resource context,
1094 void (*RenderbufferStorageMultisampleCHROMIUM)(
PP_Resource context,
1097 GLenum internalformat,
1100 void (*RenderbufferStorageMultisampleEXT)(
PP_Resource context,
1103 GLenum internalformat,
1106 void (*FramebufferTexture2DMultisampleEXT)(
PP_Resource context,
1116 GLboolean (*EnableFeatureCHROMIUM)(
PP_Resource context,
const char* feature);
1120 GLboolean (*EnableFeatureCHROMIUM)(
PP_Resource context,
const char* feature);
1124 void* (*MapBufferSubDataCHROMIUM)(
PP_Resource context,
1129 void (*UnmapBufferSubDataCHROMIUM)(
PP_Resource context,
const void* mem);
1130 void* (*MapTexSubImage2DCHROMIUM)(
PP_Resource context,
1140 void (*UnmapTexSubImage2DCHROMIUM)(
PP_Resource context,
const void* mem);
1144 void* (*MapBufferSubDataCHROMIUM)(
PP_Resource context,
1149 void (*UnmapBufferSubDataCHROMIUM)(
PP_Resource context,
const void* mem);
1150 void* (*MapTexSubImage2DCHROMIUM)(
PP_Resource context,
1160 void (*UnmapTexSubImage2DCHROMIUM)(
PP_Resource context,
const void* mem);
1164 void (*GenQueriesEXT)(
PP_Resource context, GLsizei n, GLuint* queries);
1167 const GLuint* queries);
1168 GLboolean (*IsQueryEXT)(
PP_Resource context, GLuint id);
1169 void (*BeginQueryEXT)(
PP_Resource context, GLenum target, GLuint id);
1170 void (*EndQueryEXT)(
PP_Resource context, GLenum target);
1182 void (*GenQueriesEXT)(
PP_Resource context, GLsizei n, GLuint* queries);
1185 const GLuint* queries);
1186 GLboolean (*IsQueryEXT)(
PP_Resource context, GLuint id);
1187 void (*BeginQueryEXT)(
PP_Resource context, GLenum target, GLuint id);
1188 void (*EndQueryEXT)(
PP_Resource context, GLenum target);
1200 void (*GenVertexArraysOES)(
PP_Resource context, GLsizei n, GLuint* arrays);
1201 void (*DeleteVertexArraysOES)(
PP_Resource context,
1203 const GLuint* arrays);
1204 GLboolean (*IsVertexArrayOES)(
PP_Resource context, GLuint array);
1205 void (*BindVertexArrayOES)(
PP_Resource context, GLuint array);
1209 void (*GenVertexArraysOES)(
PP_Resource context, GLsizei n, GLuint* arrays);
1210 void (*DeleteVertexArraysOES)(
PP_Resource context,
1212 const GLuint* arrays);
1213 GLboolean (*IsVertexArrayOES)(
PP_Resource context, GLuint array);
1214 void (*BindVertexArrayOES)(
PP_Resource context, GLuint array);
Definition: ppb_opengles2.h:1199
Definition: ppb_opengles2.h:1057
Definition: ppb_opengles2.h:1119
Definition: ppb_opengles2.h:91
Definition: ppb_opengles2.h:1143
Definition: ppb_opengles2.h:1071
int32_t PP_Resource
Definition: pp_resource.h:40
Definition: ppb_opengles2.h:1181
Definition: ppb_opengles2.h:1043
Definition: ppb_opengles2.h:1115
Definition: ppb_opengles2.h:1093
Definition: ppb_opengles2.h:1026
Definition: ppb_opengles2.h:550
Definition: ppb_opengles2.h:1009
Definition: ppb_opengles2.h:1208
Definition: ppb_opengles2.h:1123
Definition: ppb_opengles2.h:1163