MCPcopy Create free account
hub / github.com/crownengine/crown / android_main

Function android_main

src/device/main_android.cpp:1068–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066} // namespace crown
1067
1068void android_main(struct android_app *app)
1069{
1070 using namespace crown;
1071
1072 memory_globals::init();
1073 profiler_globals::init();
1074 guid_globals::init();
1075
1076 DeviceOptions opts(default_allocator(), 0, NULL);
1077 g_platform_data._android_asset_manager = app->activity->assetManager;
1078 g_platform_data._android_internal_data_path = (void *)app->activity->internalDataPath;
1079 g_platform_data._android_obb_path = (void *)app->activity->obbPath;
1080
1081 s_android_device = CE_NEW(default_allocator(), AndroidDevice)(default_allocator());
1082 s_android_device->run(app, opts);
1083 CE_DELETE(default_allocator(), s_android_device);
1084
1085 guid_globals::shutdown();
1086 profiler_globals::shutdown();
1087 memory_globals::shutdown();
1088}
1089
1090#endif // if CROWN_PLATFORM_ANDROID

Callers 2

android_app_entryFunction · 0.85
android_app_entryFunction · 0.85

Calls 3

initFunction · 0.70
shutdownFunction · 0.70
runMethod · 0.45

Tested by

no test coverage detected