diff options
Diffstat (limited to 'platform/android/java')
| -rw-r--r-- | platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png | bin | 715 -> 462 bytes | |||
| -rw-r--r-- | platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png | bin | 361 -> 127 bytes | |||
| -rw-r--r-- | platform/android/java/res/drawable/icon.png | bin | 11155 -> 7569 bytes | |||
| -rw-r--r-- | platform/android/java/src/org/godotengine/godot/Godot.java | 15 | 
4 files changed, 12 insertions, 3 deletions
diff --git a/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png b/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png Binary files differindex 94bc406416..372b763ec5 100644 --- a/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png +++ b/platform/android/java/res/drawable-hdpi/notify_panel_notification_icon_bg.png diff --git a/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png b/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png Binary files differindex ef6fe4e836..c61c440636 100644 --- a/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png +++ b/platform/android/java/res/drawable-mdpi/notify_panel_notification_icon_bg.png diff --git a/platform/android/java/res/drawable/icon.png b/platform/android/java/res/drawable/icon.png Binary files differindex 29c4a7b8fc..6ad9b43117 100644 --- a/platform/android/java/res/drawable/icon.png +++ b/platform/android/java/res/drawable/icon.png diff --git a/platform/android/java/src/org/godotengine/godot/Godot.java b/platform/android/java/src/org/godotengine/godot/Godot.java index 90848e6a90..8a2d789dc5 100644 --- a/platform/android/java/src/org/godotengine/godot/Godot.java +++ b/platform/android/java/src/org/godotengine/godot/Godot.java @@ -32,6 +32,7 @@ package org.godotengine.godot;  import android.R;  import android.app.Activity; +import android.content.pm.ConfigurationInfo;  import android.os.Bundle;  import android.view.MotionEvent;  import android.view.View; @@ -246,9 +247,11 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC  		}  	}; -	public void onVideoInit(boolean use_gl2) { +	public void onVideoInit() { -		//mView = new GodotView(getApplication(),io,use_gl2); +		boolean use_gl3 = getGLESVersionCode() >= 0x00030000; + +		//mView = new GodotView(getApplication(),io,use_gl3);  		//setContentView(mView);  		layout = new FrameLayout(this); @@ -261,7 +264,7 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC  		// ...add to FrameLayout  		layout.addView(edittext); -		mView = new GodotView(getApplication(), io, use_gl2, use_32_bits, this); +		mView = new GodotView(getApplication(), io, use_gl3, use_32_bits, this);  		layout.addView(mView, new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));  		edittext.setView(mView);  		io.setEdit(edittext); @@ -338,6 +341,12 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC  		return Godot._self;  	} +	public int getGLESVersionCode() { +		ActivityManager am = (ActivityManager)Godot.getInstance().getSystemService(Context.ACTIVITY_SERVICE); +		ConfigurationInfo deviceInfo = am.getDeviceConfigurationInfo(); +		return deviceInfo.reqGlEsVersion; +	} +  	private String[] getCommandLine() {  		InputStream is;  		try {  |