OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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. DO NOT EDIT! | |
6 | |
7 // OpenGL ES interface. | |
8 #ifndef PPAPI_C_PPB_OPENGLES_H_ | |
9 #define PPAPI_C_PPB_OPENGLES_H_ | |
10 | |
11 #include "ppapi/c/pp_resource.h" | |
12 #include "ppapi/c/pp_stdint.h" | |
13 | |
14 #ifndef __gl2_h_ | |
15 typedef unsigned int GLenum; | |
16 typedef void GLvoid; | |
17 typedef long int GLintptr; | |
18 typedef int GLsizei; | |
19 typedef long int GLsizeiptr; | |
20 typedef int GLint; | |
21 typedef unsigned char GLboolean; | |
22 typedef unsigned int GLuint; | |
23 typedef unsigned int GLbitfield; | |
24 typedef short GLshort; | |
25 typedef float GLfloat; | |
26 typedef float GLclampf; | |
27 typedef int8_t GLbyte; | |
28 typedef uint8_t GLubyte; | |
29 typedef int32_t GLfixed; | |
30 typedef unsigned short GLushort; | |
31 typedef int GLclampx; | |
32 #endif // __gl2_h_ | |
33 | |
34 #define PPB_OPENGLES2_INTERFACE_1_0 "PPB_OpenGLES2;1.0" | |
35 #define PPB_OPENGLES2_INTERFACE PPB_OPENGLES2_INTERFACE_1_0 | |
36 | |
37 struct PPB_OpenGLES2 { | |
38 void (*ActiveTexture)(PP_Resource context, GLenum texture); | |
39 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader); | |
40 void (*BindAttribLocation)( | |
41 PP_Resource context, GLuint program, GLuint index, const char* name); | |
42 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer); | |
43 void (*BindFramebuffer)( | |
44 PP_Resource context, GLenum target, GLuint framebuffer); | |
45 void (*BindRenderbuffer)( | |
46 PP_Resource context, GLenum target, GLuint renderbuffer); | |
47 void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture); | |
48 void (*BlendColor)( | |
49 PP_Resource context, GLclampf red, GLclampf green, GLclampf blue, | |
50 GLclampf alpha); | |
51 void (*BlendEquation)(PP_Resource context, GLenum mode); | |
52 void (*BlendEquationSeparate)( | |
53 PP_Resource context, GLenum modeRGB, GLenum modeAlpha); | |
54 void (*BlendFunc)(PP_Resource context, GLenum sfactor, GLenum dfactor); | |
55 void (*BlendFuncSeparate)( | |
56 PP_Resource context, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, | |
57 GLenum dstAlpha); | |
58 void (*BufferData)( | |
59 PP_Resource context, GLenum target, GLsizeiptr size, const void* data, | |
60 GLenum usage); | |
61 void (*BufferSubData)( | |
62 PP_Resource context, GLenum target, GLintptr offset, GLsizeiptr size, | |
63 const void* data); | |
64 GLenum (*CheckFramebufferStatus)(PP_Resource context, GLenum target); | |
65 void (*Clear)(PP_Resource context, GLbitfield mask); | |
66 void (*ClearColor)( | |
67 PP_Resource context, GLclampf red, GLclampf green, GLclampf blue, | |
68 GLclampf alpha); | |
69 void (*ClearDepthf)(PP_Resource context, GLclampf depth); | |
70 void (*ClearStencil)(PP_Resource context, GLint s); | |
71 void (*ColorMask)( | |
72 PP_Resource context, GLboolean red, GLboolean green, GLboolean blue, | |
73 GLboolean alpha); | |
74 void (*CompileShader)(PP_Resource context, GLuint shader); | |
75 void (*CompressedTexImage2D)( | |
76 PP_Resource context, GLenum target, GLint level, GLenum internalformat, | |
77 GLsizei width, GLsizei height, GLint border, GLsizei imageSize, | |
78 const void* data); | |
79 void (*CompressedTexSubImage2D)( | |
80 PP_Resource context, GLenum target, GLint level, GLint xoffset, | |
81 GLint yoffset, GLsizei width, GLsizei height, GLenum format, | |
82 GLsizei imageSize, const void* data); | |
83 void (*CopyTexImage2D)( | |
84 PP_Resource context, GLenum target, GLint level, GLenum internalformat, | |
85 GLint x, GLint y, GLsizei width, GLsizei height, GLint border); | |
86 void (*CopyTexSubImage2D)( | |
87 PP_Resource context, GLenum target, GLint level, GLint xoffset, | |
88 GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); | |
89 GLuint (*CreateProgram)(PP_Resource context); | |
90 GLuint (*CreateShader)(PP_Resource context, GLenum type); | |
91 void (*CullFace)(PP_Resource context, GLenum mode); | |
92 void (*DeleteBuffers)(PP_Resource context, GLsizei n, const GLuint* buffers); | |
93 void (*DeleteFramebuffers)( | |
94 PP_Resource context, GLsizei n, const GLuint* framebuffers); | |
95 void (*DeleteProgram)(PP_Resource context, GLuint program); | |
96 void (*DeleteRenderbuffers)( | |
97 PP_Resource context, GLsizei n, const GLuint* renderbuffers); | |
98 void (*DeleteShader)(PP_Resource context, GLuint shader); | |
99 void (*DeleteTextures)( | |
100 PP_Resource context, GLsizei n, const GLuint* textures); | |
101 void (*DepthFunc)(PP_Resource context, GLenum func); | |
102 void (*DepthMask)(PP_Resource context, GLboolean flag); | |
103 void (*DepthRangef)(PP_Resource context, GLclampf zNear, GLclampf zFar); | |
104 void (*DetachShader)(PP_Resource context, GLuint program, GLuint shader); | |
105 void (*Disable)(PP_Resource context, GLenum cap); | |
106 void (*DisableVertexAttribArray)(PP_Resource context, GLuint index); | |
107 void (*DrawArrays)( | |
108 PP_Resource context, GLenum mode, GLint first, GLsizei count); | |
109 void (*DrawElements)( | |
110 PP_Resource context, GLenum mode, GLsizei count, GLenum type, | |
111 const void* indices); | |
112 void (*Enable)(PP_Resource context, GLenum cap); | |
113 void (*EnableVertexAttribArray)(PP_Resource context, GLuint index); | |
114 void (*Finish)(PP_Resource context); | |
115 void (*Flush)(PP_Resource context); | |
116 void (*FramebufferRenderbuffer)( | |
117 PP_Resource context, GLenum target, GLenum attachment, | |
118 GLenum renderbuffertarget, GLuint renderbuffer); | |
119 void (*FramebufferTexture2D)( | |
120 PP_Resource context, GLenum target, GLenum attachment, GLenum textarget, | |
121 GLuint texture, GLint level); | |
122 void (*FrontFace)(PP_Resource context, GLenum mode); | |
123 void (*GenBuffers)(PP_Resource context, GLsizei n, GLuint* buffers); | |
124 void (*GenerateMipmap)(PP_Resource context, GLenum target); | |
125 void (*GenFramebuffers)( | |
126 PP_Resource context, GLsizei n, GLuint* framebuffers); | |
127 void (*GenRenderbuffers)( | |
128 PP_Resource context, GLsizei n, GLuint* renderbuffers); | |
129 void (*GenTextures)(PP_Resource context, GLsizei n, GLuint* textures); | |
130 void (*GetActiveAttrib)( | |
131 PP_Resource context, GLuint program, GLuint index, GLsizei bufsize, | |
132 GLsizei* length, GLint* size, GLenum* type, char* name); | |
133 void (*GetActiveUniform)( | |
134 PP_Resource context, GLuint program, GLuint index, GLsizei bufsize, | |
135 GLsizei* length, GLint* size, GLenum* type, char* name); | |
136 void (*GetAttachedShaders)( | |
137 PP_Resource context, GLuint program, GLsizei maxcount, GLsizei* count, | |
138 GLuint* shaders); | |
139 GLint (*GetAttribLocation)( | |
140 PP_Resource context, GLuint program, const char* name); | |
141 void (*GetBooleanv)(PP_Resource context, GLenum pname, GLboolean* params); | |
142 void (*GetBufferParameteriv)( | |
143 PP_Resource context, GLenum target, GLenum pname, GLint* params); | |
144 GLenum (*GetError)(PP_Resource context); | |
145 void (*GetFloatv)(PP_Resource context, GLenum pname, GLfloat* params); | |
146 void (*GetFramebufferAttachmentParameteriv)( | |
147 PP_Resource context, GLenum target, GLenum attachment, GLenum pname, | |
148 GLint* params); | |
149 void (*GetIntegerv)(PP_Resource context, GLenum pname, GLint* params); | |
150 void (*GetProgramiv)( | |
151 PP_Resource context, GLuint program, GLenum pname, GLint* params); | |
152 void (*GetProgramInfoLog)( | |
153 PP_Resource context, GLuint program, GLsizei bufsize, GLsizei* length, | |
154 char* infolog); | |
155 void (*GetRenderbufferParameteriv)( | |
156 PP_Resource context, GLenum target, GLenum pname, GLint* params); | |
157 void (*GetShaderiv)( | |
158 PP_Resource context, GLuint shader, GLenum pname, GLint* params); | |
159 void (*GetShaderInfoLog)( | |
160 PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei* length, | |
161 char* infolog); | |
162 void (*GetShaderPrecisionFormat)( | |
163 PP_Resource context, GLenum shadertype, GLenum precisiontype, | |
164 GLint* range, GLint* precision); | |
165 void (*GetShaderSource)( | |
166 PP_Resource context, GLuint shader, GLsizei bufsize, GLsizei* length, | |
167 char* source); | |
168 const GLubyte* (*GetString)(PP_Resource context, GLenum name); | |
169 void (*GetTexParameterfv)( | |
170 PP_Resource context, GLenum target, GLenum pname, GLfloat* params); | |
171 void (*GetTexParameteriv)( | |
172 PP_Resource context, GLenum target, GLenum pname, GLint* params); | |
173 void (*GetUniformfv)( | |
174 PP_Resource context, GLuint program, GLint location, GLfloat* params); | |
175 void (*GetUniformiv)( | |
176 PP_Resource context, GLuint program, GLint location, GLint* params); | |
177 GLint (*GetUniformLocation)( | |
178 PP_Resource context, GLuint program, const char* name); | |
179 void (*GetVertexAttribfv)( | |
180 PP_Resource context, GLuint index, GLenum pname, GLfloat* params); | |
181 void (*GetVertexAttribiv)( | |
182 PP_Resource context, GLuint index, GLenum pname, GLint* params); | |
183 void (*GetVertexAttribPointerv)( | |
184 PP_Resource context, GLuint index, GLenum pname, void** pointer); | |
185 void (*Hint)(PP_Resource context, GLenum target, GLenum mode); | |
186 GLboolean (*IsBuffer)(PP_Resource context, GLuint buffer); | |
187 GLboolean (*IsEnabled)(PP_Resource context, GLenum cap); | |
188 GLboolean (*IsFramebuffer)(PP_Resource context, GLuint framebuffer); | |
189 GLboolean (*IsProgram)(PP_Resource context, GLuint program); | |
190 GLboolean (*IsRenderbuffer)(PP_Resource context, GLuint renderbuffer); | |
191 GLboolean (*IsShader)(PP_Resource context, GLuint shader); | |
192 GLboolean (*IsTexture)(PP_Resource context, GLuint texture); | |
193 void (*LineWidth)(PP_Resource context, GLfloat width); | |
194 void (*LinkProgram)(PP_Resource context, GLuint program); | |
195 void (*PixelStorei)(PP_Resource context, GLenum pname, GLint param); | |
196 void (*PolygonOffset)(PP_Resource context, GLfloat factor, GLfloat units); | |
197 void (*ReadPixels)( | |
198 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height, | |
199 GLenum format, GLenum type, void* pixels); | |
200 void (*ReleaseShaderCompiler)(PP_Resource context); | |
201 void (*RenderbufferStorage)( | |
202 PP_Resource context, GLenum target, GLenum internalformat, GLsizei width, | |
203 GLsizei height); | |
204 void (*SampleCoverage)( | |
205 PP_Resource context, GLclampf value, GLboolean invert); | |
206 void (*Scissor)( | |
207 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height); | |
208 void (*ShaderBinary)( | |
209 PP_Resource context, GLsizei n, const GLuint* shaders, | |
210 GLenum binaryformat, const void* binary, GLsizei length); | |
211 void (*ShaderSource)( | |
212 PP_Resource context, GLuint shader, GLsizei count, const char** str, | |
213 const GLint* length); | |
214 void (*StencilFunc)( | |
215 PP_Resource context, GLenum func, GLint ref, GLuint mask); | |
216 void (*StencilFuncSeparate)( | |
217 PP_Resource context, GLenum face, GLenum func, GLint ref, GLuint mask); | |
218 void (*StencilMask)(PP_Resource context, GLuint mask); | |
219 void (*StencilMaskSeparate)(PP_Resource context, GLenum face, GLuint mask); | |
220 void (*StencilOp)( | |
221 PP_Resource context, GLenum fail, GLenum zfail, GLenum zpass); | |
222 void (*StencilOpSeparate)( | |
223 PP_Resource context, GLenum face, GLenum fail, GLenum zfail, | |
224 GLenum zpass); | |
225 void (*TexImage2D)( | |
226 PP_Resource context, GLenum target, GLint level, GLint internalformat, | |
227 GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, | |
228 const void* pixels); | |
229 void (*TexParameterf)( | |
230 PP_Resource context, GLenum target, GLenum pname, GLfloat param); | |
231 void (*TexParameterfv)( | |
232 PP_Resource context, GLenum target, GLenum pname, const GLfloat* params); | |
233 void (*TexParameteri)( | |
234 PP_Resource context, GLenum target, GLenum pname, GLint param); | |
235 void (*TexParameteriv)( | |
236 PP_Resource context, GLenum target, GLenum pname, const GLint* params); | |
237 void (*TexSubImage2D)( | |
238 PP_Resource context, GLenum target, GLint level, GLint xoffset, | |
239 GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, | |
240 const void* pixels); | |
241 void (*Uniform1f)(PP_Resource context, GLint location, GLfloat x); | |
242 void (*Uniform1fv)( | |
243 PP_Resource context, GLint location, GLsizei count, const GLfloat* v); | |
244 void (*Uniform1i)(PP_Resource context, GLint location, GLint x); | |
245 void (*Uniform1iv)( | |
246 PP_Resource context, GLint location, GLsizei count, const GLint* v); | |
247 void (*Uniform2f)(PP_Resource context, GLint location, GLfloat x, GLfloat y); | |
248 void (*Uniform2fv)( | |
249 PP_Resource context, GLint location, GLsizei count, const GLfloat* v); | |
250 void (*Uniform2i)(PP_Resource context, GLint location, GLint x, GLint y); | |
251 void (*Uniform2iv)( | |
252 PP_Resource context, GLint location, GLsizei count, const GLint* v); | |
253 void (*Uniform3f)( | |
254 PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z); | |
255 void (*Uniform3fv)( | |
256 PP_Resource context, GLint location, GLsizei count, const GLfloat* v); | |
257 void (*Uniform3i)( | |
258 PP_Resource context, GLint location, GLint x, GLint y, GLint z); | |
259 void (*Uniform3iv)( | |
260 PP_Resource context, GLint location, GLsizei count, const GLint* v); | |
261 void (*Uniform4f)( | |
262 PP_Resource context, GLint location, GLfloat x, GLfloat y, GLfloat z, | |
263 GLfloat w); | |
264 void (*Uniform4fv)( | |
265 PP_Resource context, GLint location, GLsizei count, const GLfloat* v); | |
266 void (*Uniform4i)( | |
267 PP_Resource context, GLint location, GLint x, GLint y, GLint z, GLint w); | |
268 void (*Uniform4iv)( | |
269 PP_Resource context, GLint location, GLsizei count, const GLint* v); | |
270 void (*UniformMatrix2fv)( | |
271 PP_Resource context, GLint location, GLsizei count, GLboolean transpose, | |
272 const GLfloat* value); | |
273 void (*UniformMatrix3fv)( | |
274 PP_Resource context, GLint location, GLsizei count, GLboolean transpose, | |
275 const GLfloat* value); | |
276 void (*UniformMatrix4fv)( | |
277 PP_Resource context, GLint location, GLsizei count, GLboolean transpose, | |
278 const GLfloat* value); | |
279 void (*UseProgram)(PP_Resource context, GLuint program); | |
280 void (*ValidateProgram)(PP_Resource context, GLuint program); | |
281 void (*VertexAttrib1f)(PP_Resource context, GLuint indx, GLfloat x); | |
282 void (*VertexAttrib1fv)( | |
283 PP_Resource context, GLuint indx, const GLfloat* values); | |
284 void (*VertexAttrib2f)( | |
285 PP_Resource context, GLuint indx, GLfloat x, GLfloat y); | |
286 void (*VertexAttrib2fv)( | |
287 PP_Resource context, GLuint indx, const GLfloat* values); | |
288 void (*VertexAttrib3f)( | |
289 PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z); | |
290 void (*VertexAttrib3fv)( | |
291 PP_Resource context, GLuint indx, const GLfloat* values); | |
292 void (*VertexAttrib4f)( | |
293 PP_Resource context, GLuint indx, GLfloat x, GLfloat y, GLfloat z, | |
294 GLfloat w); | |
295 void (*VertexAttrib4fv)( | |
296 PP_Resource context, GLuint indx, const GLfloat* values); | |
297 void (*VertexAttribPointer)( | |
298 PP_Resource context, GLuint indx, GLint size, GLenum type, | |
299 GLboolean normalized, GLsizei stride, const void* ptr); | |
300 void (*Viewport)( | |
301 PP_Resource context, GLint x, GLint y, GLsizei width, GLsizei height); | |
302 }; | |
303 | |
304 #endif // PPAPI_C_PPB_OPENGLES_H_ | |
305 | |
OLD | NEW |