Restructuring glue code to make it easier to extend

This commit is contained in:
Bastiaan Olij
2019-04-05 21:44:06 +11:00
parent 1ab9b86a21
commit b2c0a687f1
14 changed files with 691 additions and 374 deletions
@@ -606,6 +606,9 @@ public class Godot extends Activity implements SensorEventListener, IDownloaderC
for (int i = 0; i < singleton_count; i++) {
singletons[i].onMainDestroy();
}
GodotLib.ondestroy(this);
super.onDestroy();
}
@@ -46,6 +46,7 @@ public class GodotLib {
*/
public static native void initialize(Godot p_instance, Object p_asset_manager, boolean use_apk_expansion);
public static native void ondestroy(Godot p_instance);
public static native void setup(String[] p_cmdline);
public static native void resize(int width, int height);
public static native void newcontext(boolean p_32_bits);