Closed sry948749099 closed 1 year ago
NativeWindow
is available directly on AndroidApp
via fn native_window()
: https://docs.rs/android-activity/latest/android_activity/struct.AndroidApp.html#method.native_window
This getter is implemented for both native-activity
and game-activity
:
Hi
I see AndroidApp struct is different between game_activity and native_activity, In game_activity, used ffi::android_app, so we could get native_window form android_app in android_native_app_glue.h. But in native_activity, only used ndk_sys::ANativeActivity there do not have the attribute of native_window, so we could not get native_window for android to render in surface. How can i solve this problem?
Thanks!