#include "webgl.h" void WebGLRenderingContext::initPointers(){ glDrawArraysInstanced=reinterpret_cast(eglGetProcAddress("glDrawArraysInstancedANGLE")); glDrawElementsInstanced=reinterpret_cast(eglGetProcAddress("glDrawElementsInstancedANGLE")); glVertexAttribDivisor=reinterpret_cast(eglGetProcAddress("glVertexAttribDivisorANGLE")); glUniform1f=reinterpret_cast(eglGetProcAddress("glUniform1f")); glUniform2f=reinterpret_cast(eglGetProcAddress("glUniform2f")); glUniform3f=reinterpret_cast(eglGetProcAddress("glUniform3f")); glUniform4f=reinterpret_cast(eglGetProcAddress("glUniform4f")); glUniform1i=reinterpret_cast(eglGetProcAddress("glUniform1i")); glUniform2i=reinterpret_cast(eglGetProcAddress("glUniform2i")); glUniform3i=reinterpret_cast(eglGetProcAddress("glUniform3i")); glUniform4i=reinterpret_cast(eglGetProcAddress("glUniform4i")); glPixelStorei=reinterpret_cast(eglGetProcAddress("glPixelStorei")); glBindAttribLocation=reinterpret_cast(eglGetProcAddress("glBindAttribLocation")); glDrawArrays=reinterpret_cast(eglGetProcAddress("glDrawArrays")); glUniformMatrix2fv=reinterpret_cast(eglGetProcAddress("glUniformMatrix2fv")); glUniformMatrix3fv=reinterpret_cast(eglGetProcAddress("glUniformMatrix3fv")); glUniformMatrix4fv=reinterpret_cast(eglGetProcAddress("glUniformMatrix4fv")); glGenerateMipmap=reinterpret_cast(eglGetProcAddress("glGenerateMipmap")); glGetAttribLocation=reinterpret_cast(eglGetProcAddress("glGetAttribLocation")); glDepthFunc=reinterpret_cast(eglGetProcAddress("glDepthFunc")); glViewport=reinterpret_cast(eglGetProcAddress("glViewport")); glCreateShader=reinterpret_cast(eglGetProcAddress("glCreateShader")); glShaderSource=reinterpret_cast(eglGetProcAddress("glShaderSource")); glCompileShader=reinterpret_cast(eglGetProcAddress("glCompileShader")); glGetShaderInfoLog=reinterpret_cast(eglGetProcAddress("glGetShaderInfoLog")); glCreateProgram=reinterpret_cast(eglGetProcAddress("glCreateProgram")); glAttachShader=reinterpret_cast(eglGetProcAddress("glAttachShader")); glLinkProgram=reinterpret_cast(eglGetProcAddress("glLinkProgram")); glGetUniformLocation=reinterpret_cast(eglGetProcAddress("glGetUniformLocation")); glClearColor=reinterpret_cast(eglGetProcAddress("glClearColor")); glClearDepthf=reinterpret_cast(eglGetProcAddress("glClearDepthf")); glDisable=reinterpret_cast(eglGetProcAddress("glDisable")); glEnable=reinterpret_cast(eglGetProcAddress("glEnable")); glGenTextures=reinterpret_cast(eglGetProcAddress("glGenTextures")); glBindTexture=reinterpret_cast(eglGetProcAddress("glBindTexture")); glTexImage2D=reinterpret_cast(eglGetProcAddress("glTexImage2D")); glTexParameteri=reinterpret_cast(eglGetProcAddress("glTexParameteri")); glTexParameterf=reinterpret_cast(eglGetProcAddress("glTexParameterf")); glClear=reinterpret_cast(eglGetProcAddress("glClear")); glUseProgram=reinterpret_cast(eglGetProcAddress("glUseProgram")); glGenBuffers=reinterpret_cast(eglGetProcAddress("glGenBuffers")); glBindBuffer=reinterpret_cast(eglGetProcAddress("glBindBuffer")); glGenFramebuffers=reinterpret_cast(eglGetProcAddress("glGenFramebuffers")); glBindFramebuffer=reinterpret_cast(eglGetProcAddress("glBindFramebuffer")); glFramebufferTexture2D=reinterpret_cast(eglGetProcAddress("glFramebufferTexture2D")); glBufferData=reinterpret_cast(eglGetProcAddress("glBufferData")); glBufferSubData=reinterpret_cast(eglGetProcAddress("glBufferSubData")); glBlendEquation=reinterpret_cast(eglGetProcAddress("glBlendEquation")); glBlendFunc=reinterpret_cast(eglGetProcAddress("glBlendFunc")); glEnableVertexAttribArray=reinterpret_cast(eglGetProcAddress("glEnableVertexAttribArray")); glVertexAttribPointer=reinterpret_cast(eglGetProcAddress("glVertexAttribPointer")); glActiveTexture=reinterpret_cast(eglGetProcAddress("glActiveTexture")); glDrawElements=reinterpret_cast(eglGetProcAddress("glDrawElements")); glFlush=reinterpret_cast(eglGetProcAddress("glFlush")); glFinish=reinterpret_cast(eglGetProcAddress("glFinish")); glVertexAttrib1f=reinterpret_cast(eglGetProcAddress("glVertexAttrib1f")); glVertexAttrib2f=reinterpret_cast(eglGetProcAddress("glVertexAttrib2f")); glVertexAttrib3f=reinterpret_cast(eglGetProcAddress("glVertexAttrib3f")); glVertexAttrib4f=reinterpret_cast(eglGetProcAddress("glVertexAttrib4f")); glBlendColor=reinterpret_cast(eglGetProcAddress("glBlendColor")); glBlendEquationSeparate=reinterpret_cast(eglGetProcAddress("glBlendEquationSeparate")); glBlendFuncSeparate=reinterpret_cast(eglGetProcAddress("glBlendFuncSeparate")); glClearStencil=reinterpret_cast(eglGetProcAddress("glClearStencil")); glColorMask=reinterpret_cast(eglGetProcAddress("glColorMask")); glCopyTexImage2D=reinterpret_cast(eglGetProcAddress("glCopyTexImage2D")); glCopyTexSubImage2D=reinterpret_cast(eglGetProcAddress("glCopyTexSubImage2D")); glCullFace=reinterpret_cast(eglGetProcAddress("glCullFace")); glDepthMask=reinterpret_cast(eglGetProcAddress("glDepthMask")); glDepthRangef=reinterpret_cast(eglGetProcAddress("glDepthRangef")); glHint=reinterpret_cast(eglGetProcAddress("glHint")); glIsEnabled=reinterpret_cast(eglGetProcAddress("glIsEnabled")); glLineWidth=reinterpret_cast(eglGetProcAddress("glLineWidth")); glPolygonOffset=reinterpret_cast(eglGetProcAddress("glPolygonOffset")); glGetShaderPrecisionFormat=reinterpret_cast(eglGetProcAddress("glGetShaderPrecisionFormat")); glStencilFunc=reinterpret_cast(eglGetProcAddress("glStencilFunc")); glStencilFuncSeparate=reinterpret_cast(eglGetProcAddress("glStencilFuncSeparate")); glStencilMask=reinterpret_cast(eglGetProcAddress("glStencilMask")); glStencilMaskSeparate=reinterpret_cast(eglGetProcAddress("glStencilMaskSeparate")); glStencilOp=reinterpret_cast(eglGetProcAddress("glStencilOp")); glStencilOpSeparate=reinterpret_cast(eglGetProcAddress("glStencilOpSeparate")); glScissor=reinterpret_cast(eglGetProcAddress("glScissor")); glBindRenderbuffer=reinterpret_cast(eglGetProcAddress("glBindRenderbuffer")); glGenRenderbuffers=reinterpret_cast(eglGetProcAddress("glGenRenderbuffers")); glFramebufferRenderbuffer=reinterpret_cast(eglGetProcAddress("glFramebufferRenderbuffer")); glDeleteBuffers=reinterpret_cast(eglGetProcAddress("glDeleteBuffers")); glDeleteFramebuffers=reinterpret_cast(eglGetProcAddress("glDeleteFramebuffers")); glDeleteProgram=reinterpret_cast(eglGetProcAddress("glDeleteProgram")); glDeleteRenderbuffers=reinterpret_cast(eglGetProcAddress("glDeleteRenderbuffers")); glDeleteShader=reinterpret_cast(eglGetProcAddress("glDeleteShader")); glDeleteTextures=reinterpret_cast(eglGetProcAddress("glDeleteTextures")); glDetachShader=reinterpret_cast(eglGetProcAddress("glDetachShader")); glDisableVertexAttribArray=reinterpret_cast(eglGetProcAddress("glDisableVertexAttribArray")); glIsBuffer=reinterpret_cast(eglGetProcAddress("glIsBuffer")); glIsFramebuffer=reinterpret_cast(eglGetProcAddress("glIsFramebuffer")); glIsProgram=reinterpret_cast(eglGetProcAddress("glIsProgram")); glIsRenderbuffer=reinterpret_cast(eglGetProcAddress("glIsRenderbuffer")); glIsShader=reinterpret_cast(eglGetProcAddress("glIsShader")); glIsTexture=reinterpret_cast(eglGetProcAddress("glIsTexture")); glRenderbufferStorage=reinterpret_cast(eglGetProcAddress("glRenderbufferStorage")); glGetShaderSource=reinterpret_cast(eglGetProcAddress("glGetShaderSource")); glValidateProgram=reinterpret_cast(eglGetProcAddress("glValidateProgram")); glTexSubImage2D=reinterpret_cast(eglGetProcAddress("glTexSubImage2D")); glReadPixels=reinterpret_cast(eglGetProcAddress("glReadPixels")); glGetActiveAttrib=reinterpret_cast(eglGetProcAddress("glGetActiveAttrib")); glGetActiveUniform=reinterpret_cast(eglGetProcAddress("glGetActiveUniform")); glGetAttachedShaders=reinterpret_cast(eglGetProcAddress("glGetAttachedShaders")); glGetProgramInfoLog=reinterpret_cast(eglGetProcAddress("glGetProgramInfoLog")); glGetRenderbufferParameteriv=reinterpret_cast(eglGetProcAddress("glGetRenderbufferParameteriv")); glCheckFramebufferStatus=reinterpret_cast(eglGetProcAddress("glCheckFramebufferStatus")); glFrontFace=reinterpret_cast(eglGetProcAddress("glFrontFace")); glSampleCoverage=reinterpret_cast(eglGetProcAddress("glSampleCoverage")); glGetUniformiv=reinterpret_cast(eglGetProcAddress("glGetUniformiv")); glGetUniformfv=reinterpret_cast(eglGetProcAddress("glGetUniformfv")); glGetVertexAttribiv=reinterpret_cast(eglGetProcAddress("glGetVertexAttribiv")); glGetVertexAttribfv=reinterpret_cast(eglGetProcAddress("glGetVertexAttribfv")); glGetFramebufferAttachmentParameteriv=reinterpret_cast(eglGetProcAddress("glGetFramebufferAttachmentParameteriv")); glGetBufferParameteriv=reinterpret_cast(eglGetProcAddress("glGetBufferParameteriv")); glGetFloatv=reinterpret_cast(eglGetProcAddress("glGetFloatv")); glGetIntegerv=reinterpret_cast(eglGetProcAddress("glGetIntegerv")); glGetBooleanv=reinterpret_cast(eglGetProcAddress("glGetBooleanv")); glGetProgramiv=reinterpret_cast(eglGetProcAddress("glGetProgramiv")); glGetTexParameterfv=reinterpret_cast(eglGetProcAddress("glGetTexParameterfv")); glGetTexParameteriv=reinterpret_cast(eglGetProcAddress("glGetTexParameteriv")); glGetShaderiv=reinterpret_cast(eglGetProcAddress("glGetShaderiv")); glGetVertexAttribPointerv=reinterpret_cast(eglGetProcAddress("glGetVertexAttribPointerv")); glGetString=reinterpret_cast(eglGetProcAddress("glGetString")); glGetError=reinterpret_cast(eglGetProcAddress("glGetError")); glDrawBuffersEXT=reinterpret_cast(eglGetProcAddress("glDrawBuffersEXT")); glGenVertexArraysOES=reinterpret_cast(eglGetProcAddress("glGenVertexArraysOES")); glDeleteVertexArraysOES=reinterpret_cast(eglGetProcAddress("glDeleteVertexArraysOES")); glIsVertexArrayOES=reinterpret_cast(eglGetProcAddress("glIsVertexArrayOES")); glBindVertexArrayOES=reinterpret_cast(eglGetProcAddress("glBindVertexArrayOES")); }