| 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 #include <GLES2/gl2.h> | 7 #include <GLES2/gl2.h> |
| 8 #include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" |
| 8 | 9 |
| 9 void GL_APIENTRY glActiveTexture(GLenum texture) { | 10 void GL_APIENTRY glActiveTexture(GLenum texture) { |
| 11 glGetInterfacePPAPI()->ActiveTexture(glGetCurrentContextPPAPI(), texture); |
| 10 } | 12 } |
| 11 | 13 |
| 12 void GL_APIENTRY glAttachShader(GLuint program, GLuint shader) { | 14 void GL_APIENTRY glAttachShader(GLuint program, GLuint shader) { |
| 15 glGetInterfacePPAPI()->AttachShader( |
| 16 glGetCurrentContextPPAPI(), program, shader); |
| 13 } | 17 } |
| 14 | 18 |
| 15 void GL_APIENTRY glBindAttribLocation( | 19 void GL_APIENTRY glBindAttribLocation( |
| 16 GLuint program, GLuint index, const char* name) { | 20 GLuint program, GLuint index, const char* name) { |
| 21 glGetInterfacePPAPI()->BindAttribLocation( |
| 22 glGetCurrentContextPPAPI(), program, index, name); |
| 17 } | 23 } |
| 18 | 24 |
| 19 void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer) { | 25 void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer) { |
| 26 glGetInterfacePPAPI()->BindBuffer( |
| 27 glGetCurrentContextPPAPI(), target, buffer); |
| 20 } | 28 } |
| 21 | 29 |
| 22 void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer) { | 30 void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer) { |
| 31 glGetInterfacePPAPI()->BindFramebuffer( |
| 32 glGetCurrentContextPPAPI(), target, framebuffer); |
| 23 } | 33 } |
| 24 | 34 |
| 25 void GL_APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer) { | 35 void GL_APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer) { |
| 36 glGetInterfacePPAPI()->BindRenderbuffer( |
| 37 glGetCurrentContextPPAPI(), target, renderbuffer); |
| 26 } | 38 } |
| 27 | 39 |
| 28 void GL_APIENTRY glBindTexture(GLenum target, GLuint texture) { | 40 void GL_APIENTRY glBindTexture(GLenum target, GLuint texture) { |
| 41 glGetInterfacePPAPI()->BindTexture( |
| 42 glGetCurrentContextPPAPI(), target, texture); |
| 29 } | 43 } |
| 30 | 44 |
| 31 void GL_APIENTRY glBlendColor( | 45 void GL_APIENTRY glBlendColor( |
| 32 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { | 46 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { |
| 47 glGetInterfacePPAPI()->BlendColor( |
| 48 glGetCurrentContextPPAPI(), red, green, blue, alpha); |
| 33 } | 49 } |
| 34 | 50 |
| 35 void GL_APIENTRY glBlendEquation(GLenum mode) { | 51 void GL_APIENTRY glBlendEquation(GLenum mode) { |
| 52 glGetInterfacePPAPI()->BlendEquation(glGetCurrentContextPPAPI(), mode); |
| 36 } | 53 } |
| 37 | 54 |
| 38 void GL_APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { | 55 void GL_APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { |
| 56 glGetInterfacePPAPI()->BlendEquationSeparate( |
| 57 glGetCurrentContextPPAPI(), modeRGB, modeAlpha); |
| 39 } | 58 } |
| 40 | 59 |
| 41 void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor) { | 60 void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor) { |
| 61 glGetInterfacePPAPI()->BlendFunc( |
| 62 glGetCurrentContextPPAPI(), sfactor, dfactor); |
| 42 } | 63 } |
| 43 | 64 |
| 44 void GL_APIENTRY glBlendFuncSeparate( | 65 void GL_APIENTRY glBlendFuncSeparate( |
| 45 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { | 66 GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { |
| 67 glGetInterfacePPAPI()->BlendFuncSeparate( |
| 68 glGetCurrentContextPPAPI(), srcRGB, dstRGB, srcAlpha, dstAlpha); |
| 46 } | 69 } |
| 47 | 70 |
| 48 void GL_APIENTRY glBufferData( | 71 void GL_APIENTRY glBufferData( |
| 49 GLenum target, GLsizeiptr size, const void* data, GLenum usage) { | 72 GLenum target, GLsizeiptr size, const void* data, GLenum usage) { |
| 73 glGetInterfacePPAPI()->BufferData( |
| 74 glGetCurrentContextPPAPI(), target, size, data, usage); |
| 50 } | 75 } |
| 51 | 76 |
| 52 void GL_APIENTRY glBufferSubData( | 77 void GL_APIENTRY glBufferSubData( |
| 53 GLenum target, GLintptr offset, GLsizeiptr size, const void* data) { | 78 GLenum target, GLintptr offset, GLsizeiptr size, const void* data) { |
| 79 glGetInterfacePPAPI()->BufferSubData( |
| 80 glGetCurrentContextPPAPI(), target, offset, size, data); |
| 54 } | 81 } |
| 55 | 82 |
| 56 GLenum GL_APIENTRY glCheckFramebufferStatus(GLenum target) { | 83 GLenum GL_APIENTRY glCheckFramebufferStatus(GLenum target) { |
| 57 return 0; | 84 return glGetInterfacePPAPI()->CheckFramebufferStatus( |
| 85 glGetCurrentContextPPAPI(), target); |
| 58 } | 86 } |
| 59 | 87 |
| 60 void GL_APIENTRY glClear(GLbitfield mask) { | 88 void GL_APIENTRY glClear(GLbitfield mask) { |
| 89 glGetInterfacePPAPI()->Clear(glGetCurrentContextPPAPI(), mask); |
| 61 } | 90 } |
| 62 | 91 |
| 63 void GL_APIENTRY glClearColor( | 92 void GL_APIENTRY glClearColor( |
| 64 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { | 93 GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { |
| 94 glGetInterfacePPAPI()->ClearColor( |
| 95 glGetCurrentContextPPAPI(), red, green, blue, alpha); |
| 65 } | 96 } |
| 66 | 97 |
| 67 void GL_APIENTRY glClearDepthf(GLclampf depth) { | 98 void GL_APIENTRY glClearDepthf(GLclampf depth) { |
| 99 glGetInterfacePPAPI()->ClearDepthf(glGetCurrentContextPPAPI(), depth); |
| 68 } | 100 } |
| 69 | 101 |
| 70 void GL_APIENTRY glClearStencil(GLint s) { | 102 void GL_APIENTRY glClearStencil(GLint s) { |
| 103 glGetInterfacePPAPI()->ClearStencil(glGetCurrentContextPPAPI(), s); |
| 71 } | 104 } |
| 72 | 105 |
| 73 void GL_APIENTRY glColorMask( | 106 void GL_APIENTRY glColorMask( |
| 74 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { | 107 GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { |
| 108 glGetInterfacePPAPI()->ColorMask( |
| 109 glGetCurrentContextPPAPI(), red, green, blue, alpha); |
| 75 } | 110 } |
| 76 | 111 |
| 77 void GL_APIENTRY glCompileShader(GLuint shader) { | 112 void GL_APIENTRY glCompileShader(GLuint shader) { |
| 113 glGetInterfacePPAPI()->CompileShader(glGetCurrentContextPPAPI(), shader); |
| 78 } | 114 } |
| 79 | 115 |
| 80 void GL_APIENTRY glCompressedTexImage2D( | 116 void GL_APIENTRY glCompressedTexImage2D( |
| 81 GLenum target, GLint level, GLenum internalformat, GLsizei width, | 117 GLenum target, GLint level, GLenum internalformat, GLsizei width, |
| 82 GLsizei height, GLint border, GLsizei imageSize, const void* data) { | 118 GLsizei height, GLint border, GLsizei imageSize, const void* data) { |
| 119 glGetInterfacePPAPI()->CompressedTexImage2D( |
| 120 glGetCurrentContextPPAPI(), target, level, internalformat, width, height, |
| 121 border, imageSize, data); |
| 83 } | 122 } |
| 84 | 123 |
| 85 void GL_APIENTRY glCompressedTexSubImage2D( | 124 void GL_APIENTRY glCompressedTexSubImage2D( |
| 86 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, | 125 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, |
| 87 GLsizei height, GLenum format, GLsizei imageSize, const void* data) { | 126 GLsizei height, GLenum format, GLsizei imageSize, const void* data) { |
| 127 glGetInterfacePPAPI()->CompressedTexSubImage2D( |
| 128 glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, |
| 129 height, format, imageSize, data); |
| 88 } | 130 } |
| 89 | 131 |
| 90 void GL_APIENTRY glCopyTexImage2D( | 132 void GL_APIENTRY glCopyTexImage2D( |
| 91 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, | 133 GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, |
| 92 GLsizei width, GLsizei height, GLint border) { | 134 GLsizei width, GLsizei height, GLint border) { |
| 135 glGetInterfacePPAPI()->CopyTexImage2D( |
| 136 glGetCurrentContextPPAPI(), target, level, internalformat, x, y, width, |
| 137 height, border); |
| 93 } | 138 } |
| 94 | 139 |
| 95 void GL_APIENTRY glCopyTexSubImage2D( | 140 void GL_APIENTRY glCopyTexSubImage2D( |
| 96 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, | 141 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, |
| 97 GLsizei width, GLsizei height) { | 142 GLsizei width, GLsizei height) { |
| 143 glGetInterfacePPAPI()->CopyTexSubImage2D( |
| 144 glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, x, y, width, |
| 145 height); |
| 98 } | 146 } |
| 99 | 147 |
| 100 GLuint GL_APIENTRY glCreateProgram() { | 148 GLuint GL_APIENTRY glCreateProgram() { |
| 101 return 0; | 149 return glGetInterfacePPAPI()->CreateProgram(glGetCurrentContextPPAPI()); |
| 102 } | 150 } |
| 103 | 151 |
| 104 GLuint GL_APIENTRY glCreateShader(GLenum type) { | 152 GLuint GL_APIENTRY glCreateShader(GLenum type) { |
| 105 return 0; | 153 return glGetInterfacePPAPI()->CreateShader(glGetCurrentContextPPAPI(), type); |
| 106 } | 154 } |
| 107 | 155 |
| 108 void GL_APIENTRY glCullFace(GLenum mode) { | 156 void GL_APIENTRY glCullFace(GLenum mode) { |
| 157 glGetInterfacePPAPI()->CullFace(glGetCurrentContextPPAPI(), mode); |
| 109 } | 158 } |
| 110 | 159 |
| 111 void GL_APIENTRY glDeleteBuffers(GLsizei n, const GLuint* buffers) { | 160 void GL_APIENTRY glDeleteBuffers(GLsizei n, const GLuint* buffers) { |
| 161 glGetInterfacePPAPI()->DeleteBuffers(glGetCurrentContextPPAPI(), n, buffers); |
| 112 } | 162 } |
| 113 | 163 |
| 114 void GL_APIENTRY glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers) { | 164 void GL_APIENTRY glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers) { |
| 165 glGetInterfacePPAPI()->DeleteFramebuffers( |
| 166 glGetCurrentContextPPAPI(), n, framebuffers); |
| 115 } | 167 } |
| 116 | 168 |
| 117 void GL_APIENTRY glDeleteProgram(GLuint program) { | 169 void GL_APIENTRY glDeleteProgram(GLuint program) { |
| 170 glGetInterfacePPAPI()->DeleteProgram(glGetCurrentContextPPAPI(), program); |
| 118 } | 171 } |
| 119 | 172 |
| 120 void GL_APIENTRY glDeleteRenderbuffers( | 173 void GL_APIENTRY glDeleteRenderbuffers( |
| 121 GLsizei n, const GLuint* renderbuffers) { | 174 GLsizei n, const GLuint* renderbuffers) { |
| 175 glGetInterfacePPAPI()->DeleteRenderbuffers( |
| 176 glGetCurrentContextPPAPI(), n, renderbuffers); |
| 122 } | 177 } |
| 123 | 178 |
| 124 void GL_APIENTRY glDeleteShader(GLuint shader) { | 179 void GL_APIENTRY glDeleteShader(GLuint shader) { |
| 180 glGetInterfacePPAPI()->DeleteShader(glGetCurrentContextPPAPI(), shader); |
| 125 } | 181 } |
| 126 | 182 |
| 127 void GL_APIENTRY glDeleteTextures(GLsizei n, const GLuint* textures) { | 183 void GL_APIENTRY glDeleteTextures(GLsizei n, const GLuint* textures) { |
| 184 glGetInterfacePPAPI()->DeleteTextures( |
| 185 glGetCurrentContextPPAPI(), n, textures); |
| 128 } | 186 } |
| 129 | 187 |
| 130 void GL_APIENTRY glDepthFunc(GLenum func) { | 188 void GL_APIENTRY glDepthFunc(GLenum func) { |
| 189 glGetInterfacePPAPI()->DepthFunc(glGetCurrentContextPPAPI(), func); |
| 131 } | 190 } |
| 132 | 191 |
| 133 void GL_APIENTRY glDepthMask(GLboolean flag) { | 192 void GL_APIENTRY glDepthMask(GLboolean flag) { |
| 193 glGetInterfacePPAPI()->DepthMask(glGetCurrentContextPPAPI(), flag); |
| 134 } | 194 } |
| 135 | 195 |
| 136 void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar) { | 196 void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar) { |
| 197 glGetInterfacePPAPI()->DepthRangef(glGetCurrentContextPPAPI(), zNear, zFar); |
| 137 } | 198 } |
| 138 | 199 |
| 139 void GL_APIENTRY glDetachShader(GLuint program, GLuint shader) { | 200 void GL_APIENTRY glDetachShader(GLuint program, GLuint shader) { |
| 201 glGetInterfacePPAPI()->DetachShader( |
| 202 glGetCurrentContextPPAPI(), program, shader); |
| 140 } | 203 } |
| 141 | 204 |
| 142 void GL_APIENTRY glDisable(GLenum cap) { | 205 void GL_APIENTRY glDisable(GLenum cap) { |
| 206 glGetInterfacePPAPI()->Disable(glGetCurrentContextPPAPI(), cap); |
| 143 } | 207 } |
| 144 | 208 |
| 145 void GL_APIENTRY glDisableVertexAttribArray(GLuint index) { | 209 void GL_APIENTRY glDisableVertexAttribArray(GLuint index) { |
| 210 glGetInterfacePPAPI()->DisableVertexAttribArray( |
| 211 glGetCurrentContextPPAPI(), index); |
| 146 } | 212 } |
| 147 | 213 |
| 148 void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count) { | 214 void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count) { |
| 215 glGetInterfacePPAPI()->DrawArrays( |
| 216 glGetCurrentContextPPAPI(), mode, first, count); |
| 149 } | 217 } |
| 150 | 218 |
| 151 void GL_APIENTRY glDrawElements( | 219 void GL_APIENTRY glDrawElements( |
| 152 GLenum mode, GLsizei count, GLenum type, const void* indices) { | 220 GLenum mode, GLsizei count, GLenum type, const void* indices) { |
| 221 glGetInterfacePPAPI()->DrawElements( |
| 222 glGetCurrentContextPPAPI(), mode, count, type, indices); |
| 153 } | 223 } |
| 154 | 224 |
| 155 void GL_APIENTRY glEnable(GLenum cap) { | 225 void GL_APIENTRY glEnable(GLenum cap) { |
| 226 glGetInterfacePPAPI()->Enable(glGetCurrentContextPPAPI(), cap); |
| 156 } | 227 } |
| 157 | 228 |
| 158 void GL_APIENTRY glEnableVertexAttribArray(GLuint index) { | 229 void GL_APIENTRY glEnableVertexAttribArray(GLuint index) { |
| 230 glGetInterfacePPAPI()->EnableVertexAttribArray( |
| 231 glGetCurrentContextPPAPI(), index); |
| 159 } | 232 } |
| 160 | 233 |
| 161 void GL_APIENTRY glFinish() { | 234 void GL_APIENTRY glFinish() { |
| 235 glGetInterfacePPAPI()->Finish(glGetCurrentContextPPAPI()); |
| 162 } | 236 } |
| 163 | 237 |
| 164 void GL_APIENTRY glFlush() { | 238 void GL_APIENTRY glFlush() { |
| 239 glGetInterfacePPAPI()->Flush(glGetCurrentContextPPAPI()); |
| 165 } | 240 } |
| 166 | 241 |
| 167 void GL_APIENTRY glFramebufferRenderbuffer( | 242 void GL_APIENTRY glFramebufferRenderbuffer( |
| 168 GLenum target, GLenum attachment, GLenum renderbuffertarget, | 243 GLenum target, GLenum attachment, GLenum renderbuffertarget, |
| 169 GLuint renderbuffer) { | 244 GLuint renderbuffer) { |
| 245 glGetInterfacePPAPI()->FramebufferRenderbuffer( |
| 246 glGetCurrentContextPPAPI(), target, attachment, renderbuffertarget, |
| 247 renderbuffer); |
| 170 } | 248 } |
| 171 | 249 |
| 172 void GL_APIENTRY glFramebufferTexture2D( | 250 void GL_APIENTRY glFramebufferTexture2D( |
| 173 GLenum target, GLenum attachment, GLenum textarget, GLuint texture, | 251 GLenum target, GLenum attachment, GLenum textarget, GLuint texture, |
| 174 GLint level) { | 252 GLint level) { |
| 253 glGetInterfacePPAPI()->FramebufferTexture2D( |
| 254 glGetCurrentContextPPAPI(), target, attachment, textarget, texture, |
| 255 level); |
| 175 } | 256 } |
| 176 | 257 |
| 177 void GL_APIENTRY glFrontFace(GLenum mode) { | 258 void GL_APIENTRY glFrontFace(GLenum mode) { |
| 259 glGetInterfacePPAPI()->FrontFace(glGetCurrentContextPPAPI(), mode); |
| 178 } | 260 } |
| 179 | 261 |
| 180 void GL_APIENTRY glGenBuffers(GLsizei n, GLuint* buffers) { | 262 void GL_APIENTRY glGenBuffers(GLsizei n, GLuint* buffers) { |
| 263 glGetInterfacePPAPI()->GenBuffers(glGetCurrentContextPPAPI(), n, buffers); |
| 181 } | 264 } |
| 182 | 265 |
| 183 void GL_APIENTRY glGenerateMipmap(GLenum target) { | 266 void GL_APIENTRY glGenerateMipmap(GLenum target) { |
| 267 glGetInterfacePPAPI()->GenerateMipmap(glGetCurrentContextPPAPI(), target); |
| 184 } | 268 } |
| 185 | 269 |
| 186 void GL_APIENTRY glGenFramebuffers(GLsizei n, GLuint* framebuffers) { | 270 void GL_APIENTRY glGenFramebuffers(GLsizei n, GLuint* framebuffers) { |
| 271 glGetInterfacePPAPI()->GenFramebuffers( |
| 272 glGetCurrentContextPPAPI(), n, framebuffers); |
| 187 } | 273 } |
| 188 | 274 |
| 189 void GL_APIENTRY glGenRenderbuffers(GLsizei n, GLuint* renderbuffers) { | 275 void GL_APIENTRY glGenRenderbuffers(GLsizei n, GLuint* renderbuffers) { |
| 276 glGetInterfacePPAPI()->GenRenderbuffers( |
| 277 glGetCurrentContextPPAPI(), n, renderbuffers); |
| 190 } | 278 } |
| 191 | 279 |
| 192 void GL_APIENTRY glGenTextures(GLsizei n, GLuint* textures) { | 280 void GL_APIENTRY glGenTextures(GLsizei n, GLuint* textures) { |
| 281 glGetInterfacePPAPI()->GenTextures(glGetCurrentContextPPAPI(), n, textures); |
| 193 } | 282 } |
| 194 | 283 |
| 195 void GL_APIENTRY glGetActiveAttrib( | 284 void GL_APIENTRY glGetActiveAttrib( |
| 196 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, | 285 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, |
| 197 GLenum* type, char* name) { | 286 GLenum* type, char* name) { |
| 287 glGetInterfacePPAPI()->GetActiveAttrib( |
| 288 glGetCurrentContextPPAPI(), program, index, bufsize, length, size, type, |
| 289 name); |
| 198 } | 290 } |
| 199 | 291 |
| 200 void GL_APIENTRY glGetActiveUniform( | 292 void GL_APIENTRY glGetActiveUniform( |
| 201 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, | 293 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, |
| 202 GLenum* type, char* name) { | 294 GLenum* type, char* name) { |
| 295 glGetInterfacePPAPI()->GetActiveUniform( |
| 296 glGetCurrentContextPPAPI(), program, index, bufsize, length, size, type, |
| 297 name); |
| 203 } | 298 } |
| 204 | 299 |
| 205 void GL_APIENTRY glGetAttachedShaders( | 300 void GL_APIENTRY glGetAttachedShaders( |
| 206 GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) { | 301 GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) { |
| 302 glGetInterfacePPAPI()->GetAttachedShaders( |
| 303 glGetCurrentContextPPAPI(), program, maxcount, count, shaders); |
| 207 } | 304 } |
| 208 | 305 |
| 209 GLint GL_APIENTRY glGetAttribLocation(GLuint program, const char* name) { | 306 GLint GL_APIENTRY glGetAttribLocation(GLuint program, const char* name) { |
| 210 return 0; | 307 return glGetInterfacePPAPI()->GetAttribLocation( |
| 308 glGetCurrentContextPPAPI(), program, name); |
| 211 } | 309 } |
| 212 | 310 |
| 213 void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params) { | 311 void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params) { |
| 312 glGetInterfacePPAPI()->GetBooleanv( |
| 313 glGetCurrentContextPPAPI(), pname, params); |
| 214 } | 314 } |
| 215 | 315 |
| 216 void GL_APIENTRY glGetBufferParameteriv( | 316 void GL_APIENTRY glGetBufferParameteriv( |
| 217 GLenum target, GLenum pname, GLint* params) { | 317 GLenum target, GLenum pname, GLint* params) { |
| 318 glGetInterfacePPAPI()->GetBufferParameteriv( |
| 319 glGetCurrentContextPPAPI(), target, pname, params); |
| 218 } | 320 } |
| 219 | 321 |
| 220 GLenum GL_APIENTRY glGetError() { | 322 GLenum GL_APIENTRY glGetError() { |
| 221 return 0; | 323 return glGetInterfacePPAPI()->GetError(glGetCurrentContextPPAPI()); |
| 222 } | 324 } |
| 223 | 325 |
| 224 void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params) { | 326 void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params) { |
| 327 glGetInterfacePPAPI()->GetFloatv(glGetCurrentContextPPAPI(), pname, params); |
| 225 } | 328 } |
| 226 | 329 |
| 227 void GL_APIENTRY glGetFramebufferAttachmentParameteriv( | 330 void GL_APIENTRY glGetFramebufferAttachmentParameteriv( |
| 228 GLenum target, GLenum attachment, GLenum pname, GLint* params) { | 331 GLenum target, GLenum attachment, GLenum pname, GLint* params) { |
| 332 glGetInterfacePPAPI()->GetFramebufferAttachmentParameteriv( |
| 333 glGetCurrentContextPPAPI(), target, attachment, pname, params); |
| 229 } | 334 } |
| 230 | 335 |
| 231 void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params) { | 336 void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params) { |
| 337 glGetInterfacePPAPI()->GetIntegerv( |
| 338 glGetCurrentContextPPAPI(), pname, params); |
| 232 } | 339 } |
| 233 | 340 |
| 234 void GL_APIENTRY glGetProgramiv(GLuint program, GLenum pname, GLint* params) { | 341 void GL_APIENTRY glGetProgramiv(GLuint program, GLenum pname, GLint* params) { |
| 342 glGetInterfacePPAPI()->GetProgramiv( |
| 343 glGetCurrentContextPPAPI(), program, pname, params); |
| 235 } | 344 } |
| 236 | 345 |
| 237 void GL_APIENTRY glGetProgramInfoLog( | 346 void GL_APIENTRY glGetProgramInfoLog( |
| 238 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) { | 347 GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) { |
| 348 glGetInterfacePPAPI()->GetProgramInfoLog( |
| 349 glGetCurrentContextPPAPI(), program, bufsize, length, infolog); |
| 239 } | 350 } |
| 240 | 351 |
| 241 void GL_APIENTRY glGetRenderbufferParameteriv( | 352 void GL_APIENTRY glGetRenderbufferParameteriv( |
| 242 GLenum target, GLenum pname, GLint* params) { | 353 GLenum target, GLenum pname, GLint* params) { |
| 354 glGetInterfacePPAPI()->GetRenderbufferParameteriv( |
| 355 glGetCurrentContextPPAPI(), target, pname, params); |
| 243 } | 356 } |
| 244 | 357 |
| 245 void GL_APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params) { | 358 void GL_APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params) { |
| 359 glGetInterfacePPAPI()->GetShaderiv( |
| 360 glGetCurrentContextPPAPI(), shader, pname, params); |
| 246 } | 361 } |
| 247 | 362 |
| 248 void GL_APIENTRY glGetShaderInfoLog( | 363 void GL_APIENTRY glGetShaderInfoLog( |
| 249 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) { | 364 GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) { |
| 365 glGetInterfacePPAPI()->GetShaderInfoLog( |
| 366 glGetCurrentContextPPAPI(), shader, bufsize, length, infolog); |
| 250 } | 367 } |
| 251 | 368 |
| 252 void GL_APIENTRY glGetShaderPrecisionFormat( | 369 void GL_APIENTRY glGetShaderPrecisionFormat( |
| 253 GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) { | 370 GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) { |
| 371 glGetInterfacePPAPI()->GetShaderPrecisionFormat( |
| 372 glGetCurrentContextPPAPI(), shadertype, precisiontype, range, precision); |
| 254 } | 373 } |
| 255 | 374 |
| 256 void GL_APIENTRY glGetShaderSource( | 375 void GL_APIENTRY glGetShaderSource( |
| 257 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) { | 376 GLuint shader, GLsizei bufsize, GLsizei* length, char* source) { |
| 377 glGetInterfacePPAPI()->GetShaderSource( |
| 378 glGetCurrentContextPPAPI(), shader, bufsize, length, source); |
| 258 } | 379 } |
| 259 | 380 |
| 260 const GLubyte* GL_APIENTRY glGetString(GLenum name) { | 381 const GLubyte* GL_APIENTRY glGetString(GLenum name) { |
| 261 return 0; | 382 return glGetInterfacePPAPI()->GetString(glGetCurrentContextPPAPI(), name); |
| 262 } | 383 } |
| 263 | 384 |
| 264 void GL_APIENTRY glGetTexParameterfv( | 385 void GL_APIENTRY glGetTexParameterfv( |
| 265 GLenum target, GLenum pname, GLfloat* params) { | 386 GLenum target, GLenum pname, GLfloat* params) { |
| 387 glGetInterfacePPAPI()->GetTexParameterfv( |
| 388 glGetCurrentContextPPAPI(), target, pname, params); |
| 266 } | 389 } |
| 267 | 390 |
| 268 void GL_APIENTRY glGetTexParameteriv( | 391 void GL_APIENTRY glGetTexParameteriv( |
| 269 GLenum target, GLenum pname, GLint* params) { | 392 GLenum target, GLenum pname, GLint* params) { |
| 393 glGetInterfacePPAPI()->GetTexParameteriv( |
| 394 glGetCurrentContextPPAPI(), target, pname, params); |
| 270 } | 395 } |
| 271 | 396 |
| 272 void GL_APIENTRY glGetUniformfv( | 397 void GL_APIENTRY glGetUniformfv( |
| 273 GLuint program, GLint location, GLfloat* params) { | 398 GLuint program, GLint location, GLfloat* params) { |
| 399 glGetInterfacePPAPI()->GetUniformfv( |
| 400 glGetCurrentContextPPAPI(), program, location, params); |
| 274 } | 401 } |
| 275 | 402 |
| 276 void GL_APIENTRY glGetUniformiv( | 403 void GL_APIENTRY glGetUniformiv( |
| 277 GLuint program, GLint location, GLint* params) { | 404 GLuint program, GLint location, GLint* params) { |
| 405 glGetInterfacePPAPI()->GetUniformiv( |
| 406 glGetCurrentContextPPAPI(), program, location, params); |
| 278 } | 407 } |
| 279 | 408 |
| 280 GLint GL_APIENTRY glGetUniformLocation(GLuint program, const char* name) { | 409 GLint GL_APIENTRY glGetUniformLocation(GLuint program, const char* name) { |
| 281 return 0; | 410 return glGetInterfacePPAPI()->GetUniformLocation( |
| 411 glGetCurrentContextPPAPI(), program, name); |
| 282 } | 412 } |
| 283 | 413 |
| 284 void GL_APIENTRY glGetVertexAttribfv( | 414 void GL_APIENTRY glGetVertexAttribfv( |
| 285 GLuint index, GLenum pname, GLfloat* params) { | 415 GLuint index, GLenum pname, GLfloat* params) { |
| 416 glGetInterfacePPAPI()->GetVertexAttribfv( |
| 417 glGetCurrentContextPPAPI(), index, pname, params); |
| 286 } | 418 } |
| 287 | 419 |
| 288 void GL_APIENTRY glGetVertexAttribiv( | 420 void GL_APIENTRY glGetVertexAttribiv( |
| 289 GLuint index, GLenum pname, GLint* params) { | 421 GLuint index, GLenum pname, GLint* params) { |
| 422 glGetInterfacePPAPI()->GetVertexAttribiv( |
| 423 glGetCurrentContextPPAPI(), index, pname, params); |
| 290 } | 424 } |
| 291 | 425 |
| 292 void GL_APIENTRY glGetVertexAttribPointerv( | 426 void GL_APIENTRY glGetVertexAttribPointerv( |
| 293 GLuint index, GLenum pname, void** pointer) { | 427 GLuint index, GLenum pname, void** pointer) { |
| 428 glGetInterfacePPAPI()->GetVertexAttribPointerv( |
| 429 glGetCurrentContextPPAPI(), index, pname, pointer); |
| 294 } | 430 } |
| 295 | 431 |
| 296 void GL_APIENTRY glHint(GLenum target, GLenum mode) { | 432 void GL_APIENTRY glHint(GLenum target, GLenum mode) { |
| 433 glGetInterfacePPAPI()->Hint(glGetCurrentContextPPAPI(), target, mode); |
| 297 } | 434 } |
| 298 | 435 |
| 299 GLboolean GL_APIENTRY glIsBuffer(GLuint buffer) { | 436 GLboolean GL_APIENTRY glIsBuffer(GLuint buffer) { |
| 300 return 0; | 437 return glGetInterfacePPAPI()->IsBuffer(glGetCurrentContextPPAPI(), buffer); |
| 301 } | 438 } |
| 302 | 439 |
| 303 GLboolean GL_APIENTRY glIsEnabled(GLenum cap) { | 440 GLboolean GL_APIENTRY glIsEnabled(GLenum cap) { |
| 304 return 0; | 441 return glGetInterfacePPAPI()->IsEnabled(glGetCurrentContextPPAPI(), cap); |
| 305 } | 442 } |
| 306 | 443 |
| 307 GLboolean GL_APIENTRY glIsFramebuffer(GLuint framebuffer) { | 444 GLboolean GL_APIENTRY glIsFramebuffer(GLuint framebuffer) { |
| 308 return 0; | 445 return glGetInterfacePPAPI()->IsFramebuffer( |
| 446 glGetCurrentContextPPAPI(), framebuffer); |
| 309 } | 447 } |
| 310 | 448 |
| 311 GLboolean GL_APIENTRY glIsProgram(GLuint program) { | 449 GLboolean GL_APIENTRY glIsProgram(GLuint program) { |
| 312 return 0; | 450 return glGetInterfacePPAPI()->IsProgram(glGetCurrentContextPPAPI(), program); |
| 313 } | 451 } |
| 314 | 452 |
| 315 GLboolean GL_APIENTRY glIsRenderbuffer(GLuint renderbuffer) { | 453 GLboolean GL_APIENTRY glIsRenderbuffer(GLuint renderbuffer) { |
| 316 return 0; | 454 return glGetInterfacePPAPI()->IsRenderbuffer( |
| 455 glGetCurrentContextPPAPI(), renderbuffer); |
| 317 } | 456 } |
| 318 | 457 |
| 319 GLboolean GL_APIENTRY glIsShader(GLuint shader) { | 458 GLboolean GL_APIENTRY glIsShader(GLuint shader) { |
| 320 return 0; | 459 return glGetInterfacePPAPI()->IsShader(glGetCurrentContextPPAPI(), shader); |
| 321 } | 460 } |
| 322 | 461 |
| 323 GLboolean GL_APIENTRY glIsTexture(GLuint texture) { | 462 GLboolean GL_APIENTRY glIsTexture(GLuint texture) { |
| 324 return 0; | 463 return glGetInterfacePPAPI()->IsTexture(glGetCurrentContextPPAPI(), texture); |
| 325 } | 464 } |
| 326 | 465 |
| 327 void GL_APIENTRY glLineWidth(GLfloat width) { | 466 void GL_APIENTRY glLineWidth(GLfloat width) { |
| 467 glGetInterfacePPAPI()->LineWidth(glGetCurrentContextPPAPI(), width); |
| 328 } | 468 } |
| 329 | 469 |
| 330 void GL_APIENTRY glLinkProgram(GLuint program) { | 470 void GL_APIENTRY glLinkProgram(GLuint program) { |
| 471 glGetInterfacePPAPI()->LinkProgram(glGetCurrentContextPPAPI(), program); |
| 331 } | 472 } |
| 332 | 473 |
| 333 void GL_APIENTRY glPixelStorei(GLenum pname, GLint param) { | 474 void GL_APIENTRY glPixelStorei(GLenum pname, GLint param) { |
| 475 glGetInterfacePPAPI()->PixelStorei(glGetCurrentContextPPAPI(), pname, param); |
| 334 } | 476 } |
| 335 | 477 |
| 336 void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units) { | 478 void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units) { |
| 479 glGetInterfacePPAPI()->PolygonOffset( |
| 480 glGetCurrentContextPPAPI(), factor, units); |
| 337 } | 481 } |
| 338 | 482 |
| 339 void GL_APIENTRY glReadPixels( | 483 void GL_APIENTRY glReadPixels( |
| 340 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, | 484 GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, |
| 341 void* pixels) { | 485 void* pixels) { |
| 486 glGetInterfacePPAPI()->ReadPixels( |
| 487 glGetCurrentContextPPAPI(), x, y, width, height, format, type, pixels); |
| 342 } | 488 } |
| 343 | 489 |
| 344 void GL_APIENTRY glReleaseShaderCompiler() { | 490 void GL_APIENTRY glReleaseShaderCompiler() { |
| 491 glGetInterfacePPAPI()->ReleaseShaderCompiler(glGetCurrentContextPPAPI()); |
| 345 } | 492 } |
| 346 | 493 |
| 347 void GL_APIENTRY glRenderbufferStorage( | 494 void GL_APIENTRY glRenderbufferStorage( |
| 348 GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { | 495 GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { |
| 496 glGetInterfacePPAPI()->RenderbufferStorage( |
| 497 glGetCurrentContextPPAPI(), target, internalformat, width, height); |
| 349 } | 498 } |
| 350 | 499 |
| 351 void GL_APIENTRY glSampleCoverage(GLclampf value, GLboolean invert) { | 500 void GL_APIENTRY glSampleCoverage(GLclampf value, GLboolean invert) { |
| 501 glGetInterfacePPAPI()->SampleCoverage( |
| 502 glGetCurrentContextPPAPI(), value, invert); |
| 352 } | 503 } |
| 353 | 504 |
| 354 void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height) { | 505 void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height) { |
| 506 glGetInterfacePPAPI()->Scissor( |
| 507 glGetCurrentContextPPAPI(), x, y, width, height); |
| 355 } | 508 } |
| 356 | 509 |
| 357 void GL_APIENTRY glShaderBinary( | 510 void GL_APIENTRY glShaderBinary( |
| 358 GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, | 511 GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, |
| 359 GLsizei length) { | 512 GLsizei length) { |
| 513 glGetInterfacePPAPI()->ShaderBinary( |
| 514 glGetCurrentContextPPAPI(), n, shaders, binaryformat, binary, length); |
| 360 } | 515 } |
| 361 | 516 |
| 362 void GL_APIENTRY glShaderSource( | 517 void GL_APIENTRY glShaderSource( |
| 363 GLuint shader, GLsizei count, const char** str, const GLint* length) { | 518 GLuint shader, GLsizei count, const char** str, const GLint* length) { |
| 519 glGetInterfacePPAPI()->ShaderSource( |
| 520 glGetCurrentContextPPAPI(), shader, count, str, length); |
| 364 } | 521 } |
| 365 | 522 |
| 366 void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask) { | 523 void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask) { |
| 524 glGetInterfacePPAPI()->StencilFunc( |
| 525 glGetCurrentContextPPAPI(), func, ref, mask); |
| 367 } | 526 } |
| 368 | 527 |
| 369 void GL_APIENTRY glStencilFuncSeparate( | 528 void GL_APIENTRY glStencilFuncSeparate( |
| 370 GLenum face, GLenum func, GLint ref, GLuint mask) { | 529 GLenum face, GLenum func, GLint ref, GLuint mask) { |
| 530 glGetInterfacePPAPI()->StencilFuncSeparate( |
| 531 glGetCurrentContextPPAPI(), face, func, ref, mask); |
| 371 } | 532 } |
| 372 | 533 |
| 373 void GL_APIENTRY glStencilMask(GLuint mask) { | 534 void GL_APIENTRY glStencilMask(GLuint mask) { |
| 535 glGetInterfacePPAPI()->StencilMask(glGetCurrentContextPPAPI(), mask); |
| 374 } | 536 } |
| 375 | 537 |
| 376 void GL_APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask) { | 538 void GL_APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask) { |
| 539 glGetInterfacePPAPI()->StencilMaskSeparate( |
| 540 glGetCurrentContextPPAPI(), face, mask); |
| 377 } | 541 } |
| 378 | 542 |
| 379 void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) { | 543 void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) { |
| 544 glGetInterfacePPAPI()->StencilOp( |
| 545 glGetCurrentContextPPAPI(), fail, zfail, zpass); |
| 380 } | 546 } |
| 381 | 547 |
| 382 void GL_APIENTRY glStencilOpSeparate( | 548 void GL_APIENTRY glStencilOpSeparate( |
| 383 GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { | 549 GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { |
| 550 glGetInterfacePPAPI()->StencilOpSeparate( |
| 551 glGetCurrentContextPPAPI(), face, fail, zfail, zpass); |
| 384 } | 552 } |
| 385 | 553 |
| 386 void GL_APIENTRY glTexImage2D( | 554 void GL_APIENTRY glTexImage2D( |
| 387 GLenum target, GLint level, GLint internalformat, GLsizei width, | 555 GLenum target, GLint level, GLint internalformat, GLsizei width, |
| 388 GLsizei height, GLint border, GLenum format, GLenum type, | 556 GLsizei height, GLint border, GLenum format, GLenum type, |
| 389 const void* pixels) { | 557 const void* pixels) { |
| 558 glGetInterfacePPAPI()->TexImage2D( |
| 559 glGetCurrentContextPPAPI(), target, level, internalformat, width, height, |
| 560 border, format, type, pixels); |
| 390 } | 561 } |
| 391 | 562 |
| 392 void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param) { | 563 void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param) { |
| 564 glGetInterfacePPAPI()->TexParameterf( |
| 565 glGetCurrentContextPPAPI(), target, pname, param); |
| 393 } | 566 } |
| 394 | 567 |
| 395 void GL_APIENTRY glTexParameterfv( | 568 void GL_APIENTRY glTexParameterfv( |
| 396 GLenum target, GLenum pname, const GLfloat* params) { | 569 GLenum target, GLenum pname, const GLfloat* params) { |
| 570 glGetInterfacePPAPI()->TexParameterfv( |
| 571 glGetCurrentContextPPAPI(), target, pname, params); |
| 397 } | 572 } |
| 398 | 573 |
| 399 void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { | 574 void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { |
| 575 glGetInterfacePPAPI()->TexParameteri( |
| 576 glGetCurrentContextPPAPI(), target, pname, param); |
| 400 } | 577 } |
| 401 | 578 |
| 402 void GL_APIENTRY glTexParameteriv( | 579 void GL_APIENTRY glTexParameteriv( |
| 403 GLenum target, GLenum pname, const GLint* params) { | 580 GLenum target, GLenum pname, const GLint* params) { |
| 581 glGetInterfacePPAPI()->TexParameteriv( |
| 582 glGetCurrentContextPPAPI(), target, pname, params); |
| 404 } | 583 } |
| 405 | 584 |
| 406 void GL_APIENTRY glTexSubImage2D( | 585 void GL_APIENTRY glTexSubImage2D( |
| 407 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, | 586 GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, |
| 408 GLsizei height, GLenum format, GLenum type, const void* pixels) { | 587 GLsizei height, GLenum format, GLenum type, const void* pixels) { |
| 588 glGetInterfacePPAPI()->TexSubImage2D( |
| 589 glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, |
| 590 height, format, type, pixels); |
| 409 } | 591 } |
| 410 | 592 |
| 411 void GL_APIENTRY glUniform1f(GLint location, GLfloat x) { | 593 void GL_APIENTRY glUniform1f(GLint location, GLfloat x) { |
| 594 glGetInterfacePPAPI()->Uniform1f(glGetCurrentContextPPAPI(), location, x); |
| 412 } | 595 } |
| 413 | 596 |
| 414 void GL_APIENTRY glUniform1fv( | 597 void GL_APIENTRY glUniform1fv( |
| 415 GLint location, GLsizei count, const GLfloat* v) { | 598 GLint location, GLsizei count, const GLfloat* v) { |
| 599 glGetInterfacePPAPI()->Uniform1fv( |
| 600 glGetCurrentContextPPAPI(), location, count, v); |
| 416 } | 601 } |
| 417 | 602 |
| 418 void GL_APIENTRY glUniform1i(GLint location, GLint x) { | 603 void GL_APIENTRY glUniform1i(GLint location, GLint x) { |
| 604 glGetInterfacePPAPI()->Uniform1i(glGetCurrentContextPPAPI(), location, x); |
| 419 } | 605 } |
| 420 | 606 |
| 421 void GL_APIENTRY glUniform1iv(GLint location, GLsizei count, const GLint* v) { | 607 void GL_APIENTRY glUniform1iv(GLint location, GLsizei count, const GLint* v) { |
| 608 glGetInterfacePPAPI()->Uniform1iv( |
| 609 glGetCurrentContextPPAPI(), location, count, v); |
| 422 } | 610 } |
| 423 | 611 |
| 424 void GL_APIENTRY glUniform2f(GLint location, GLfloat x, GLfloat y) { | 612 void GL_APIENTRY glUniform2f(GLint location, GLfloat x, GLfloat y) { |
| 613 glGetInterfacePPAPI()->Uniform2f(glGetCurrentContextPPAPI(), location, x, y); |
| 425 } | 614 } |
| 426 | 615 |
| 427 void GL_APIENTRY glUniform2fv( | 616 void GL_APIENTRY glUniform2fv( |
| 428 GLint location, GLsizei count, const GLfloat* v) { | 617 GLint location, GLsizei count, const GLfloat* v) { |
| 618 glGetInterfacePPAPI()->Uniform2fv( |
| 619 glGetCurrentContextPPAPI(), location, count, v); |
| 429 } | 620 } |
| 430 | 621 |
| 431 void GL_APIENTRY glUniform2i(GLint location, GLint x, GLint y) { | 622 void GL_APIENTRY glUniform2i(GLint location, GLint x, GLint y) { |
| 623 glGetInterfacePPAPI()->Uniform2i(glGetCurrentContextPPAPI(), location, x, y); |
| 432 } | 624 } |
| 433 | 625 |
| 434 void GL_APIENTRY glUniform2iv(GLint location, GLsizei count, const GLint* v) { | 626 void GL_APIENTRY glUniform2iv(GLint location, GLsizei count, const GLint* v) { |
| 627 glGetInterfacePPAPI()->Uniform2iv( |
| 628 glGetCurrentContextPPAPI(), location, count, v); |
| 435 } | 629 } |
| 436 | 630 |
| 437 void GL_APIENTRY glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { | 631 void GL_APIENTRY glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { |
| 632 glGetInterfacePPAPI()->Uniform3f( |
| 633 glGetCurrentContextPPAPI(), location, x, y, z); |
| 438 } | 634 } |
| 439 | 635 |
| 440 void GL_APIENTRY glUniform3fv( | 636 void GL_APIENTRY glUniform3fv( |
| 441 GLint location, GLsizei count, const GLfloat* v) { | 637 GLint location, GLsizei count, const GLfloat* v) { |
| 638 glGetInterfacePPAPI()->Uniform3fv( |
| 639 glGetCurrentContextPPAPI(), location, count, v); |
| 442 } | 640 } |
| 443 | 641 |
| 444 void GL_APIENTRY glUniform3i(GLint location, GLint x, GLint y, GLint z) { | 642 void GL_APIENTRY glUniform3i(GLint location, GLint x, GLint y, GLint z) { |
| 643 glGetInterfacePPAPI()->Uniform3i( |
| 644 glGetCurrentContextPPAPI(), location, x, y, z); |
| 445 } | 645 } |
| 446 | 646 |
| 447 void GL_APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint* v) { | 647 void GL_APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint* v) { |
| 648 glGetInterfacePPAPI()->Uniform3iv( |
| 649 glGetCurrentContextPPAPI(), location, count, v); |
| 448 } | 650 } |
| 449 | 651 |
| 450 void GL_APIENTRY glUniform4f( | 652 void GL_APIENTRY glUniform4f( |
| 451 GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 653 GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
| 654 glGetInterfacePPAPI()->Uniform4f( |
| 655 glGetCurrentContextPPAPI(), location, x, y, z, w); |
| 452 } | 656 } |
| 453 | 657 |
| 454 void GL_APIENTRY glUniform4fv( | 658 void GL_APIENTRY glUniform4fv( |
| 455 GLint location, GLsizei count, const GLfloat* v) { | 659 GLint location, GLsizei count, const GLfloat* v) { |
| 660 glGetInterfacePPAPI()->Uniform4fv( |
| 661 glGetCurrentContextPPAPI(), location, count, v); |
| 456 } | 662 } |
| 457 | 663 |
| 458 void GL_APIENTRY glUniform4i( | 664 void GL_APIENTRY glUniform4i( |
| 459 GLint location, GLint x, GLint y, GLint z, GLint w) { | 665 GLint location, GLint x, GLint y, GLint z, GLint w) { |
| 666 glGetInterfacePPAPI()->Uniform4i( |
| 667 glGetCurrentContextPPAPI(), location, x, y, z, w); |
| 460 } | 668 } |
| 461 | 669 |
| 462 void GL_APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint* v) { | 670 void GL_APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint* v) { |
| 671 glGetInterfacePPAPI()->Uniform4iv( |
| 672 glGetCurrentContextPPAPI(), location, count, v); |
| 463 } | 673 } |
| 464 | 674 |
| 465 void GL_APIENTRY glUniformMatrix2fv( | 675 void GL_APIENTRY glUniformMatrix2fv( |
| 466 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { | 676 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { |
| 677 glGetInterfacePPAPI()->UniformMatrix2fv( |
| 678 glGetCurrentContextPPAPI(), location, count, transpose, value); |
| 467 } | 679 } |
| 468 | 680 |
| 469 void GL_APIENTRY glUniformMatrix3fv( | 681 void GL_APIENTRY glUniformMatrix3fv( |
| 470 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { | 682 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { |
| 683 glGetInterfacePPAPI()->UniformMatrix3fv( |
| 684 glGetCurrentContextPPAPI(), location, count, transpose, value); |
| 471 } | 685 } |
| 472 | 686 |
| 473 void GL_APIENTRY glUniformMatrix4fv( | 687 void GL_APIENTRY glUniformMatrix4fv( |
| 474 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { | 688 GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { |
| 689 glGetInterfacePPAPI()->UniformMatrix4fv( |
| 690 glGetCurrentContextPPAPI(), location, count, transpose, value); |
| 475 } | 691 } |
| 476 | 692 |
| 477 void GL_APIENTRY glUseProgram(GLuint program) { | 693 void GL_APIENTRY glUseProgram(GLuint program) { |
| 694 glGetInterfacePPAPI()->UseProgram(glGetCurrentContextPPAPI(), program); |
| 478 } | 695 } |
| 479 | 696 |
| 480 void GL_APIENTRY glValidateProgram(GLuint program) { | 697 void GL_APIENTRY glValidateProgram(GLuint program) { |
| 698 glGetInterfacePPAPI()->ValidateProgram(glGetCurrentContextPPAPI(), program); |
| 481 } | 699 } |
| 482 | 700 |
| 483 void GL_APIENTRY glVertexAttrib1f(GLuint indx, GLfloat x) { | 701 void GL_APIENTRY glVertexAttrib1f(GLuint indx, GLfloat x) { |
| 702 glGetInterfacePPAPI()->VertexAttrib1f(glGetCurrentContextPPAPI(), indx, x); |
| 484 } | 703 } |
| 485 | 704 |
| 486 void GL_APIENTRY glVertexAttrib1fv(GLuint indx, const GLfloat* values) { | 705 void GL_APIENTRY glVertexAttrib1fv(GLuint indx, const GLfloat* values) { |
| 706 glGetInterfacePPAPI()->VertexAttrib1fv( |
| 707 glGetCurrentContextPPAPI(), indx, values); |
| 487 } | 708 } |
| 488 | 709 |
| 489 void GL_APIENTRY glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { | 710 void GL_APIENTRY glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { |
| 711 glGetInterfacePPAPI()->VertexAttrib2f( |
| 712 glGetCurrentContextPPAPI(), indx, x, y); |
| 490 } | 713 } |
| 491 | 714 |
| 492 void GL_APIENTRY glVertexAttrib2fv(GLuint indx, const GLfloat* values) { | 715 void GL_APIENTRY glVertexAttrib2fv(GLuint indx, const GLfloat* values) { |
| 716 glGetInterfacePPAPI()->VertexAttrib2fv( |
| 717 glGetCurrentContextPPAPI(), indx, values); |
| 493 } | 718 } |
| 494 | 719 |
| 495 void GL_APIENTRY glVertexAttrib3f( | 720 void GL_APIENTRY glVertexAttrib3f( |
| 496 GLuint indx, GLfloat x, GLfloat y, GLfloat z) { | 721 GLuint indx, GLfloat x, GLfloat y, GLfloat z) { |
| 722 glGetInterfacePPAPI()->VertexAttrib3f( |
| 723 glGetCurrentContextPPAPI(), indx, x, y, z); |
| 497 } | 724 } |
| 498 | 725 |
| 499 void GL_APIENTRY glVertexAttrib3fv(GLuint indx, const GLfloat* values) { | 726 void GL_APIENTRY glVertexAttrib3fv(GLuint indx, const GLfloat* values) { |
| 727 glGetInterfacePPAPI()->VertexAttrib3fv( |
| 728 glGetCurrentContextPPAPI(), indx, values); |
| 500 } | 729 } |
| 501 | 730 |
| 502 void GL_APIENTRY glVertexAttrib4f( | 731 void GL_APIENTRY glVertexAttrib4f( |
| 503 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { | 732 GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { |
| 733 glGetInterfacePPAPI()->VertexAttrib4f( |
| 734 glGetCurrentContextPPAPI(), indx, x, y, z, w); |
| 504 } | 735 } |
| 505 | 736 |
| 506 void GL_APIENTRY glVertexAttrib4fv(GLuint indx, const GLfloat* values) { | 737 void GL_APIENTRY glVertexAttrib4fv(GLuint indx, const GLfloat* values) { |
| 738 glGetInterfacePPAPI()->VertexAttrib4fv( |
| 739 glGetCurrentContextPPAPI(), indx, values); |
| 507 } | 740 } |
| 508 | 741 |
| 509 void GL_APIENTRY glVertexAttribPointer( | 742 void GL_APIENTRY glVertexAttribPointer( |
| 510 GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, | 743 GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, |
| 511 const void* ptr) { | 744 const void* ptr) { |
| 745 glGetInterfacePPAPI()->VertexAttribPointer( |
| 746 glGetCurrentContextPPAPI(), indx, size, type, normalized, stride, ptr); |
| 512 } | 747 } |
| 513 | 748 |
| 514 void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { | 749 void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { |
| 515 } | 750 glGetInterfacePPAPI()->Viewport( |
| 516 | 751 glGetCurrentContextPPAPI(), x, y, width, height); |
| 752 } |
| 753 |
| OLD | NEW |