Pepper_31_C_interfaces
ppb_opengles2.h
Go to the documentation of this file.
1 // Copyright (c) 2012 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.
4 
5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT!
8 
9 // OpenGL ES interface.
10 #ifndef PPAPI_C_PPB_OPENGLES2_H_
11 #define PPAPI_C_PPB_OPENGLES2_H_
12 
13 #include "ppapi/c/pp_resource.h"
14 
15 #ifndef __gl2_h_
16 typedef unsigned int GLenum;
17 typedef void GLvoid;
18 typedef long int GLintptr;
19 typedef int GLsizei;
20 typedef long int GLsizeiptr;
21 typedef int GLint;
22 typedef unsigned char GLboolean;
23 typedef unsigned int GLuint;
24 typedef unsigned int GLbitfield;
25 typedef short GLshort;
26 typedef float GLfloat;
27 typedef float GLclampf;
28 typedef signed char GLbyte;
29 typedef unsigned char GLubyte;
30 typedef int GLfixed;
31 typedef unsigned short GLushort;
32 typedef int GLclampx;
33 #endif // __gl2_h_
34 
35 #define PPB_OPENGLES2_INTERFACE_1_0 "PPB_OpenGLES2;1.0"
36 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_1_0
37 
38 struct PPB_OpenGLES2 {
39  void (*ActiveTexture)(PP_Resource context, GLenum texture);
40  void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader);
42  PP_Resource context, GLuint program, GLuint index, const char* name);
43  void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer);
44  void (*BindFramebuffer)(
45  PP_Resource context, GLenum target, GLuint framebuffer);
47  PP_Resource context, GLenum target, GLuint renderbuffer);
48  void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture);
49  void (*BlendColor)(
50  PP_Resource context, GLclampf red, GLclampf green, GLclampf blue,
51  GLclampf alpha);
52  void (*BlendEquation)(PP_Resource context, GLenum mode);
54  PP_Resource context, GLenum modeRGB, GLenum modeAlpha);
55  void (*BlendFunc)(PP_Resource context, GLenum sfactor, GLenum dfactor);
57  PP_Resource context, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha,
58  GLenum dstAlpha);
59  void (*BufferData)(
60  PP_Resource context, GLenum target, GLsizeiptr size, const void* data,
61  GLenum usage);
62  void (*BufferSubData)(
63  PP_Resource context, GLenum target, GLintptr offset, GLsizeiptr size,
64  const void* data);
66  void (*Clear)(PP_Resource context, GLbitfield mask);
67  void (*ClearColor)(
68  PP_Resource context, GLclampf red, GLclampf green, GLclampf blue,
69  GLclampf alpha);
70  void (*ClearDepthf)(PP_Resource context, GLclampf depth);
71  void (*ClearStencil)(PP_Resource context, GLint s);
72  void (*ColorMask)(
73  PP_Resource context, GLboolean red, GLboolean green, GLboolean blue,
74  GLboolean alpha);
75  void (*CompileShader)(PP_Resource context, GLuint shader);
77  PP_Resource context, GLenum target, GLint level, GLenum internalformat,
78  GLsizei width, GLsizei height, GLint border, GLsizei imageSize,
79  const void* data);
81  PP_Resource context, GLenum target, GLint level, GLint xoffset,
82  GLint yoffset, GLsizei width, GLsizei height, GLenum format,
83  GLsizei imageSize, const void* data);
84  void (*CopyTexImage2D)(
85  PP_Resource context, GLenum target, GLint level, GLenum internalformat,
86  GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
88  PP_Resource context, GLenum target, GLint level, GLint xoffset,
89  GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
92  void (*CullFace)(PP_Resource context, GLenum mode);
93  void (*DeleteBuffers)(PP_Resource context, GLsizei n, const GLuint* buffers);
95  PP_Resource context, GLsizei n, const GLuint* framebuffers);
96  void (*DeleteProgram)(PP_Resource context, GLuint program);
98  PP_Resource context, GLsizei n, const GLuint* renderbuffers);
99  void (*DeleteShader)(PP_Resource context, GLuint shader);
100  void (*DeleteTextures)(
101  PP_Resource context, GLsizei n, const GLuint* textures);
102  void (*DepthFunc)(PP_Resource context, GLenum func);
103  void (*DepthMask)(PP_Resource context, GLboolean flag);
104  void (*DepthRangef)(PP_Resource context, GLclampf zNear, GLclampf zFar);
105  void (*DetachShader)(PP_Resource context, GLuint program, GLuint shader);
106  void (*Disable)(PP_Resource context, GLenum cap);
107  void (*DisableVertexAttribArray)(PP_Resource context, GLuint index);
108  void (*DrawArrays)(
109  PP_Resource context, GLenum mode, GLint first, GLsizei count);
110  void (*DrawElements)(
111  PP_Resource context, GLenum mode, GLsizei count, GLenum type,
112  const void* indices);
113  void (*Enable)(PP_Resource context, GLenum cap);
114  void (*EnableVertexAttribArray)(PP_Resource context, GLuint index);
115  void (*Finish)(PP_Resource context);
116  void (*Flush)(PP_Resource context);
118  PP_Resource context, GLenum target, GLenum attachment,
119  GLenum renderbuffertarget, GLuint renderbuffer);
121  PP_Resource context, GLenum target, GLenum attachment, GLenum textarget,
122  GLuint texture, GLint level);
123  void (*FrontFace)(PP_Resource context, GLenum mode);
124  void (*GenBuffers)(PP_Resource context, GLsizei n, GLuint* buffers);
125  void (*GenerateMipmap)(PP_Resource context, GLenum target);
127  PP_Resource context, GLsizei n, GLuint* framebuffers);
129  PP_Resource context, GLsizei n, GLuint* renderbuffers);
130  void (*GenTextures)(PP_Resource context, GLsizei n, GLuint* textures);
132  PP_Resource context, GLuint program, GLuint index, GLsizei bufsize,
133  GLsizei* length, GLint* size, GLenum* type, char* name);
135  PP_Resource context, GLuint program, GLuint index, GLsizei bufsize,
136  GLsizei* length, GLint* size, GLenum* type, char* name);
138  PP_Resource context, GLuint program, GLsizei maxcount, GLsizei* count,
139  GLuint* shaders);
141  PP_Resource context, GLuint program, const char* name);
142  void (*GetBooleanv)(PP_Resource context, GLenum pname, GLboolean* params);
144  PP_Resource context, GLenum target, GLenum pname, GLint* params);
146  void (*GetFloatv)(PP_Resource context, GLenum pname, GLfloat* params);
148  PP_Resource context, GLenum target, GLenum attachment, GLenum pname,
149  GLint* params);
150  void (*GetIntegerv)(PP_Resource context, GLenum pname, GLint* params);
151  void (*GetProgramiv)(
152  PP_Resource context, GLuint program, GLenum pname, GLint* params);
154  PP_Resource context, GLuint program, GLsizei bufsize, GLsizei* length,
155  char* infolog);
157  PP_Resource context, GLenum target, GLenum pname, GLint* params);
158  void (*GetShaderiv)(
159  PP_Resource context, GLuint shader, GLenum pname, GLint* params);
161  PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei* length,
162  char* infolog);
164  PP_Resource context, GLenum shadertype, GLenum precisiontype,
165  GLint* range, GLint* precision);
167  PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei* length,
168  char* source);
169  const GLubyte* (*GetString)(PP_Resource context, GLenum name);
171  PP_Resource context, GLenum target, GLenum pname, GLfloat* params);
173  PP_Resource context, GLenum target, GLenum pname, GLint* params);
174  void (*GetUniformfv)(
175  PP_Resource context, GLuint program, GLint location, GLfloat* params);
176  void (*GetUniformiv)(
177  PP_Resource context, GLuint program, GLint location, GLint* params);
179  PP_Resource context, GLuint program, const char* name);
181  PP_Resource context, GLuint index, GLenum pname, GLfloat* params);
183  PP_Resource context, GLuint index, GLenum pname, GLint* params);
185  PP_Resource context, GLuint index, GLenum pname, void** pointer);
186  void (*Hint)(PP_Resource context, GLenum target, GLenum mode);
187  GLboolean (*IsBuffer)(PP_Resource context, GLuint buffer);
189  GLboolean (*IsFramebuffer)(PP_Resource context, GLuint framebuffer);
190  GLboolean (*IsProgram)(PP_Resource context, GLuint program);
191  GLboolean (*IsRenderbuffer)(PP_Resource context, GLuint renderbuffer);
192  GLboolean (*IsShader)(PP_Resource context, GLuint shader);
193  GLboolean (*IsTexture)(PP_Resource context, GLuint texture);
194  void (*LineWidth)(PP_Resource context, GLfloat width);
195  void (*LinkProgram)(PP_Resource context, GLuint program);
196  void (*PixelStorei)(PP_Resource context, GLenum pname, GLint param);
197  void (*PolygonOffset)(PP_Resource context, GLfloat factor, GLfloat units);
198  void (*ReadPixels)(
199  PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height,
200  GLenum format, GLenum type, void* pixels);
203  PP_Resource context, GLenum target, GLenum internalformat, GLsizei width,
204  GLsizei height);
205  void (*SampleCoverage)(
206  PP_Resource context, GLclampf value, GLboolean invert);
207  void (*Scissor)(
208  PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height);
209  void (*ShaderBinary)(
210  PP_Resource context, GLsizei n, const GLuint* shaders,
211  GLenum binaryformat, const void* binary, GLsizei length);
212  void (*ShaderSource)(
213  PP_Resource context, GLuint shader, GLsizei count, const char** str,
214  const GLint* length);
215  void (*StencilFunc)(
216  PP_Resource context, GLenum func, GLint ref, GLuint mask);
218  PP_Resource context, GLenum face, GLenum func, GLint ref, GLuint mask);
219  void (*StencilMask)(PP_Resource context, GLuint mask);
220  void (*StencilMaskSeparate)(PP_Resource context, GLenum face, GLuint mask);
221  void (*StencilOp)(
222  PP_Resource context, GLenum fail, GLenum zfail, GLenum zpass);
224  PP_Resource context, GLenum face, GLenum fail, GLenum zfail,
225  GLenum zpass);
226  void (*TexImage2D)(
227  PP_Resource context, GLenum target, GLint level, GLint internalformat,
228  GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,
229  const void* pixels);
230  void (*TexParameterf)(
231  PP_Resource context, GLenum target, GLenum pname, GLfloat param);
232  void (*TexParameterfv)(
233  PP_Resource context, GLenum target, GLenum pname, const GLfloat* params);
234  void (*TexParameteri)(
235  PP_Resource context, GLenum target, GLenum pname, GLint param);
236  void (*TexParameteriv)(
237  PP_Resource context, GLenum target, GLenum pname, const GLint* params);
238  void (*TexSubImage2D)(
239  PP_Resource context, GLenum target, GLint level, GLint xoffset,
240  GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,
241  const void* pixels);
242  void (*Uniform1f)(PP_Resource context, GLint location, GLfloat x);
243  void (*Uniform1fv)(
244  PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
245  void (*Uniform1i)(PP_Resource context, GLint location, GLint x);
246  void (*Uniform1iv)(
247  PP_Resource context, GLint location, GLsizei count, const GLint* v);
248  void (*Uniform2f)(PP_Resource context, GLint location, GLfloat x, GLfloat y);
249  void (*Uniform2fv)(
250  PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
251  void (*Uniform2i)(PP_Resource context, GLint location, GLint x, GLint y);
252  void (*Uniform2iv)(
253  PP_Resource context, GLint location, GLsizei count, const GLint* v);
254  void (*Uniform3f)(
255  PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z);
256  void (*Uniform3fv)(
257  PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
258  void (*Uniform3i)(
259  PP_Resource context, GLint location, GLint x, GLint y, GLint z);
260  void (*Uniform3iv)(
261  PP_Resource context, GLint location, GLsizei count, const GLint* v);
262  void (*Uniform4f)(
263  PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z,
264  GLfloat w);
265  void (*Uniform4fv)(
266  PP_Resource context, GLint location, GLsizei count, const GLfloat* v);
267  void (*Uniform4i)(
268  PP_Resource context, GLint location, GLint x, GLint y, GLint z, GLint w);
269  void (*Uniform4iv)(
270  PP_Resource context, GLint location, GLsizei count, const GLint* v);
272  PP_Resource context, GLint location, GLsizei count, GLboolean transpose,
273  const GLfloat* value);
275  PP_Resource context, GLint location, GLsizei count, GLboolean transpose,
276  const GLfloat* value);
278  PP_Resource context, GLint location, GLsizei count, GLboolean transpose,
279  const GLfloat* value);
280  void (*UseProgram)(PP_Resource context, GLuint program);
281  void (*ValidateProgram)(PP_Resource context, GLuint program);
282  void (*VertexAttrib1f)(PP_Resource context, GLuint indx, GLfloat x);
284  PP_Resource context, GLuint indx, const GLfloat* values);
285  void (*VertexAttrib2f)(
286  PP_Resource context, GLuint indx, GLfloat x, GLfloat y);
288  PP_Resource context, GLuint indx, const GLfloat* values);
289  void (*VertexAttrib3f)(
290  PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z);
292  PP_Resource context, GLuint indx, const GLfloat* values);
293  void (*VertexAttrib4f)(
294  PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z,
295  GLfloat w);
297  PP_Resource context, GLuint indx, const GLfloat* values);
299  PP_Resource context, GLuint indx, GLint size, GLenum type,
300  GLboolean normalized, GLsizei stride, const void* ptr);
301  void (*Viewport)(
302  PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height);
303 };
304 
305 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 "PPB_OpenGLES2InstancedArrays;1.0" // NOLINT
306 #define PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0 // NOLINT
307 
310  PP_Resource context, GLenum mode, GLint first, GLsizei count,
311  GLsizei primcount);
313  PP_Resource context, GLenum mode, GLsizei count, GLenum type,
314  const void* indices, GLsizei primcount);
316  PP_Resource context, GLuint index, GLuint divisor);
317 };
318 
319 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 "PPB_OpenGLES2FramebufferBlit;1.0" // NOLINT
320 #define PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0 // NOLINT
321 
324  PP_Resource context, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1,
325  GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask,
326  GLenum filter);
327 };
328 
329 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 "PPB_OpenGLES2FramebufferMultisample;1.0" // NOLINT
330 #define PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0 // NOLINT
331 
334  PP_Resource context, GLenum target, GLsizei samples,
335  GLenum internalformat, GLsizei width, GLsizei height);
336 };
337 
338 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 "PPB_OpenGLES2ChromiumEnableFeature;1.0" // NOLINT
339 #define PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0 // NOLINT
340 
342  GLboolean (*EnableFeatureCHROMIUM)(PP_Resource context, const char* feature);
343 };
344 
345 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 "PPB_OpenGLES2ChromiumMapSub;1.0" // NOLINT
346 #define PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0 // NOLINT
347 
349  void* (*MapBufferSubDataCHROMIUM)(
350  PP_Resource context, GLuint target, GLintptr offset, GLsizeiptr size,
351  GLenum access);
352  void (*UnmapBufferSubDataCHROMIUM)(PP_Resource context, const void* mem);
353  void* (*MapTexSubImage2DCHROMIUM)(
354  PP_Resource context, GLenum target, GLint level, GLint xoffset,
355  GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,
356  GLenum access);
357  void (*UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void* mem);
358 };
359 
360 #define PPB_OPENGLES2_QUERY_INTERFACE_1_0 "PPB_OpenGLES2Query;1.0"
361 #define PPB_OPENGLES2_QUERY_INTERFACE PPB_OPENGLES2_QUERY_INTERFACE_1_0
362 
364  void (*GenQueriesEXT)(PP_Resource context, GLsizei n, GLuint* queries);
366  PP_Resource context, GLsizei n, const GLuint* queries);
368  void (*BeginQueryEXT)(PP_Resource context, GLenum target, GLuint id);
369  void (*EndQueryEXT)(PP_Resource context, GLenum target);
370  void (*GetQueryivEXT)(
371  PP_Resource context, GLenum target, GLenum pname, GLint* params);
373  PP_Resource context, GLuint id, GLenum pname, GLuint* params);
374 };
375 
376 #endif // PPAPI_C_PPB_OPENGLES2_H_
377 
void(* BlendEquationSeparate)(PP_Resource context, GLenum modeRGB, GLenum modeAlpha)
Definition: ppb_opengles2.h:53
void(* UniformMatrix4fv)(PP_Resource context, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
unsigned int GLenum
Definition: ppb_opengles2.h:16
void(* TexParameteri)(PP_Resource context, GLenum target, GLenum pname, GLint param)
void(* Uniform4fv)(PP_Resource context, GLint location, GLsizei count, const GLfloat *v)
void(* BindRenderbuffer)(PP_Resource context, GLenum target, GLuint renderbuffer)
Definition: ppb_opengles2.h:46
int GLclampx
Definition: ppb_opengles2.h:32
void(* StencilMaskSeparate)(PP_Resource context, GLenum face, GLuint mask)
void(* TexParameteriv)(PP_Resource context, GLenum target, GLenum pname, const GLint *params)
void(* Uniform2f)(PP_Resource context, GLint location, GLfloat x, GLfloat y)
void(* Finish)(PP_Resource context)
void(* GenRenderbuffers)(PP_Resource context, GLsizei n, GLuint *renderbuffers)
void(* UnmapTexSubImage2DCHROMIUM)(PP_Resource context, const void *mem)
void(* Uniform1i)(PP_Resource context, GLint location, GLint x)
void(* Flush)(PP_Resource context)
void(* GetFloatv)(PP_Resource context, GLenum pname, GLfloat *params)
void(* FrontFace)(PP_Resource context, GLenum mode)
void(* StencilFunc)(PP_Resource context, GLenum func, GLint ref, GLuint mask)
void(* Viewport)(PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height)
void(* BlitFramebufferEXT)(PP_Resource context, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
void(* GetActiveUniform)(PP_Resource context, GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
void(* Uniform1f)(PP_Resource context, GLint location, GLfloat x)
void(* ShaderSource)(PP_Resource context, GLuint shader, GLsizei count, const char **str, const GLint *length)
void(* GetVertexAttribfv)(PP_Resource context, GLuint index, GLenum pname, GLfloat *params)
unsigned short GLushort
Definition: ppb_opengles2.h:31
void(* GetShaderInfoLog)(PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
void(* ClearStencil)(PP_Resource context, GLint s)
Definition: ppb_opengles2.h:71
void(* DepthMask)(PP_Resource context, GLboolean flag)
void(* GetUniformiv)(PP_Resource context, GLuint program, GLint location, GLint *params)
void(* VertexAttribPointer)(PP_Resource context, GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
GLboolean(* IsShader)(PP_Resource context, GLuint shader)
unsigned int GLbitfield
Definition: ppb_opengles2.h:24
void(* BindBuffer)(PP_Resource context, GLenum target, GLuint buffer)
Definition: ppb_opengles2.h:43
void(* PixelStorei)(PP_Resource context, GLenum pname, GLint param)
void(* GenFramebuffers)(PP_Resource context, GLsizei n, GLuint *framebuffers)
void(* DeleteFramebuffers)(PP_Resource context, GLsizei n, const GLuint *framebuffers)
Definition: ppb_opengles2.h:94
GLint(* GetUniformLocation)(PP_Resource context, GLuint program, const char *name)
unsigned char GLboolean
Definition: ppb_opengles2.h:22
void(* TexImage2D)(PP_Resource context, GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)
void(* LinkProgram)(PP_Resource context, GLuint program)
void(* TexParameterf)(PP_Resource context, GLenum target, GLenum pname, GLfloat param)
void(* ActiveTexture)(PP_Resource context, GLenum texture)
Definition: ppb_opengles2.h:39
void(* GetIntegerv)(PP_Resource context, GLenum pname, GLint *params)
int GLsizei
Definition: ppb_opengles2.h:19
void(* Uniform4i)(PP_Resource context, GLint location, GLint x, GLint y, GLint z, GLint w)
void(* DeleteTextures)(PP_Resource context, GLsizei n, const GLuint *textures)
void(* Uniform3fv)(PP_Resource context, GLint location, GLsizei count, const GLfloat *v)
void(* ColorMask)(PP_Resource context, GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
Definition: ppb_opengles2.h:72
void(* TexSubImage2D)(PP_Resource context, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
void(* LineWidth)(PP_Resource context, GLfloat width)
void(* GenTextures)(PP_Resource context, GLsizei n, GLuint *textures)
void(* Clear)(PP_Resource context, GLbitfield mask)
Definition: ppb_opengles2.h:66
void(* DeleteRenderbuffers)(PP_Resource context, GLsizei n, const GLuint *renderbuffers)
Definition: ppb_opengles2.h:97
void(* CompressedTexSubImage2D)(PP_Resource context, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
Definition: ppb_opengles2.h:80
GLuint(* CreateProgram)(PP_Resource context)
Definition: ppb_opengles2.h:90
void(* SampleCoverage)(PP_Resource context, GLclampf value, GLboolean invert)
void(* DeleteBuffers)(PP_Resource context, GLsizei n, const GLuint *buffers)
Definition: ppb_opengles2.h:93
void(* VertexAttrib1f)(PP_Resource context, GLuint indx, GLfloat x)
void(* GetShaderSource)(PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
int32_t PP_Resource
Definition: pp_resource.h:40
GLboolean(* IsTexture)(PP_Resource context, GLuint texture)
void(* BindFramebuffer)(PP_Resource context, GLenum target, GLuint framebuffer)
Definition: ppb_opengles2.h:44
void(* Hint)(PP_Resource context, GLenum target, GLenum mode)
void(* VertexAttrib3f)(PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z)
void(* VertexAttribDivisorANGLE)(PP_Resource context, GLuint index, GLuint divisor)
void(* GetShaderiv)(PP_Resource context, GLuint shader, GLenum pname, GLint *params)
void(* Uniform2i)(PP_Resource context, GLint location, GLint x, GLint y)
int GLfixed
Definition: ppb_opengles2.h:30
void(* BufferSubData)(PP_Resource context, GLenum target, GLintptr offset, GLsizeiptr size, const void *data)
Definition: ppb_opengles2.h:62
GLboolean(* EnableFeatureCHROMIUM)(PP_Resource context, const char *feature)
void(* StencilFuncSeparate)(PP_Resource context, GLenum face, GLenum func, GLint ref, GLuint mask)
GLboolean(* IsQueryEXT)(PP_Resource context, GLuint id)
void(* VertexAttrib3fv)(PP_Resource context, GLuint indx, const GLfloat *values)
void(* VertexAttrib4f)(PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
void(* DisableVertexAttribArray)(PP_Resource context, GLuint index)
void(* DrawElementsInstancedANGLE)(PP_Resource context, GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei primcount)
void(* UniformMatrix2fv)(PP_Resource context, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void(* StencilOp)(PP_Resource context, GLenum fail, GLenum zfail, GLenum zpass)
void GLvoid
Definition: ppb_opengles2.h:17
void(* GetProgramInfoLog)(PP_Resource context, GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
void(* Uniform2fv)(PP_Resource context, GLint location, GLsizei count, const GLfloat *v)
GLint(* GetAttribLocation)(PP_Resource context, GLuint program, const char *name)
void(* RenderbufferStorage)(PP_Resource context, GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
GLboolean(* IsEnabled)(PP_Resource context, GLenum cap)
void(* GenerateMipmap)(PP_Resource context, GLenum target)
void(* DrawArrays)(PP_Resource context, GLenum mode, GLint first, GLsizei count)
void(* BufferData)(PP_Resource context, GLenum target, GLsizeiptr size, const void *data, GLenum usage)
Definition: ppb_opengles2.h:59
void(* VertexAttrib1fv)(PP_Resource context, GLuint indx, const GLfloat *values)
GLenum(* GetError)(PP_Resource context)
void(* CompileShader)(PP_Resource context, GLuint shader)
Definition: ppb_opengles2.h:75
int GLint
Definition: ppb_opengles2.h:21
void(* GetProgramiv)(PP_Resource context, GLuint program, GLenum pname, GLint *params)
void(* ValidateProgram)(PP_Resource context, GLuint program)
void(* ShaderBinary)(PP_Resource context, GLsizei n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length)
void(* StencilOpSeparate)(PP_Resource context, GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
float GLfloat
Definition: ppb_opengles2.h:26
signed char GLbyte
Definition: ppb_opengles2.h:28
void(* Scissor)(PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height)
unsigned char GLubyte
Definition: ppb_opengles2.h:29
void(* UnmapBufferSubDataCHROMIUM)(PP_Resource context, const void *mem)
GLboolean(* IsFramebuffer)(PP_Resource context, GLuint framebuffer)
void(* GetBufferParameteriv)(PP_Resource context, GLenum target, GLenum pname, GLint *params)
void(* GetFramebufferAttachmentParameteriv)(PP_Resource context, GLenum target, GLenum attachment, GLenum pname, GLint *params)
void(* BindTexture)(PP_Resource context, GLenum target, GLuint texture)
Definition: ppb_opengles2.h:48
void(* EndQueryEXT)(PP_Resource context, GLenum target)
long int GLsizeiptr
Definition: ppb_opengles2.h:20
void(* FramebufferRenderbuffer)(PP_Resource context, GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
float GLclampf
Definition: ppb_opengles2.h:27
void(* EnableVertexAttribArray)(PP_Resource context, GLuint index)
void(* GetActiveAttrib)(PP_Resource context, GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
void(* GenQueriesEXT)(PP_Resource context, GLsizei n, GLuint *queries)
GLboolean(* IsProgram)(PP_Resource context, GLuint program)
void(* DeleteShader)(PP_Resource context, GLuint shader)
Definition: ppb_opengles2.h:99
void(* DeleteQueriesEXT)(PP_Resource context, GLsizei n, const GLuint *queries)
void(* Uniform4f)(PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
void(* Uniform1iv)(PP_Resource context, GLint location, GLsizei count, const GLint *v)
unsigned int GLuint
Definition: ppb_opengles2.h:23
void(* GetShaderPrecisionFormat)(PP_Resource context, GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
GLuint(* CreateShader)(PP_Resource context, GLenum type)
Definition: ppb_opengles2.h:91
void(* Uniform3f)(PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z)
GLboolean(* IsBuffer)(PP_Resource context, GLuint buffer)
void(* ClearDepthf)(PP_Resource context, GLclampf depth)
Definition: ppb_opengles2.h:70
void(* DepthRangef)(PP_Resource context, GLclampf zNear, GLclampf zFar)
void(* PolygonOffset)(PP_Resource context, GLfloat factor, GLfloat units)
void(* Disable)(PP_Resource context, GLenum cap)
void(* GetQueryObjectuivEXT)(PP_Resource context, GLuint id, GLenum pname, GLuint *params)
void(* ClearColor)(PP_Resource context, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Definition: ppb_opengles2.h:67
void(* VertexAttrib2f)(PP_Resource context, GLuint indx, GLfloat x, GLfloat y)
void(* UniformMatrix3fv)(PP_Resource context, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void(* DepthFunc)(PP_Resource context, GLenum func)
void(* VertexAttrib4fv)(PP_Resource context, GLuint indx, const GLfloat *values)
void(* BindAttribLocation)(PP_Resource context, GLuint program, GLuint index, const char *name)
Definition: ppb_opengles2.h:41
short GLshort
Definition: ppb_opengles2.h:25
void(* GetQueryivEXT)(PP_Resource context, GLenum target, GLenum pname, GLint *params)
void(* GenBuffers)(PP_Resource context, GLsizei n, GLuint *buffers)
void(* GetVertexAttribPointerv)(PP_Resource context, GLuint index, GLenum pname, void **pointer)
void(* DrawElements)(PP_Resource context, GLenum mode, GLsizei count, GLenum type, const void *indices)
void(* StencilMask)(PP_Resource context, GLuint mask)
long int GLintptr
Definition: ppb_opengles2.h:18
void(* CopyTexSubImage2D)(PP_Resource context, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
Definition: ppb_opengles2.h:87
void(* VertexAttrib2fv)(PP_Resource context, GLuint indx, const GLfloat *values)
void(* DeleteProgram)(PP_Resource context, GLuint program)
Definition: ppb_opengles2.h:96
void(* BeginQueryEXT)(PP_Resource context, GLenum target, GLuint id)
void(* ReadPixels)(PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)
void(* BlendFuncSeparate)(PP_Resource context, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
Definition: ppb_opengles2.h:56
void(* Uniform1fv)(PP_Resource context, GLint location, GLsizei count, const GLfloat *v)
void(* RenderbufferStorageMultisampleEXT)(PP_Resource context, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
void(* DetachShader)(PP_Resource context, GLuint program, GLuint shader)
void(* GetRenderbufferParameteriv)(PP_Resource context, GLenum target, GLenum pname, GLint *params)
void(* CompressedTexImage2D)(PP_Resource context, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
Definition: ppb_opengles2.h:76
void(* CullFace)(PP_Resource context, GLenum mode)
Definition: ppb_opengles2.h:92
void(* GetTexParameteriv)(PP_Resource context, GLenum target, GLenum pname, GLint *params)
void(* BlendColor)(PP_Resource context, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Definition: ppb_opengles2.h:49
void(* GetVertexAttribiv)(PP_Resource context, GLuint index, GLenum pname, GLint *params)
void(* Enable)(PP_Resource context, GLenum cap)
void(* GetBooleanv)(PP_Resource context, GLenum pname, GLboolean *params)
void(* BlendEquation)(PP_Resource context, GLenum mode)
Definition: ppb_opengles2.h:52
void(* AttachShader)(PP_Resource context, GLuint program, GLuint shader)
Definition: ppb_opengles2.h:40
void(* GetAttachedShaders)(PP_Resource context, GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
void(* Uniform3i)(PP_Resource context, GLint location, GLint x, GLint y, GLint z)
void(* Uniform2iv)(PP_Resource context, GLint location, GLsizei count, const GLint *v)
void(* DrawArraysInstancedANGLE)(PP_Resource context, GLenum mode, GLint first, GLsizei count, GLsizei primcount)
void(* UseProgram)(PP_Resource context, GLuint program)
void(* ReleaseShaderCompiler)(PP_Resource context)
void(* FramebufferTexture2D)(PP_Resource context, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
GLenum(* CheckFramebufferStatus)(PP_Resource context, GLenum target)
Definition: ppb_opengles2.h:65
void(* CopyTexImage2D)(PP_Resource context, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
Definition: ppb_opengles2.h:84
void(* Uniform3iv)(PP_Resource context, GLint location, GLsizei count, const GLint *v)
GLboolean(* IsRenderbuffer)(PP_Resource context, GLuint renderbuffer)
void(* BlendFunc)(PP_Resource context, GLenum sfactor, GLenum dfactor)
Definition: ppb_opengles2.h:55
void(* GetUniformfv)(PP_Resource context, GLuint program, GLint location, GLfloat *params)
void(* TexParameterfv)(PP_Resource context, GLenum target, GLenum pname, const GLfloat *params)
void(* Uniform4iv)(PP_Resource context, GLint location, GLsizei count, const GLint *v)
void(* GetTexParameterfv)(PP_Resource context, GLenum target, GLenum pname, GLfloat *params)