diff options
author | Sven Gothel <[email protected]> | 2011-08-09 20:12:00 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-08-09 20:12:00 +0200 |
commit | ff2c2bfb69699ad00ba80f90cbfea6d4ce1ab778 (patch) | |
tree | 2e956caf2d701d288947484fcd685505d0cfbde3 /src/jogl/classes/jogamp/opengl/egl | |
parent | 4ebd4e46f1b17fce7dabf7e0290f7a3e489873ca (diff) |
Adapt to DynamicLibraryBundleInfo API change ; Remove non std EGL/ES libs (Android)
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/egl')
3 files changed, 8 insertions, 15 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java index ff838dd0b..4182c4666 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLDynamicLibraryBundleInfo.java @@ -60,23 +60,26 @@ public abstract class EGLDynamicLibraryBundleInfo extends GLDynamicLibraryBundle /** Might be a desktop GL library, and might need to allow symbol access to subsequent libs */ public boolean shallLinkGlobal() { return true; } + + public boolean shallLookupGlobal() { return true; } + public final List getToolGetProcAddressFuncNameList() { List res = new ArrayList(); res.add("eglGetProcAddress"); return res; } - public final long toolDynamicLookupFunction(long toolGetProcAddressHandle, String funcName) { + public final long toolGetProcAddress(long toolGetProcAddressHandle, String funcName) { return EGL.eglGetProcAddress(toolGetProcAddressHandle, funcName); } + public final boolean useToolGetProcAdressFirst(String funcName) { + return false; // JAU / FIXME funcName.startsWith("egl"); + } + protected List/*<String>*/ getEGLLibNamesList() { List/*<String>*/ eglLibNames = new ArrayList(); - if(Platform.getOSType() == Platform.OSType.ANDROID) { - // using the android-EGL fails - eglLibNames.add("/system/lib/egl/libEGL_POWERVR_SGX530_125.so"); - } // try default generic names first eglLibNames.add("EGL"); diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java index 8d59899f2..4c38a29b1 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLES1DynamicLibraryBundleInfo.java @@ -44,11 +44,6 @@ public class EGLES1DynamicLibraryBundleInfo extends EGLDynamicLibraryBundleInfo List/*<String>*/ glesLibNames = new ArrayList(); - if(Platform.getOSType() == Platform.OSType.ANDROID) { - // using the android-EGL fails - glesLibNames.add("/system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so"); - } - // try default generic names first glesLibNames.add("GLES_CM"); glesLibNames.add("GLES_CL"); diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java b/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java index 175c97854..7943e1946 100644 --- a/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java +++ b/src/jogl/classes/jogamp/opengl/egl/EGLES2DynamicLibraryBundleInfo.java @@ -44,11 +44,6 @@ public class EGLES2DynamicLibraryBundleInfo extends EGLDynamicLibraryBundleInfo List/*<String>*/ glesLibNames = new ArrayList(); - if(Platform.getOSType() == Platform.OSType.ANDROID) { - // using the android-EGL fails - glesLibNames.add("/system/lib/egl/libGLESv2_POWERVR_SGX530_125.so"); - } - // try default generic names first glesLibNames.add("GLES20"); glesLibNames.add("GLESv2"); |