Change AndroidAssetManager to use the native lib to load png and gif files

experimental
iwgeric 11 years ago
parent ee8e42f921
commit d1033005ae
  1. 3
      jme3-android/src/main/java/com/jme3/asset/AndroidAssetManager.java

@ -83,7 +83,8 @@ public class AndroidAssetManager extends DesktopAssetManager {
registerLocator("", AndroidLocator.class); registerLocator("", AndroidLocator.class);
registerLocator("", ClasspathLocator.class); registerLocator("", ClasspathLocator.class);
registerLoader(AndroidImageLoader.class, "jpg", "bmp", "gif", "png", "jpeg"); registerLoader(AndroidImageLoader.class, "jpg", "bmp", "jpeg");
registerLoader(AndroidImageLoader.class, "gif", "png");
if (JmeAndroidSystem.getAudioRendererType().equals(AppSettings.ANDROID_MEDIAPLAYER)) { if (JmeAndroidSystem.getAudioRendererType().equals(AppSettings.ANDROID_MEDIAPLAYER)) {
registerLoader(AndroidAudioLoader.class, "ogg", "mp3", "wav"); registerLoader(AndroidAudioLoader.class, "ogg", "mp3", "wav");
} else if (JmeAndroidSystem.getAudioRendererType().equals(AppSettings.ANDROID_OPENAL_SOFT)) { } else if (JmeAndroidSystem.getAudioRendererType().equals(AppSettings.ANDROID_OPENAL_SOFT)) {

Loading…
Cancel
Save