Lines Matching defs:app
42 * Shared state for our app.
45 struct android_app* app;
99 ANativeWindow_setBuffersGeometry(engine->app->window, 0, 0, format);
101 surface = eglCreateWindowSurface(display, config, engine->app->window, NULL);
168 static int32_t engine_handle_input(struct android_app* app, AInputEvent* event) {
169 struct engine* engine = (struct engine*)app->userData;
182 static void engine_handle_cmd(struct android_app* app, int32_t cmd) {
183 struct engine* engine = (struct engine*)app->userData;
187 engine->app->savedState = malloc(sizeof(struct saved_state));
188 *((struct saved_state*)engine->app->savedState) = engine->state;
189 engine->app->savedStateSize = sizeof(struct saved_state);
193 if (engine->app->window != NULL) {
203 // When our app gains focus, we start monitoring the accelerometer.
213 // When our app loses focus, we stop monitoring the accelerometer.
241 engine.app = state;