From f866a7f451a448746715c0fb2577d2d1f3c6f760 Mon Sep 17 00:00:00 2001 From: Charles Huber Date: Tue, 7 Oct 2014 13:45:59 -0500 Subject: [PATCH] Add DEF files for GLES1 and GLES2 Add DEF files so that libGLESv1_CM.dll and libGLESv2.dll get undecorated (no '_' prefix or '@' suffix) exports. --- src/mapi/shared-glapi/SConscript | 4 ++ src/mapi/shared-glapi/gles1.def | 146 +++++++++++++++++++++++++++++++++++++++ src/mapi/shared-glapi/gles2.def | 143 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 293 insertions(+) create mode 100644 src/mapi/shared-glapi/gles1.def create mode 100644 src/mapi/shared-glapi/gles2.def diff --git a/src/mapi/shared-glapi/SConscript b/src/mapi/shared-glapi/SConscript index 07b3eff..5fcbc94 100644 --- a/src/mapi/shared-glapi/SConscript +++ b/src/mapi/shared-glapi/SConscript @@ -87,6 +87,8 @@ else: libs = ['glapi'] es1api_objects = mapi_objects(env, 'es1api', 'bridge') +if env['platform'] == 'windows': + es1api_objects += ['gles1.def'] es1api = env.SharedLibrary( target = 'GLESv1_CM', source = es1api_objects, @@ -95,6 +97,8 @@ es1api = env.SharedLibrary( ) es2api_objects = mapi_objects(env, 'es2api', 'bridge') +if env['platform'] == 'windows': + es2api_objects += ['gles2.def'] es2api = env.SharedLibrary( target = 'GLESv2', source = es2api_objects, diff --git a/src/mapi/shared-glapi/gles1.def b/src/mapi/shared-glapi/gles1.def new file mode 100644 index 0000000..34d8604 --- /dev/null +++ b/src/mapi/shared-glapi/gles1.def @@ -0,0 +1,146 @@ +EXPORTS + glActiveTexture + glAlphaFunc + glAlphaFuncx + glBindBuffer + glBindTexture + glBlendFunc + glBufferData + glBufferSubData + glClear + glClearColor + glClearColorx + glClearDepthf + glClearDepthx + glClearStencil + glClientActiveTexture + glClipPlanef + glClipPlanex + glColor4f + glColor4ub + glColor4x + glColorMask + glColorPointer + glCompressedTexImage2D + glCompressedTexSubImage2D + glCopyTexImage2D + glCopyTexSubImage2D + glCullFace + glDeleteBuffers + glDeleteTextures + glDepthFunc + glDepthMask + glDepthRangef + glDepthRangex + glDisable + glDisableClientState + glDrawArrays + glDrawElements + glEnable + glEnableClientState + glFinish + glFlush + glFogf + glFogfv + glFogx + glFogxv + glFrontFace + glFrustumf + glFrustumx + glGenBuffers + glGenTextures + glGetBooleanv + glGetBufferParameteriv + glGetClipPlanef + glGetClipPlanex + glGetError + glGetFixedv + glGetFloatv + glGetIntegerv + glGetLightfv + glGetLightxv + glGetMaterialfv + glGetMaterialxv + glGetPointerv + glGetString + glGetTexEnvfv + glGetTexEnviv + glGetTexEnvxv + glGetTexParameterfv + glGetTexParameteriv + glGetTexParameterxv + glHint + glIsBuffer + glIsEnabled + glIsTexture + glLightModelf + glLightModelfv + glLightModelx + glLightModelxv + glLightf + glLightfv + glLightx + glLightxv + glLineWidth + glLineWidthx + glLoadIdentity + glLoadMatrixf + glLoadMatrixx + glLogicOp + glMaterialf + glMaterialfv + glMaterialx + glMaterialxv + glMatrixMode + glMultMatrixf + glMultMatrixx + glMultiTexCoord4f + glMultiTexCoord4x + glNormal3f + glNormal3x + glNormalPointer + glOrthof + glOrthox + glPixelStorei + glPointParameterf + glPointParameterfv + glPointParameterx + glPointParameterxv + glPointSize + glPointSizePointerOES + glPointSizex + glPolygonOffset + glPolygonOffsetx + glPopMatrix + glPushMatrix + glReadPixels + glRotatef + glRotatex + glSampleCoverage + glSampleCoveragex + glScalef + glScalex + glScissor + glShadeModel + glStencilFunc + glStencilMask + glStencilOp + glTexCoordPointer + glTexEnvf + glTexEnvfv + glTexEnvi + glTexEnviv + glTexEnvx + glTexEnvxv + glTexImage2D + glTexParameterf + glTexParameterfv + glTexParameteri + glTexParameteriv + glTexParameterx + glTexParameterxv + glTexSubImage2D + glTranslatef + glTranslatex + glVertexPointer + glViewport diff --git a/src/mapi/shared-glapi/gles2.def b/src/mapi/shared-glapi/gles2.def new file mode 100644 index 0000000..aacb2f2 --- /dev/null +++ b/src/mapi/shared-glapi/gles2.def @@ -0,0 +1,143 @@ +EXPORTS + glActiveTexture + glAttachShader + glBindAttribLocation + glBindBuffer + glBindFramebuffer + glBindRenderbuffer + glBindTexture + glBlendColor + glBlendEquation + glBlendEquationSeparate + glBlendFunc + glBlendFuncSeparate + glBufferData + glBufferSubData + glCheckFramebufferStatus + glClear + glClearColor + glClearDepthf + glClearStencil + glColorMask + glCompileShader + glCompressedTexImage2D + glCompressedTexSubImage2D + glCopyTexImage2D + glCopyTexSubImage2D + glCreateProgram + glCreateShader + glCullFace + glDeleteBuffers + glDeleteFramebuffers + glDeleteProgram + glDeleteRenderbuffers + glDeleteShader + glDeleteTextures + glDepthFunc + glDepthMask + glDepthRangef + glDetachShader + glDisable + glDisableVertexAttribArray + glDrawArrays + glDrawElements + glEnable + glEnableVertexAttribArray + glFinish + glFlush + glFramebufferRenderbuffer + glFramebufferTexture2D + glFrontFace + glGenBuffers + glGenFramebuffers + glGenRenderbuffers + glGenTextures + glGenerateMipmap + glGetActiveAttrib + glGetActiveUniform + glGetAttachedShaders + glGetAttribLocation + glGetBooleanv + glGetBufferParameteriv + glGetError + glGetFloatv + glGetFramebufferAttachmentParameteriv + glGetIntegerv + glGetProgramInfoLog + glGetProgramiv + glGetRenderbufferParameteriv + glGetShaderInfoLog + glGetShaderPrecisionFormat + glGetShaderSource + glGetShaderiv + glGetString + glGetTexParameterfv + glGetTexParameteriv + glGetUniformLocation + glGetUniformfv + glGetUniformiv + glGetVertexAttribPointerv + glGetVertexAttribfv + glGetVertexAttribiv + glHint + glIsBuffer + glIsEnabled + glIsFramebuffer + glIsProgram + glIsRenderbuffer + glIsShader + glIsTexture + glLineWidth + glLinkProgram + glPixelStorei + glPolygonOffset + glReadPixels + glReleaseShaderCompiler + glRenderbufferStorage + glSampleCoverage + glScissor + glShaderBinary + glShaderSource + glStencilFunc + glStencilFuncSeparate + glStencilMask + glStencilMaskSeparate + glStencilOp + glStencilOpSeparate + glTexImage2D + glTexParameterf + glTexParameterfv + glTexParameteri + glTexParameteriv + glTexSubImage2D + glUniform1f + glUniform1fv + glUniform1i + glUniform1iv + glUniform2f + glUniform2fv + glUniform2i + glUniform2iv + glUniform3f + glUniform3fv + glUniform3i + glUniform3iv + glUniform4f + glUniform4fv + glUniform4i + glUniform4iv + glUniformMatrix2fv + glUniformMatrix3fv + glUniformMatrix4fv + glUseProgram + glValidateProgram + glVertexAttrib1f + glVertexAttrib1fv + glVertexAttrib2f + glVertexAttrib2fv + glVertexAttrib3f + glVertexAttrib3fv + glVertexAttrib4f + glVertexAttrib4fv + glVertexAttribPointer + glViewport -- 1.8.3.msysgit.1