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