MCPcopy Create free account
hub / github.com/borndotcom/react-native-godot / AndroidPlatformData

Class AndroidPlatformData

android/src/main/cpp/GodotModule.cpp:187–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185} WindowFuncData;
186
187struct 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
204GodotModule *GodotModule::get_singleton() {
205 static GodotModule *singleton = new GodotModule(new AndroidPlatformData());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected