From d63ca3ad5d2acf20a8ff8f27778ef084b305260c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 5 Aug 2011 22:13:11 +0200 Subject: Android hacks: ClassLoaderUtil (vie Dex.., w/ native libs) ; Merged big jar ; eglGetDevice(0) fails --- .../classes/jogamp/newt/driver/android/MD.java | 29 ++++++++-- .../newt/driver/android/NEWTSurfaceView.java | 62 +++++++++++++++++++--- .../newt/driver/android/NewtVersionActivity.java | 9 ++-- .../newt/driver/android/SurfaceCallback.java | 54 ------------------- 4 files changed, 85 insertions(+), 69 deletions(-) delete mode 100644 src/newt/classes/jogamp/newt/driver/android/SurfaceCallback.java (limited to 'src/newt') diff --git a/src/newt/classes/jogamp/newt/driver/android/MD.java b/src/newt/classes/jogamp/newt/driver/android/MD.java index 9a2ed9824..06f787233 100644 --- a/src/newt/classes/jogamp/newt/driver/android/MD.java +++ b/src/newt/classes/jogamp/newt/driver/android/MD.java @@ -27,6 +27,11 @@ */ package jogamp.newt.driver.android; +import java.util.List; + +import javax.media.opengl.GLDrawableFactory; +import javax.media.opengl.GLProfile; + import com.jogamp.common.GlueGenVersion; import com.jogamp.common.os.Platform; import com.jogamp.common.util.VersionUtil; @@ -36,9 +41,25 @@ public class MD { public static final String TAG = "JogAmp.NEWT"; public static String getInfo() { - return VersionUtil.getPlatformInfo()+Platform.NEWLINE+ - GlueGenVersion.getInstance()+Platform.NEWLINE+ - JoglVersion.getInstance()+Platform.NEWLINE+ - Platform.NEWLINE; + + StringBuffer sb = new StringBuffer(); + + sb.append(VersionUtil.getPlatformInfo()).append(Platform.NEWLINE) + .append(GlueGenVersion.getInstance()).append(Platform.NEWLINE) + .append(JoglVersion.getInstance()).append(Platform.NEWLINE) + .append(Platform.NEWLINE); + + final GLDrawableFactory factory = GLDrawableFactory.getEGLFactory(); + final List/**/ availCaps = factory.getAvailableCapabilities(null); + for(int i=0; i