15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This file is auto-generated from 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// gpu/command_buffer/build_gles2_cmd_buffer.py 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// DO NOT EDIT! 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef GL_GLEXT_PROTOTYPES 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define GL_GLEXT_PROTOTYPES 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include <GLES2/gl2.h> 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include <GLES2/gl2ext.h> 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "ppapi/lib/gl/gles2/gl2ext_ppapi.h" 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glActiveTexture(GLenum texture) { 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ActiveTexture(glGetCurrentContextPPAPI(), texture); 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glAttachShader(GLuint program, GLuint shader) { 215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->AttachShader( 225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, shader); 235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBindAttribLocation( 265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint program, GLuint index, const char* name) { 275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BindAttribLocation( 285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, index, name); 295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer) { 325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BindBuffer( 335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, buffer); 345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer) { 375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BindFramebuffer( 385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, framebuffer); 395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBindRenderbuffer(GLenum target, GLuint renderbuffer) { 425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BindRenderbuffer( 435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, renderbuffer); 445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBindTexture(GLenum target, GLuint texture) { 475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BindTexture( 485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, texture); 495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBlendColor( 525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BlendColor( 545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), red, green, blue, alpha); 555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBlendEquation(GLenum mode) { 585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BlendEquation(glGetCurrentContextPPAPI(), mode); 595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { 625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BlendEquationSeparate( 635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), modeRGB, modeAlpha); 645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor) { 675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BlendFunc( 685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), sfactor, dfactor); 695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBlendFuncSeparate( 725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { 735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BlendFuncSeparate( 745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), srcRGB, dstRGB, srcAlpha, dstAlpha); 755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBufferData( 785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLsizeiptr size, const void* data, GLenum usage) { 795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BufferData( 805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, size, data, usage); 815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBufferSubData( 845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLintptr offset, GLsizeiptr size, const void* data) { 855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->BufferSubData( 865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, offset, size, data); 875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLenum GL_APIENTRY glCheckFramebufferStatus(GLenum target) { 905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->CheckFramebufferStatus( 915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target); 925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glClear(GLbitfield mask) { 955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Clear(glGetCurrentContextPPAPI(), mask); 965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glClearColor( 995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { 1005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ClearColor( 1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), red, green, blue, alpha); 1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glClearDepthf(GLclampf depth) { 1055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ClearDepthf(glGetCurrentContextPPAPI(), depth); 1065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glClearStencil(GLint s) { 1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ClearStencil(glGetCurrentContextPPAPI(), s); 1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glColorMask( 1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { 1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ColorMask( 1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), red, green, blue, alpha); 1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glCompileShader(GLuint shader) { 1195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->CompileShader(glGetCurrentContextPPAPI(), shader); 1205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glCompressedTexImage2D( 1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLint level, GLenum internalformat, GLsizei width, 1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei height, GLint border, GLsizei imageSize, const void* data) { 1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->CompressedTexImage2D( 1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, level, internalformat, width, height, 1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) border, imageSize, data); 1285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glCompressedTexSubImage2D( 1315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 1325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei height, GLenum format, GLsizei imageSize, const void* data) { 1335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->CompressedTexSubImage2D( 1345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, 1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) height, format, imageSize, data); 1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glCopyTexImage2D( 1395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, 1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei width, GLsizei height, GLint border) { 1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->CopyTexImage2D( 1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, level, internalformat, x, y, width, 1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) height, border); 1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glCopyTexSubImage2D( 1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, 1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei width, GLsizei height) { 1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->CopyTexSubImage2D( 1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, x, y, width, 1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) height); 1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLuint GL_APIENTRY glCreateProgram() { 1555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->CreateProgram(glGetCurrentContextPPAPI()); 1565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLuint GL_APIENTRY glCreateShader(GLenum type) { 1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->CreateShader(glGetCurrentContextPPAPI(), type); 1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glCullFace(GLenum mode) { 1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->CullFace(glGetCurrentContextPPAPI(), mode); 1645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDeleteBuffers(GLsizei n, const GLuint* buffers) { 1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DeleteBuffers(glGetCurrentContextPPAPI(), n, buffers); 1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers) { 1715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DeleteFramebuffers( 1725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), n, framebuffers); 1735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDeleteProgram(GLuint program) { 1765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DeleteProgram(glGetCurrentContextPPAPI(), program); 1775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDeleteRenderbuffers( 1805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei n, const GLuint* renderbuffers) { 1815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DeleteRenderbuffers( 1825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), n, renderbuffers); 1835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDeleteShader(GLuint shader) { 1865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DeleteShader(glGetCurrentContextPPAPI(), shader); 1875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDeleteTextures(GLsizei n, const GLuint* textures) { 1905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DeleteTextures( 1915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), n, textures); 1925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDepthFunc(GLenum func) { 1955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DepthFunc(glGetCurrentContextPPAPI(), func); 1965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 1975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 1985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDepthMask(GLboolean flag) { 1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DepthMask(glGetCurrentContextPPAPI(), flag); 2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar) { 2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DepthRangef(glGetCurrentContextPPAPI(), zNear, zFar); 2045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDetachShader(GLuint program, GLuint shader) { 2075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DetachShader( 2085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, shader); 2095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDisable(GLenum cap) { 2125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Disable(glGetCurrentContextPPAPI(), cap); 2135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDisableVertexAttribArray(GLuint index) { 2165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DisableVertexAttribArray( 2175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), index); 2185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count) { 2215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DrawArrays( 2225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), mode, first, count); 2235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDrawElements( 2265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum mode, GLsizei count, GLenum type, const void* indices) { 2275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->DrawElements( 2285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), mode, count, type, indices); 2295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glEnable(GLenum cap) { 2325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Enable(glGetCurrentContextPPAPI(), cap); 2335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glEnableVertexAttribArray(GLuint index) { 2365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->EnableVertexAttribArray( 2375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), index); 2385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glFinish() { 2415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Finish(glGetCurrentContextPPAPI()); 2425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glFlush() { 2455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Flush(glGetCurrentContextPPAPI()); 2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glFramebufferRenderbuffer( 2495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum attachment, GLenum renderbuffertarget, 2505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint renderbuffer) { 2515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->FramebufferRenderbuffer( 2525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, attachment, renderbuffertarget, 2535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) renderbuffer); 2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glFramebufferTexture2D( 2575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum attachment, GLenum textarget, GLuint texture, 2585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint level) { 2595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->FramebufferTexture2D( 2605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, attachment, textarget, texture, 2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) level); 2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glFrontFace(GLenum mode) { 2655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->FrontFace(glGetCurrentContextPPAPI(), mode); 2665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGenBuffers(GLsizei n, GLuint* buffers) { 2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GenBuffers(glGetCurrentContextPPAPI(), n, buffers); 2705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGenerateMipmap(GLenum target) { 2735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GenerateMipmap(glGetCurrentContextPPAPI(), target); 2745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGenFramebuffers(GLsizei n, GLuint* framebuffers) { 2775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GenFramebuffers( 2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), n, framebuffers); 2795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGenRenderbuffers(GLsizei n, GLuint* renderbuffers) { 2825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GenRenderbuffers( 2835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), n, renderbuffers); 2845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGenTextures(GLsizei n, GLuint* textures) { 2875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GenTextures(glGetCurrentContextPPAPI(), n, textures); 2885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetActiveAttrib( 2915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, 2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum* type, char* name) { 2935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetActiveAttrib( 2945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, index, bufsize, length, size, type, 2955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) name); 2965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 2975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 2985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetActiveUniform( 2995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, 3005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum* type, char* name) { 3015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetActiveUniform( 3025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, index, bufsize, length, size, type, 3035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) name); 3045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetAttachedShaders( 3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) { 3085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetAttachedShaders( 3095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, maxcount, count, shaders); 3105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLint GL_APIENTRY glGetAttribLocation(GLuint program, const char* name) { 3135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->GetAttribLocation( 3145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, name); 3155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params) { 3185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetBooleanv( 3195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), pname, params); 3205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetBufferParameteriv( 3235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum pname, GLint* params) { 3245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetBufferParameteriv( 3255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, params); 3265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLenum GL_APIENTRY glGetError() { 3295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->GetError(glGetCurrentContextPPAPI()); 3305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params) { 3335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetFloatv(glGetCurrentContextPPAPI(), pname, params); 3345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetFramebufferAttachmentParameteriv( 3375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum attachment, GLenum pname, GLint* params) { 3385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetFramebufferAttachmentParameteriv( 3395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, attachment, pname, params); 3405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params) { 3435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetIntegerv( 3445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), pname, params); 3455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetProgramiv(GLuint program, GLenum pname, GLint* params) { 3485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetProgramiv( 3495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, pname, params); 3505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetProgramInfoLog( 3535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint program, GLsizei bufsize, GLsizei* length, char* infolog) { 3545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetProgramInfoLog( 3555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, bufsize, length, infolog); 3565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetRenderbufferParameteriv( 3595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum pname, GLint* params) { 3605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetRenderbufferParameteriv( 3615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, params); 3625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint* params) { 3655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetShaderiv( 3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), shader, pname, params); 3675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetShaderInfoLog( 3705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog) { 3715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetShaderInfoLog( 3725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), shader, bufsize, length, infolog); 3735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetShaderPrecisionFormat( 3765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) { 3775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetShaderPrecisionFormat( 3785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), shadertype, precisiontype, range, precision); 3795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetShaderSource( 3825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint shader, GLsizei bufsize, GLsizei* length, char* source) { 3835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetShaderSource( 3845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), shader, bufsize, length, source); 3855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const GLubyte* GL_APIENTRY glGetString(GLenum name) { 3885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->GetString(glGetCurrentContextPPAPI(), name); 3895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetTexParameterfv( 3925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum pname, GLfloat* params) { 3935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetTexParameterfv( 3945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, params); 3955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 3965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 3975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetTexParameteriv( 3985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum pname, GLint* params) { 3995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetTexParameteriv( 4005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, params); 4015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetUniformfv( 4045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint program, GLint location, GLfloat* params) { 4055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetUniformfv( 4065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, location, params); 4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetUniformiv( 4105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint program, GLint location, GLint* params) { 4115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetUniformiv( 4125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, location, params); 4135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLint GL_APIENTRY glGetUniformLocation(GLuint program, const char* name) { 4165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->GetUniformLocation( 4175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), program, name); 4185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetVertexAttribfv( 4215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint index, GLenum pname, GLfloat* params) { 4225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetVertexAttribfv( 4235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), index, pname, params); 4245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetVertexAttribiv( 4275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint index, GLenum pname, GLint* params) { 4285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetVertexAttribiv( 4295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), index, pname, params); 4305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetVertexAttribPointerv( 4335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint index, GLenum pname, void** pointer) { 4345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->GetVertexAttribPointerv( 4355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), index, pname, pointer); 4365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glHint(GLenum target, GLenum mode) { 4395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Hint(glGetCurrentContextPPAPI(), target, mode); 4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsBuffer(GLuint buffer) { 4435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->IsBuffer(glGetCurrentContextPPAPI(), buffer); 4445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsEnabled(GLenum cap) { 4475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->IsEnabled(glGetCurrentContextPPAPI(), cap); 4485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsFramebuffer(GLuint framebuffer) { 4515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->IsFramebuffer( 4525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), framebuffer); 4535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsProgram(GLuint program) { 4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->IsProgram(glGetCurrentContextPPAPI(), program); 4575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsRenderbuffer(GLuint renderbuffer) { 4605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->IsRenderbuffer( 4615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), renderbuffer); 4625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsShader(GLuint shader) { 4655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->IsShader(glGetCurrentContextPPAPI(), shader); 4665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsTexture(GLuint texture) { 4695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return glGetInterfacePPAPI()->IsTexture(glGetCurrentContextPPAPI(), texture); 4705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glLineWidth(GLfloat width) { 4735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->LineWidth(glGetCurrentContextPPAPI(), width); 4745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glLinkProgram(GLuint program) { 4775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->LinkProgram(glGetCurrentContextPPAPI(), program); 4785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glPixelStorei(GLenum pname, GLint param) { 4815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->PixelStorei(glGetCurrentContextPPAPI(), pname, param); 4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units) { 4855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->PolygonOffset( 4865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), factor, units); 4875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glReadPixels( 4905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, 4915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) void* pixels) { 4925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ReadPixels( 4935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), x, y, width, height, format, type, pixels); 4945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 4965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glReleaseShaderCompiler() { 4975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ReleaseShaderCompiler(glGetCurrentContextPPAPI()); 4985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 4995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glRenderbufferStorage( 5015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { 5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->RenderbufferStorage( 5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, internalformat, width, height); 5045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glSampleCoverage(GLclampf value, GLboolean invert) { 5075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->SampleCoverage( 5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), value, invert); 5095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height) { 5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Scissor( 5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), x, y, width, height); 5145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glShaderBinary( 5175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, 5185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei length) { 5195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ShaderBinary( 5205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), n, shaders, binaryformat, binary, length); 5215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glShaderSource( 5245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint shader, GLsizei count, const char** str, const GLint* length) { 5255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ShaderSource( 5265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), shader, count, str, length); 5275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask) { 5305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->StencilFunc( 5315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), func, ref, mask); 5325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glStencilFuncSeparate( 5355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum face, GLenum func, GLint ref, GLuint mask) { 5365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->StencilFuncSeparate( 5375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), face, func, ref, mask); 5385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glStencilMask(GLuint mask) { 5415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->StencilMask(glGetCurrentContextPPAPI(), mask); 5425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glStencilMaskSeparate(GLenum face, GLuint mask) { 5455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->StencilMaskSeparate( 5465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), face, mask); 5475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass) { 5505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->StencilOp( 5515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), fail, zfail, zpass); 5525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glStencilOpSeparate( 5555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { 5565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->StencilOpSeparate( 5575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), face, fail, zfail, zpass); 5585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glTexImage2D( 5615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLint level, GLint internalformat, GLsizei width, 5625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei height, GLint border, GLenum format, GLenum type, 5635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const void* pixels) { 5645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->TexImage2D( 5655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, level, internalformat, width, height, 5665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) border, format, type, pixels); 5675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param) { 5705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->TexParameterf( 5715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, param); 5725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glTexParameterfv( 5755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum pname, const GLfloat* params) { 5765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->TexParameterfv( 5775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, params); 5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) { 5815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->TexParameteri( 5825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, param); 5835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glTexParameteriv( 5865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLenum pname, const GLint* params) { 5875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->TexParameteriv( 5885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, pname, params); 5895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glTexSubImage2D( 5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei height, GLenum format, GLenum type, const void* pixels) { 5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->TexSubImage2D( 5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, 5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) height, format, type, pixels); 5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 5985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform1f(GLint location, GLfloat x) { 6005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform1f(glGetCurrentContextPPAPI(), location, x); 6015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform1fv( 6045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLsizei count, const GLfloat* v) { 6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform1fv( 6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform1i(GLint location, GLint x) { 6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform1i(glGetCurrentContextPPAPI(), location, x); 6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform1iv(GLint location, GLsizei count, const GLint* v) { 6145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform1iv( 6155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform2f(GLint location, GLfloat x, GLfloat y) { 6195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform2f(glGetCurrentContextPPAPI(), location, x, y); 6205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform2fv( 6235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLsizei count, const GLfloat* v) { 6245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform2fv( 6255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform2i(GLint location, GLint x, GLint y) { 6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform2i(glGetCurrentContextPPAPI(), location, x, y); 6305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform2iv(GLint location, GLsizei count, const GLint* v) { 6335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform2iv( 6345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { 6385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform3f( 6395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, x, y, z); 6405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform3fv( 6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLsizei count, const GLfloat* v) { 6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform3fv( 6455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform3i(GLint location, GLint x, GLint y, GLint z) { 6495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform3i( 6505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, x, y, z); 6515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform3iv(GLint location, GLsizei count, const GLint* v) { 6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform3iv( 6555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform4f( 6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { 6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform4f( 6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, x, y, z, w); 6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform4fv( 6655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLsizei count, const GLfloat* v) { 6665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform4fv( 6675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform4i( 6715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLint x, GLint y, GLint z, GLint w) { 6725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform4i( 6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, x, y, z, w); 6745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniform4iv(GLint location, GLsizei count, const GLint* v) { 6775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Uniform4iv( 6785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, v); 6795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniformMatrix2fv( 6825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { 6835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->UniformMatrix2fv( 6845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, transpose, value); 6855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniformMatrix3fv( 6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { 6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->UniformMatrix3fv( 6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, transpose, value); 6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUniformMatrix4fv( 6945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) { 6955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->UniformMatrix4fv( 6965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), location, count, transpose, value); 6975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 6985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 6995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUseProgram(GLuint program) { 7005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->UseProgram(glGetCurrentContextPPAPI(), program); 7015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glValidateProgram(GLuint program) { 7045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->ValidateProgram(glGetCurrentContextPPAPI(), program); 7055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib1f(GLuint indx, GLfloat x) { 7085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib1f(glGetCurrentContextPPAPI(), indx, x); 7095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib1fv(GLuint indx, const GLfloat* values) { 7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib1fv( 7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, values); 7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { 7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib2f( 7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, x, y); 7195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib2fv(GLuint indx, const GLfloat* values) { 7225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib2fv( 7235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, values); 7245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib3f( 7275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint indx, GLfloat x, GLfloat y, GLfloat z) { 7285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib3f( 7295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, x, y, z); 7305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib3fv(GLuint indx, const GLfloat* values) { 7335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib3fv( 7345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, values); 7355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib4f( 7385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { 7395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib4f( 7405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, x, y, z, w); 7415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttrib4fv(GLuint indx, const GLfloat* values) { 7445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttrib4fv( 7455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, values); 7465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttribPointer( 7495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, 7505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const void* ptr) { 7515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->VertexAttribPointer( 7525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), indx, size, type, normalized, stride, ptr); 7535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { 7565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInterfacePPAPI()->Viewport( 7575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), x, y, width, height); 7585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBlitFramebufferEXT( 7615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, 7625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { 7635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2FramebufferBlit* ext = 7645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetFramebufferBlitInterfacePPAPI(); 7655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 7665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->BlitFramebufferEXT( 7675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, 7685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) dstX1, dstY1, mask, filter); 7695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glRenderbufferStorageMultisampleEXT( 7725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, 7735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei height) { 7745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2FramebufferMultisample* ext = 7755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetFramebufferMultisampleInterfacePPAPI(); 7765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 7775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->RenderbufferStorageMultisampleEXT( 7785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, samples, internalformat, width, 7795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) height); 7805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGenQueriesEXT(GLsizei n, GLuint* queries) { 7835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); 7845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 7855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->GenQueriesEXT(glGetCurrentContextPPAPI(), n, queries); 7865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDeleteQueriesEXT(GLsizei n, const GLuint* queries) { 7895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); 7905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 7915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->DeleteQueriesEXT(glGetCurrentContextPPAPI(), n, queries); 7925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 7935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 7945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glIsQueryEXT(GLuint id) { 7955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); 7965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 7975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return ext->IsQueryEXT(glGetCurrentContextPPAPI(), id); 7985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return 0; 7995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glBeginQueryEXT(GLenum target, GLuint id) { 8025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); 8035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->BeginQueryEXT(glGetCurrentContextPPAPI(), target, id); 8055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glEndQueryEXT(GLenum target) { 8085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); 8095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->EndQueryEXT(glGetCurrentContextPPAPI(), target); 8115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetQueryivEXT(GLenum target, GLenum pname, GLint* params) { 8145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); 8155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->GetQueryivEXT(glGetCurrentContextPPAPI(), target, pname, params); 8175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glGetQueryObjectuivEXT( 8205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint id, GLenum pname, GLuint* params) { 8215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2Query* ext = glGetQueryInterfacePPAPI(); 8225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->GetQueryObjectuivEXT(glGetCurrentContextPPAPI(), id, pname, params); 8245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)GLboolean GL_APIENTRY glEnableFeatureCHROMIUM(const char* feature) { 8275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2ChromiumEnableFeature* ext = 8285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetChromiumEnableFeatureInterfacePPAPI(); 8295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return ext->EnableFeatureCHROMIUM(glGetCurrentContextPPAPI(), feature); 8315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return 0; 8325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void* GL_APIENTRY glMapBufferSubDataCHROMIUM( 8355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLuint target, GLintptr offset, GLsizeiptr size, GLenum access) { 8365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2ChromiumMapSub* ext = 8375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetChromiumMapSubInterfacePPAPI(); 8385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return ext->MapBufferSubDataCHROMIUM( 8405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, offset, size, access); 8415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return 0; 8425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUnmapBufferSubDataCHROMIUM(const void* mem) { 8455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2ChromiumMapSub* ext = 8465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetChromiumMapSubInterfacePPAPI(); 8475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->UnmapBufferSubDataCHROMIUM(glGetCurrentContextPPAPI(), mem); 8495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void* GL_APIENTRY glMapTexSubImage2DCHROMIUM( 8525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, 8535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei height, GLenum format, GLenum type, GLenum access) { 8545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2ChromiumMapSub* ext = 8555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetChromiumMapSubInterfacePPAPI(); 8565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return ext->MapTexSubImage2DCHROMIUM( 8585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), target, level, xoffset, yoffset, width, 8595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) height, format, type, access); 8605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) return 0; 8615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glUnmapTexSubImage2DCHROMIUM(const void* mem) { 8645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2ChromiumMapSub* ext = 8655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetChromiumMapSubInterfacePPAPI(); 8665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->UnmapTexSubImage2DCHROMIUM(glGetCurrentContextPPAPI(), mem); 8685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDrawArraysInstancedANGLE( 8715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum mode, GLint first, GLsizei count, GLsizei primcount) { 8725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2InstancedArrays* ext = 8735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInstancedArraysInterfacePPAPI(); 8745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->DrawArraysInstancedANGLE( 8765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), mode, first, count, primcount); 8775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glDrawElementsInstancedANGLE( 8805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLenum mode, GLsizei count, GLenum type, const void* indices, 8815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) GLsizei primcount) { 8825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2InstancedArrays* ext = 8835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInstancedArraysInterfacePPAPI(); 8845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->DrawElementsInstancedANGLE( 8865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetCurrentContextPPAPI(), mode, count, type, indices, primcount); 8875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 8895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void GL_APIENTRY glVertexAttribDivisorANGLE(GLuint index, GLuint divisor) { 8905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) const struct PPB_OpenGLES2InstancedArrays* ext = 8915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) glGetInstancedArraysInterfacePPAPI(); 8925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) if (ext) 8935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) ext->VertexAttribDivisorANGLE(glGetCurrentContextPPAPI(), index, divisor); 8945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)} 8955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 896