implement some stuff to make exaple SDL app run

NOTE: the main addition in this commit is WIP support for apps which
render on an EGL surface obtained using ANativeWindow_fromSurface

currently, this EGL surface is obtained by creating a 700x700 pixel
window with GLFW (the 700x700 size is hardcoded in several places)
and only Wayland is supported

ideally, we'd want to use a wayland subsurface to position the EGL
surface above the Surface widget it's associated with (and do
whatever for X11)
This commit is contained in:
Mis012
2022-10-26 18:39:04 +02:00
parent 3627f35bd5
commit b801f0fb3c
26 changed files with 1552 additions and 161 deletions

View File

@@ -142,6 +142,7 @@ hax_jar = jar('hax', [
'android/view/WindowManager.java',
'android/view/ViewGroup.java',
'android/view/SurfaceHolder.java',
'android/view/InputDevice.java',
'android/view/InputEvent.java',
'android/view/View.java',
'android/view/LayoutInflater.java',
@@ -154,6 +155,7 @@ hax_jar = jar('hax', [
'android/hardware/SensorEventListener.java',
'android/hardware/Sensor.java',
'android/hardware/SensorManager.java',
'android/hardware/usb/UsbManager.java',
'android/text/TextUtils.java',
'android/text/Spannable.java',
'android/text/ClipboardManager.java',
@@ -173,6 +175,7 @@ hax_jar = jar('hax', [
'android/content/Context.java',
'android/content/ActivityNotFoundException.java',
'android/content/DialogInterface.java',
'android/content/IntentFilter.java',
'android/content/OperationApplicationException.java',
'android/content/res/ColorStateList.java',
'android/content/res/XmlResourceParser.java',