| 185 | } WindowFuncData; |
| 186 | |
| 187 | struct AndroidPlatformData : PlatformData { |
| 188 | ANativeWindow *mainNativeWindow = nullptr; |
| 189 | godot::Ref<godot::RenderingNativeSurface> mainSurface; |
| 190 | |
| 191 | void *handle = nullptr; |
| 192 | libgodot_create_godot_instance_android_type func_libgodot_create_godot_instance_android = nullptr; |
| 193 | libgodot_destroy_godot_instance_type func_libgodot_destroy_godot_instance = nullptr; |
| 194 | double contentScaleFactor = 1.0; |
| 195 | std::map<std::string, WindowFuncData> windowUpdateCallbacks; |
| 196 | std::map<void *, std::string> handleToWindowName; |
| 197 | bool in_background = false; |
| 198 | bool paused = false; |
| 199 | AndroidThread thread; |
| 200 | std::mutex windowUpdateMutex; |
| 201 | std::mutex createMutex; |
| 202 | }; |
| 203 | |
| 204 | GodotModule *GodotModule::get_singleton() { |
| 205 | static GodotModule *singleton = new GodotModule(new AndroidPlatformData()); |
nothing calls this directly
no outgoing calls
no test coverage detected