| 66 | } |
| 67 | |
| 68 | static void InitDisplay(ANativeWindow *window) { |
| 69 | if (!appInitialized) { |
| 70 | appInitialized = true; |
| 71 | |
| 72 | currentWindowWidth = ANativeWindow_getWidth(window); |
| 73 | currentWindowHeight = ANativeWindow_getHeight(window); |
| 74 | |
| 75 | ::app.Init(window); |
| 76 | |
| 77 | ::app.LoadResources(); |
| 78 | |
| 79 | mainContext = BE1::rhi.CreateContext(window, false); |
| 80 | |
| 81 | mainRenderTarget = ::app.CreateRenderTarget(mainContext); |
| 82 | |
| 83 | BE1::rhi.SetContextDisplayFunc(mainContext, DisplayMainContext, nullptr, false); |
| 84 | } else { |
| 85 | BE1::rhi.ActivateSurface(mainContext, window); |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | /* |
| 90 | * AcquireASensorManagerInstance(android_app* app) |
no test coverage detected