MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / InitInstance

Function InitInstance

Source/TestRenderer/AndroidMain.cpp:321–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321static void InitInstance(android_app *appState) {
322 BE1::AndroidJNI::Init(appState->activity);
323
324 BE1::Str basePath = appState->activity->externalDataPath;
325 BE1::Engine::InitBase(basePath.c_str(), false, SystemLog, SystemError);
326
327 // Set window format to 8888
328 ANativeActivity_setWindowFormat(appState->activity, WINDOW_FORMAT_RGBA_8888);
329
330 appState->onAppCmd = HandleCmd; // app command callback
331 appState->onInputEvent = HandleInput; // input event callback
332
333#ifdef USE_NDK_PROFILER
334 monstartup("libTestRenderer.so");
335#endif
336
337 // Prepare to monitor accelerometer
338 InitSensors(appState);
339}
340
341static void ShutdownInstance() {
342 app.FreeResources();

Callers 1

android_mainFunction · 0.70

Calls 2

InitSensorsFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected