GLEncoder::GLEncoder(IOStream *stream) : gl_encoder_context_t(stream) { m_initialized = false; m_state = NULL; m_error = GL_NO_ERROR; m_num_compressedTextureFormats = 0; m_compressedTextureFormats = NULL; // overrides; m_glFlush_enc = set_glFlush(s_glFlush); m_glPixelStorei_enc = set_glPixelStorei(s_glPixelStorei); m_glVertexPointer_enc = set_glVertexPointer(s_glVertexPointer); m_glNormalPointer_enc = set_glNormalPointer(s_glNormalPointer); m_glColorPointer_enc = set_glColorPointer(s_glColorPointer); m_glPointSizePointerOES_enc = set_glPointSizePointerOES(s_glPointsizePointer); m_glClientActiveTexture_enc = set_glClientActiveTexture(s_glClientActiveTexture); m_glTexCoordPointer_enc = set_glTexCoordPointer(s_glTexcoordPointer); m_glMatrixIndexPointerOES_enc = set_glMatrixIndexPointerOES(s_glMatrixIndexPointerOES); m_glWeightPointerOES_enc = set_glWeightPointerOES(s_glWeightPointerOES); m_glGetIntegerv_enc = set_glGetIntegerv(s_glGetIntegerv); m_glGetFloatv_enc = set_glGetFloatv(s_glGetFloatv); m_glGetBooleanv_enc = set_glGetBooleanv(s_glGetBooleanv); m_glGetFixedv_enc = set_glGetFixedv(s_glGetFixedv); m_glGetPointerv_enc = set_glGetPointerv(s_glGetPointerv); m_glBindBuffer_enc = set_glBindBuffer(s_glBindBuffer); m_glBufferData_enc = set_glBufferData(s_glBufferData); m_glBufferSubData_enc = set_glBufferSubData(s_glBufferSubData); m_glDeleteBuffers_enc = set_glDeleteBuffers(s_glDeleteBuffers); m_glEnableClientState_enc = set_glEnableClientState(s_glEnableClientState); m_glDisableClientState_enc = set_glDisableClientState(s_glDisableClientState); m_glIsEnabled_enc = set_glIsEnabled(s_glIsEnabled); m_glDrawArrays_enc = set_glDrawArrays(s_glDrawArrays); m_glDrawElements_enc = set_glDrawElements(s_glDrawElements); set_glGetString(s_glGetString); set_glFinish(s_glFinish); m_glGetError_enc = set_glGetError(s_glGetError); m_glActiveTexture_enc = set_glActiveTexture(s_glActiveTexture); m_glBindTexture_enc = set_glBindTexture(s_glBindTexture); m_glDeleteTextures_enc = set_glDeleteTextures(s_glDeleteTextures); m_glDisable_enc = set_glDisable(s_glDisable); m_glEnable_enc = set_glEnable(s_glEnable); m_glGetTexParameterfv_enc = set_glGetTexParameterfv(s_glGetTexParameterfv); m_glGetTexParameteriv_enc = set_glGetTexParameteriv(s_glGetTexParameteriv); m_glGetTexParameterxv_enc = set_glGetTexParameterxv(s_glGetTexParameterxv); m_glTexParameterf_enc = set_glTexParameterf(s_glTexParameterf); m_glTexParameterfv_enc = set_glTexParameterfv(s_glTexParameterfv); m_glTexParameteri_enc = set_glTexParameteri(s_glTexParameteri); m_glTexParameterx_enc = set_glTexParameterx(s_glTexParameterx); m_glTexParameteriv_enc = set_glTexParameteriv(s_glTexParameteriv); m_glTexParameterxv_enc = set_glTexParameterxv(s_glTexParameterxv); }
GL2Encoder::GL2Encoder(IOStream *stream) : gl2_encoder_context_t(stream) { m_initialized = false; m_state = NULL; m_error = GL_NO_ERROR; m_num_compressedTextureFormats = 0; m_compressedTextureFormats = NULL; //overrides m_glFlush_enc = set_glFlush(s_glFlush); m_glPixelStorei_enc = set_glPixelStorei(s_glPixelStorei); m_glGetString_enc = set_glGetString(s_glGetString); m_glBindBuffer_enc = set_glBindBuffer(s_glBindBuffer); m_glBufferData_enc = set_glBufferData(s_glBufferData); m_glBufferSubData_enc = set_glBufferSubData(s_glBufferSubData); m_glDeleteBuffers_enc = set_glDeleteBuffers(s_glDeleteBuffers); m_glDrawArrays_enc = set_glDrawArrays(s_glDrawArrays); m_glDrawElements_enc = set_glDrawElements(s_glDrawElements); m_glGetIntegerv_enc = set_glGetIntegerv(s_glGetIntegerv); m_glGetFloatv_enc = set_glGetFloatv(s_glGetFloatv); m_glGetBooleanv_enc = set_glGetBooleanv(s_glGetBooleanv); m_glVertexAttribPointer_enc = set_glVertexAttribPointer(s_glVertexAtrribPointer); m_glEnableVertexAttribArray_enc = set_glEnableVertexAttribArray(s_glEnableVertexAttribArray); m_glDisableVertexAttribArray_enc = set_glDisableVertexAttribArray(s_glDisableVertexAttribArray); m_glGetVertexAttribiv_enc = set_glGetVertexAttribiv(s_glGetVertexAttribiv); m_glGetVertexAttribfv_enc = set_glGetVertexAttribfv(s_glGetVertexAttribfv); m_glGetVertexAttribPointerv = set_glGetVertexAttribPointerv(s_glGetVertexAttribPointerv); set_glShaderSource(s_glShaderSource); set_glFinish(s_glFinish); m_glGetError_enc = set_glGetError(s_glGetError); m_glLinkProgram_enc = set_glLinkProgram(s_glLinkProgram); m_glDeleteProgram_enc = set_glDeleteProgram(s_glDeleteProgram); m_glGetUniformiv_enc = set_glGetUniformiv(s_glGetUniformiv); m_glGetUniformfv_enc = set_glGetUniformfv(s_glGetUniformfv); m_glCreateProgram_enc = set_glCreateProgram(s_glCreateProgram); m_glCreateShader_enc = set_glCreateShader(s_glCreateShader); m_glDeleteShader_enc = set_glDeleteShader(s_glDeleteShader); m_glAttachShader_enc = set_glAttachShader(s_glAttachShader); m_glDetachShader_enc = set_glDetachShader(s_glDetachShader); m_glGetUniformLocation_enc = set_glGetUniformLocation(s_glGetUniformLocation); m_glUseProgram_enc = set_glUseProgram(s_glUseProgram); m_glUniform1f_enc = set_glUniform1f(s_glUniform1f); m_glUniform1fv_enc = set_glUniform1fv(s_glUniform1fv); m_glUniform1i_enc = set_glUniform1i(s_glUniform1i); m_glUniform1iv_enc = set_glUniform1iv(s_glUniform1iv); m_glUniform2f_enc = set_glUniform2f(s_glUniform2f); m_glUniform2fv_enc = set_glUniform2fv(s_glUniform2fv); m_glUniform2i_enc = set_glUniform2i(s_glUniform2i); m_glUniform2iv_enc = set_glUniform2iv(s_glUniform2iv); m_glUniform3f_enc = set_glUniform3f(s_glUniform3f); m_glUniform3fv_enc = set_glUniform3fv(s_glUniform3fv); m_glUniform3i_enc = set_glUniform3i(s_glUniform3i); m_glUniform3iv_enc = set_glUniform3iv(s_glUniform3iv); m_glUniform4f_enc = set_glUniform4f(s_glUniform4f); m_glUniform4fv_enc = set_glUniform4fv(s_glUniform4fv); m_glUniform4i_enc = set_glUniform4i(s_glUniform4i); m_glUniform4iv_enc = set_glUniform4iv(s_glUniform4iv); m_glUniformMatrix2fv_enc = set_glUniformMatrix2fv(s_glUniformMatrix2fv); m_glUniformMatrix3fv_enc = set_glUniformMatrix3fv(s_glUniformMatrix3fv); m_glUniformMatrix4fv_enc = set_glUniformMatrix4fv(s_glUniformMatrix4fv); m_glActiveTexture_enc = set_glActiveTexture(s_glActiveTexture); m_glBindTexture_enc = set_glBindTexture(s_glBindTexture); m_glDeleteTextures_enc = set_glDeleteTextures(s_glDeleteTextures); m_glGetTexParameterfv_enc = set_glGetTexParameterfv(s_glGetTexParameterfv); m_glGetTexParameteriv_enc = set_glGetTexParameteriv(s_glGetTexParameteriv); m_glTexParameterf_enc = set_glTexParameterf(s_glTexParameterf); m_glTexParameterfv_enc = set_glTexParameterfv(s_glTexParameterfv); m_glTexParameteri_enc = set_glTexParameteri(s_glTexParameteri); m_glTexParameteriv_enc = set_glTexParameteriv(s_glTexParameteriv); }
int gl2_client_context_t::initDispatchByName(void *(*getProc)(const char *, void *userData), void *userData) { void *ptr; ptr = getProc("glActiveTexture", userData); set_glActiveTexture((glActiveTexture_client_proc_t)ptr); ptr = getProc("glAttachShader", userData); set_glAttachShader((glAttachShader_client_proc_t)ptr); ptr = getProc("glBindAttribLocation", userData); set_glBindAttribLocation((glBindAttribLocation_client_proc_t)ptr); ptr = getProc("glBindBuffer", userData); set_glBindBuffer((glBindBuffer_client_proc_t)ptr); ptr = getProc("glBindFramebuffer", userData); set_glBindFramebuffer((glBindFramebuffer_client_proc_t)ptr); ptr = getProc("glBindRenderbuffer", userData); set_glBindRenderbuffer((glBindRenderbuffer_client_proc_t)ptr); ptr = getProc("glBindTexture", userData); set_glBindTexture((glBindTexture_client_proc_t)ptr); ptr = getProc("glBlendColor", userData); set_glBlendColor((glBlendColor_client_proc_t)ptr); ptr = getProc("glBlendEquation", userData); set_glBlendEquation((glBlendEquation_client_proc_t)ptr); ptr = getProc("glBlendEquationSeparate", userData); set_glBlendEquationSeparate((glBlendEquationSeparate_client_proc_t)ptr); ptr = getProc("glBlendFunc", userData); set_glBlendFunc((glBlendFunc_client_proc_t)ptr); ptr = getProc("glBlendFuncSeparate", userData); set_glBlendFuncSeparate((glBlendFuncSeparate_client_proc_t)ptr); ptr = getProc("glBufferData", userData); set_glBufferData((glBufferData_client_proc_t)ptr); ptr = getProc("glBufferSubData", userData); set_glBufferSubData((glBufferSubData_client_proc_t)ptr); ptr = getProc("glCheckFramebufferStatus", userData); set_glCheckFramebufferStatus((glCheckFramebufferStatus_client_proc_t)ptr); ptr = getProc("glClear", userData); set_glClear((glClear_client_proc_t)ptr); ptr = getProc("glClearColor", userData); set_glClearColor((glClearColor_client_proc_t)ptr); ptr = getProc("glClearDepthf", userData); set_glClearDepthf((glClearDepthf_client_proc_t)ptr); ptr = getProc("glClearStencil", userData); set_glClearStencil((glClearStencil_client_proc_t)ptr); ptr = getProc("glColorMask", userData); set_glColorMask((glColorMask_client_proc_t)ptr); ptr = getProc("glCompileShader", userData); set_glCompileShader((glCompileShader_client_proc_t)ptr); ptr = getProc("glCompressedTexImage2D", userData); set_glCompressedTexImage2D((glCompressedTexImage2D_client_proc_t)ptr); ptr = getProc("glCompressedTexSubImage2D", userData); set_glCompressedTexSubImage2D((glCompressedTexSubImage2D_client_proc_t)ptr); ptr = getProc("glCopyTexImage2D", userData); set_glCopyTexImage2D((glCopyTexImage2D_client_proc_t)ptr); ptr = getProc("glCopyTexSubImage2D", userData); set_glCopyTexSubImage2D((glCopyTexSubImage2D_client_proc_t)ptr); ptr = getProc("glCreateProgram", userData); set_glCreateProgram((glCreateProgram_client_proc_t)ptr); ptr = getProc("glCreateShader", userData); set_glCreateShader((glCreateShader_client_proc_t)ptr); ptr = getProc("glCullFace", userData); set_glCullFace((glCullFace_client_proc_t)ptr); ptr = getProc("glDeleteBuffers", userData); set_glDeleteBuffers((glDeleteBuffers_client_proc_t)ptr); ptr = getProc("glDeleteFramebuffers", userData); set_glDeleteFramebuffers((glDeleteFramebuffers_client_proc_t)ptr); ptr = getProc("glDeleteProgram", userData); set_glDeleteProgram((glDeleteProgram_client_proc_t)ptr); ptr = getProc("glDeleteRenderbuffers", userData); set_glDeleteRenderbuffers((glDeleteRenderbuffers_client_proc_t)ptr); ptr = getProc("glDeleteShader", userData); set_glDeleteShader((glDeleteShader_client_proc_t)ptr); ptr = getProc("glDeleteTextures", userData); set_glDeleteTextures((glDeleteTextures_client_proc_t)ptr); ptr = getProc("glDepthFunc", userData); set_glDepthFunc((glDepthFunc_client_proc_t)ptr); ptr = getProc("glDepthMask", userData); set_glDepthMask((glDepthMask_client_proc_t)ptr); ptr = getProc("glDepthRangef", userData); set_glDepthRangef((glDepthRangef_client_proc_t)ptr); ptr = getProc("glDetachShader", userData); set_glDetachShader((glDetachShader_client_proc_t)ptr); ptr = getProc("glDisable", userData); set_glDisable((glDisable_client_proc_t)ptr); ptr = getProc("glDisableVertexAttribArray", userData); set_glDisableVertexAttribArray((glDisableVertexAttribArray_client_proc_t)ptr); ptr = getProc("glDrawArrays", userData); set_glDrawArrays((glDrawArrays_client_proc_t)ptr); ptr = getProc("glDrawElements", userData); set_glDrawElements((glDrawElements_client_proc_t)ptr); ptr = getProc("glEnable", userData); set_glEnable((glEnable_client_proc_t)ptr); ptr = getProc("glEnableVertexAttribArray", userData); set_glEnableVertexAttribArray((glEnableVertexAttribArray_client_proc_t)ptr); ptr = getProc("glFinish", userData); set_glFinish((glFinish_client_proc_t)ptr); ptr = getProc("glFlush", userData); set_glFlush((glFlush_client_proc_t)ptr); ptr = getProc("glFramebufferRenderbuffer", userData); set_glFramebufferRenderbuffer((glFramebufferRenderbuffer_client_proc_t)ptr); ptr = getProc("glFramebufferTexture2D", userData); set_glFramebufferTexture2D((glFramebufferTexture2D_client_proc_t)ptr); ptr = getProc("glFrontFace", userData); set_glFrontFace((glFrontFace_client_proc_t)ptr); ptr = getProc("glGenBuffers", userData); set_glGenBuffers((glGenBuffers_client_proc_t)ptr); ptr = getProc("glGenerateMipmap", userData); set_glGenerateMipmap((glGenerateMipmap_client_proc_t)ptr); ptr = getProc("glGenFramebuffers", userData); set_glGenFramebuffers((glGenFramebuffers_client_proc_t)ptr); ptr = getProc("glGenRenderbuffers", userData); set_glGenRenderbuffers((glGenRenderbuffers_client_proc_t)ptr); ptr = getProc("glGenTextures", userData); set_glGenTextures((glGenTextures_client_proc_t)ptr); ptr = getProc("glGetActiveAttrib", userData); set_glGetActiveAttrib((glGetActiveAttrib_client_proc_t)ptr); ptr = getProc("glGetActiveUniform", userData); set_glGetActiveUniform((glGetActiveUniform_client_proc_t)ptr); ptr = getProc("glGetAttachedShaders", userData); set_glGetAttachedShaders((glGetAttachedShaders_client_proc_t)ptr); ptr = getProc("glGetAttribLocation", userData); set_glGetAttribLocation((glGetAttribLocation_client_proc_t)ptr); ptr = getProc("glGetBooleanv", userData); set_glGetBooleanv((glGetBooleanv_client_proc_t)ptr); ptr = getProc("glGetBufferParameteriv", userData); set_glGetBufferParameteriv((glGetBufferParameteriv_client_proc_t)ptr); ptr = getProc("glGetError", userData); set_glGetError((glGetError_client_proc_t)ptr); ptr = getProc("glGetFloatv", userData); set_glGetFloatv((glGetFloatv_client_proc_t)ptr); ptr = getProc("glGetFramebufferAttachmentParameteriv", userData); set_glGetFramebufferAttachmentParameteriv((glGetFramebufferAttachmentParameteriv_client_proc_t)ptr); ptr = getProc("glGetIntegerv", userData); set_glGetIntegerv((glGetIntegerv_client_proc_t)ptr); ptr = getProc("glGetProgramiv", userData); set_glGetProgramiv((glGetProgramiv_client_proc_t)ptr); ptr = getProc("glGetProgramInfoLog", userData); set_glGetProgramInfoLog((glGetProgramInfoLog_client_proc_t)ptr); ptr = getProc("glGetRenderbufferParameteriv", userData); set_glGetRenderbufferParameteriv((glGetRenderbufferParameteriv_client_proc_t)ptr); ptr = getProc("glGetShaderiv", userData); set_glGetShaderiv((glGetShaderiv_client_proc_t)ptr); ptr = getProc("glGetShaderInfoLog", userData); set_glGetShaderInfoLog((glGetShaderInfoLog_client_proc_t)ptr); ptr = getProc("glGetShaderPrecisionFormat", userData); set_glGetShaderPrecisionFormat((glGetShaderPrecisionFormat_client_proc_t)ptr); ptr = getProc("glGetShaderSource", userData); set_glGetShaderSource((glGetShaderSource_client_proc_t)ptr); ptr = getProc("glGetString", userData); set_glGetString((glGetString_client_proc_t)ptr); ptr = getProc("glGetTexParameterfv", userData); set_glGetTexParameterfv((glGetTexParameterfv_client_proc_t)ptr); ptr = getProc("glGetTexParameteriv", userData); set_glGetTexParameteriv((glGetTexParameteriv_client_proc_t)ptr); ptr = getProc("glGetUniformfv", userData); set_glGetUniformfv((glGetUniformfv_client_proc_t)ptr); ptr = getProc("glGetUniformiv", userData); set_glGetUniformiv((glGetUniformiv_client_proc_t)ptr); ptr = getProc("glGetUniformLocation", userData); set_glGetUniformLocation((glGetUniformLocation_client_proc_t)ptr); ptr = getProc("glGetVertexAttribfv", userData); set_glGetVertexAttribfv((glGetVertexAttribfv_client_proc_t)ptr); ptr = getProc("glGetVertexAttribiv", userData); set_glGetVertexAttribiv((glGetVertexAttribiv_client_proc_t)ptr); ptr = getProc("glGetVertexAttribPointerv", userData); set_glGetVertexAttribPointerv((glGetVertexAttribPointerv_client_proc_t)ptr); ptr = getProc("glHint", userData); set_glHint((glHint_client_proc_t)ptr); ptr = getProc("glIsBuffer", userData); set_glIsBuffer((glIsBuffer_client_proc_t)ptr); ptr = getProc("glIsEnabled", userData); set_glIsEnabled((glIsEnabled_client_proc_t)ptr); ptr = getProc("glIsFramebuffer", userData); set_glIsFramebuffer((glIsFramebuffer_client_proc_t)ptr); ptr = getProc("glIsProgram", userData); set_glIsProgram((glIsProgram_client_proc_t)ptr); ptr = getProc("glIsRenderbuffer", userData); set_glIsRenderbuffer((glIsRenderbuffer_client_proc_t)ptr); ptr = getProc("glIsShader", userData); set_glIsShader((glIsShader_client_proc_t)ptr); ptr = getProc("glIsTexture", userData); set_glIsTexture((glIsTexture_client_proc_t)ptr); ptr = getProc("glLineWidth", userData); set_glLineWidth((glLineWidth_client_proc_t)ptr); ptr = getProc("glLinkProgram", userData); set_glLinkProgram((glLinkProgram_client_proc_t)ptr); ptr = getProc("glPixelStorei", userData); set_glPixelStorei((glPixelStorei_client_proc_t)ptr); ptr = getProc("glPolygonOffset", userData); set_glPolygonOffset((glPolygonOffset_client_proc_t)ptr); ptr = getProc("glReadPixels", userData); set_glReadPixels((glReadPixels_client_proc_t)ptr); ptr = getProc("glReleaseShaderCompiler", userData); set_glReleaseShaderCompiler((glReleaseShaderCompiler_client_proc_t)ptr); ptr = getProc("glRenderbufferStorage", userData); set_glRenderbufferStorage((glRenderbufferStorage_client_proc_t)ptr); ptr = getProc("glSampleCoverage", userData); set_glSampleCoverage((glSampleCoverage_client_proc_t)ptr); ptr = getProc("glScissor", userData); set_glScissor((glScissor_client_proc_t)ptr); ptr = getProc("glShaderBinary", userData); set_glShaderBinary((glShaderBinary_client_proc_t)ptr); ptr = getProc("glShaderSource", userData); set_glShaderSource((glShaderSource_client_proc_t)ptr); ptr = getProc("glStencilFunc", userData); set_glStencilFunc((glStencilFunc_client_proc_t)ptr); ptr = getProc("glStencilFuncSeparate", userData); set_glStencilFuncSeparate((glStencilFuncSeparate_client_proc_t)ptr); ptr = getProc("glStencilMask", userData); set_glStencilMask((glStencilMask_client_proc_t)ptr); ptr = getProc("glStencilMaskSeparate", userData); set_glStencilMaskSeparate((glStencilMaskSeparate_client_proc_t)ptr); ptr = getProc("glStencilOp", userData); set_glStencilOp((glStencilOp_client_proc_t)ptr); ptr = getProc("glStencilOpSeparate", userData); set_glStencilOpSeparate((glStencilOpSeparate_client_proc_t)ptr); ptr = getProc("glTexImage2D", userData); set_glTexImage2D((glTexImage2D_client_proc_t)ptr); ptr = getProc("glTexParameterf", userData); set_glTexParameterf((glTexParameterf_client_proc_t)ptr); ptr = getProc("glTexParameterfv", userData); set_glTexParameterfv((glTexParameterfv_client_proc_t)ptr); ptr = getProc("glTexParameteri", userData); set_glTexParameteri((glTexParameteri_client_proc_t)ptr); ptr = getProc("glTexParameteriv", userData); set_glTexParameteriv((glTexParameteriv_client_proc_t)ptr); ptr = getProc("glTexSubImage2D", userData); set_glTexSubImage2D((glTexSubImage2D_client_proc_t)ptr); ptr = getProc("glUniform1f", userData); set_glUniform1f((glUniform1f_client_proc_t)ptr); ptr = getProc("glUniform1fv", userData); set_glUniform1fv((glUniform1fv_client_proc_t)ptr); ptr = getProc("glUniform1i", userData); set_glUniform1i((glUniform1i_client_proc_t)ptr); ptr = getProc("glUniform1iv", userData); set_glUniform1iv((glUniform1iv_client_proc_t)ptr); ptr = getProc("glUniform2f", userData); set_glUniform2f((glUniform2f_client_proc_t)ptr); ptr = getProc("glUniform2fv", userData); set_glUniform2fv((glUniform2fv_client_proc_t)ptr); ptr = getProc("glUniform2i", userData); set_glUniform2i((glUniform2i_client_proc_t)ptr); ptr = getProc("glUniform2iv", userData); set_glUniform2iv((glUniform2iv_client_proc_t)ptr); ptr = getProc("glUniform3f", userData); set_glUniform3f((glUniform3f_client_proc_t)ptr); ptr = getProc("glUniform3fv", userData); set_glUniform3fv((glUniform3fv_client_proc_t)ptr); ptr = getProc("glUniform3i", userData); set_glUniform3i((glUniform3i_client_proc_t)ptr); ptr = getProc("glUniform3iv", userData); set_glUniform3iv((glUniform3iv_client_proc_t)ptr); ptr = getProc("glUniform4f", userData); set_glUniform4f((glUniform4f_client_proc_t)ptr); ptr = getProc("glUniform4fv", userData); set_glUniform4fv((glUniform4fv_client_proc_t)ptr); ptr = getProc("glUniform4i", userData); set_glUniform4i((glUniform4i_client_proc_t)ptr); ptr = getProc("glUniform4iv", userData); set_glUniform4iv((glUniform4iv_client_proc_t)ptr); ptr = getProc("glUniformMatrix2fv", userData); set_glUniformMatrix2fv((glUniformMatrix2fv_client_proc_t)ptr); ptr = getProc("glUniformMatrix3fv", userData); set_glUniformMatrix3fv((glUniformMatrix3fv_client_proc_t)ptr); ptr = getProc("glUniformMatrix4fv", userData); set_glUniformMatrix4fv((glUniformMatrix4fv_client_proc_t)ptr); ptr = getProc("glUseProgram", userData); set_glUseProgram((glUseProgram_client_proc_t)ptr); ptr = getProc("glValidateProgram", userData); set_glValidateProgram((glValidateProgram_client_proc_t)ptr); ptr = getProc("glVertexAttrib1f", userData); set_glVertexAttrib1f((glVertexAttrib1f_client_proc_t)ptr); ptr = getProc("glVertexAttrib1fv", userData); set_glVertexAttrib1fv((glVertexAttrib1fv_client_proc_t)ptr); ptr = getProc("glVertexAttrib2f", userData); set_glVertexAttrib2f((glVertexAttrib2f_client_proc_t)ptr); ptr = getProc("glVertexAttrib2fv", userData); set_glVertexAttrib2fv((glVertexAttrib2fv_client_proc_t)ptr); ptr = getProc("glVertexAttrib3f", userData); set_glVertexAttrib3f((glVertexAttrib3f_client_proc_t)ptr); ptr = getProc("glVertexAttrib3fv", userData); set_glVertexAttrib3fv((glVertexAttrib3fv_client_proc_t)ptr); ptr = getProc("glVertexAttrib4f", userData); set_glVertexAttrib4f((glVertexAttrib4f_client_proc_t)ptr); ptr = getProc("glVertexAttrib4fv", userData); set_glVertexAttrib4fv((glVertexAttrib4fv_client_proc_t)ptr); ptr = getProc("glVertexAttribPointer", userData); set_glVertexAttribPointer((glVertexAttribPointer_client_proc_t)ptr); ptr = getProc("glViewport", userData); set_glViewport((glViewport_client_proc_t)ptr); ptr = getProc("glEGLImageTargetTexture2DOES", userData); set_glEGLImageTargetTexture2DOES((glEGLImageTargetTexture2DOES_client_proc_t)ptr); ptr = getProc("glEGLImageTargetRenderbufferStorageOES", userData); set_glEGLImageTargetRenderbufferStorageOES((glEGLImageTargetRenderbufferStorageOES_client_proc_t)ptr); ptr = getProc("glGetProgramBinaryOES", userData); set_glGetProgramBinaryOES((glGetProgramBinaryOES_client_proc_t)ptr); ptr = getProc("glProgramBinaryOES", userData); set_glProgramBinaryOES((glProgramBinaryOES_client_proc_t)ptr); ptr = getProc("glMapBufferOES", userData); set_glMapBufferOES((glMapBufferOES_client_proc_t)ptr); ptr = getProc("glUnmapBufferOES", userData); set_glUnmapBufferOES((glUnmapBufferOES_client_proc_t)ptr); ptr = getProc("glTexImage3DOES", userData); set_glTexImage3DOES((glTexImage3DOES_client_proc_t)ptr); ptr = getProc("glTexSubImage3DOES", userData); set_glTexSubImage3DOES((glTexSubImage3DOES_client_proc_t)ptr); ptr = getProc("glCopyTexSubImage3DOES", userData); set_glCopyTexSubImage3DOES((glCopyTexSubImage3DOES_client_proc_t)ptr); ptr = getProc("glCompressedTexImage3DOES", userData); set_glCompressedTexImage3DOES((glCompressedTexImage3DOES_client_proc_t)ptr); ptr = getProc("glCompressedTexSubImage3DOES", userData); set_glCompressedTexSubImage3DOES((glCompressedTexSubImage3DOES_client_proc_t)ptr); ptr = getProc("glFramebufferTexture3DOES", userData); set_glFramebufferTexture3DOES((glFramebufferTexture3DOES_client_proc_t)ptr); ptr = getProc("glBindVertexArrayOES", userData); set_glBindVertexArrayOES((glBindVertexArrayOES_client_proc_t)ptr); ptr = getProc("glDeleteVertexArraysOES", userData); set_glDeleteVertexArraysOES((glDeleteVertexArraysOES_client_proc_t)ptr); ptr = getProc("glGenVertexArraysOES", userData); set_glGenVertexArraysOES((glGenVertexArraysOES_client_proc_t)ptr); ptr = getProc("glIsVertexArrayOES", userData); set_glIsVertexArrayOES((glIsVertexArrayOES_client_proc_t)ptr); ptr = getProc("glDiscardFramebufferEXT", userData); set_glDiscardFramebufferEXT((glDiscardFramebufferEXT_client_proc_t)ptr); ptr = getProc("glMultiDrawArraysEXT", userData); set_glMultiDrawArraysEXT((glMultiDrawArraysEXT_client_proc_t)ptr); ptr = getProc("glMultiDrawElementsEXT", userData); set_glMultiDrawElementsEXT((glMultiDrawElementsEXT_client_proc_t)ptr); ptr = getProc("glGetPerfMonitorGroupsAMD", userData); set_glGetPerfMonitorGroupsAMD((glGetPerfMonitorGroupsAMD_client_proc_t)ptr); ptr = getProc("glGetPerfMonitorCountersAMD", userData); set_glGetPerfMonitorCountersAMD((glGetPerfMonitorCountersAMD_client_proc_t)ptr); ptr = getProc("glGetPerfMonitorGroupStringAMD", userData); set_glGetPerfMonitorGroupStringAMD((glGetPerfMonitorGroupStringAMD_client_proc_t)ptr); ptr = getProc("glGetPerfMonitorCounterStringAMD", userData); set_glGetPerfMonitorCounterStringAMD((glGetPerfMonitorCounterStringAMD_client_proc_t)ptr); ptr = getProc("glGetPerfMonitorCounterInfoAMD", userData); set_glGetPerfMonitorCounterInfoAMD((glGetPerfMonitorCounterInfoAMD_client_proc_t)ptr); ptr = getProc("glGenPerfMonitorsAMD", userData); set_glGenPerfMonitorsAMD((glGenPerfMonitorsAMD_client_proc_t)ptr); ptr = getProc("glDeletePerfMonitorsAMD", userData); set_glDeletePerfMonitorsAMD((glDeletePerfMonitorsAMD_client_proc_t)ptr); ptr = getProc("glSelectPerfMonitorCountersAMD", userData); set_glSelectPerfMonitorCountersAMD((glSelectPerfMonitorCountersAMD_client_proc_t)ptr); ptr = getProc("glBeginPerfMonitorAMD", userData); set_glBeginPerfMonitorAMD((glBeginPerfMonitorAMD_client_proc_t)ptr); ptr = getProc("glEndPerfMonitorAMD", userData); set_glEndPerfMonitorAMD((glEndPerfMonitorAMD_client_proc_t)ptr); ptr = getProc("glGetPerfMonitorCounterDataAMD", userData); set_glGetPerfMonitorCounterDataAMD((glGetPerfMonitorCounterDataAMD_client_proc_t)ptr); ptr = getProc("glRenderbufferStorageMultisampleIMG", userData); set_glRenderbufferStorageMultisampleIMG((glRenderbufferStorageMultisampleIMG_client_proc_t)ptr); ptr = getProc("glFramebufferTexture2DMultisampleIMG", userData); set_glFramebufferTexture2DMultisampleIMG((glFramebufferTexture2DMultisampleIMG_client_proc_t)ptr); ptr = getProc("glDeleteFencesNV", userData); set_glDeleteFencesNV((glDeleteFencesNV_client_proc_t)ptr); ptr = getProc("glGenFencesNV", userData); set_glGenFencesNV((glGenFencesNV_client_proc_t)ptr); ptr = getProc("glIsFenceNV", userData); set_glIsFenceNV((glIsFenceNV_client_proc_t)ptr); ptr = getProc("glTestFenceNV", userData); set_glTestFenceNV((glTestFenceNV_client_proc_t)ptr); ptr = getProc("glGetFenceivNV", userData); set_glGetFenceivNV((glGetFenceivNV_client_proc_t)ptr); ptr = getProc("glFinishFenceNV", userData); set_glFinishFenceNV((glFinishFenceNV_client_proc_t)ptr); ptr = getProc("glSetFenceNV", userData); set_glSetFenceNV((glSetFenceNV_client_proc_t)ptr); ptr = getProc("glCoverageMaskNV", userData); set_glCoverageMaskNV((glCoverageMaskNV_client_proc_t)ptr); ptr = getProc("glCoverageOperationNV", userData); set_glCoverageOperationNV((glCoverageOperationNV_client_proc_t)ptr); ptr = getProc("glGetDriverControlsQCOM", userData); set_glGetDriverControlsQCOM((glGetDriverControlsQCOM_client_proc_t)ptr); ptr = getProc("glGetDriverControlStringQCOM", userData); set_glGetDriverControlStringQCOM((glGetDriverControlStringQCOM_client_proc_t)ptr); ptr = getProc("glEnableDriverControlQCOM", userData); set_glEnableDriverControlQCOM((glEnableDriverControlQCOM_client_proc_t)ptr); ptr = getProc("glDisableDriverControlQCOM", userData); set_glDisableDriverControlQCOM((glDisableDriverControlQCOM_client_proc_t)ptr); ptr = getProc("glExtGetTexturesQCOM", userData); set_glExtGetTexturesQCOM((glExtGetTexturesQCOM_client_proc_t)ptr); ptr = getProc("glExtGetBuffersQCOM", userData); set_glExtGetBuffersQCOM((glExtGetBuffersQCOM_client_proc_t)ptr); ptr = getProc("glExtGetRenderbuffersQCOM", userData); set_glExtGetRenderbuffersQCOM((glExtGetRenderbuffersQCOM_client_proc_t)ptr); ptr = getProc("glExtGetFramebuffersQCOM", userData); set_glExtGetFramebuffersQCOM((glExtGetFramebuffersQCOM_client_proc_t)ptr); ptr = getProc("glExtGetTexLevelParameterivQCOM", userData); set_glExtGetTexLevelParameterivQCOM((glExtGetTexLevelParameterivQCOM_client_proc_t)ptr); ptr = getProc("glExtTexObjectStateOverrideiQCOM", userData); set_glExtTexObjectStateOverrideiQCOM((glExtTexObjectStateOverrideiQCOM_client_proc_t)ptr); ptr = getProc("glExtGetTexSubImageQCOM", userData); set_glExtGetTexSubImageQCOM((glExtGetTexSubImageQCOM_client_proc_t)ptr); ptr = getProc("glExtGetBufferPointervQCOM", userData); set_glExtGetBufferPointervQCOM((glExtGetBufferPointervQCOM_client_proc_t)ptr); ptr = getProc("glExtGetShadersQCOM", userData); set_glExtGetShadersQCOM((glExtGetShadersQCOM_client_proc_t)ptr); ptr = getProc("glExtGetProgramsQCOM", userData); set_glExtGetProgramsQCOM((glExtGetProgramsQCOM_client_proc_t)ptr); ptr = getProc("glExtIsProgramBinaryQCOM", userData); set_glExtIsProgramBinaryQCOM((glExtIsProgramBinaryQCOM_client_proc_t)ptr); ptr = getProc("glExtGetProgramBinarySourceQCOM", userData); set_glExtGetProgramBinarySourceQCOM((glExtGetProgramBinarySourceQCOM_client_proc_t)ptr); ptr = getProc("glStartTilingQCOM", userData); set_glStartTilingQCOM((glStartTilingQCOM_client_proc_t)ptr); ptr = getProc("glEndTilingQCOM", userData); set_glEndTilingQCOM((glEndTilingQCOM_client_proc_t)ptr); ptr = getProc("glVertexAttribPointerData", userData); set_glVertexAttribPointerData((glVertexAttribPointerData_client_proc_t)ptr); ptr = getProc("glVertexAttribPointerOffset", userData); set_glVertexAttribPointerOffset((glVertexAttribPointerOffset_client_proc_t)ptr); ptr = getProc("glDrawElementsOffset", userData); set_glDrawElementsOffset((glDrawElementsOffset_client_proc_t)ptr); ptr = getProc("glDrawElementsData", userData); set_glDrawElementsData((glDrawElementsData_client_proc_t)ptr); ptr = getProc("glGetCompressedTextureFormats", userData); set_glGetCompressedTextureFormats((glGetCompressedTextureFormats_client_proc_t)ptr); ptr = getProc("glShaderString", userData); set_glShaderString((glShaderString_client_proc_t)ptr); ptr = getProc("glFinishRoundTrip", userData); set_glFinishRoundTrip((glFinishRoundTrip_client_proc_t)ptr); return 0; }