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