| 283 | } |
| 284 | |
| 285 | static void OnWindowIconify(void* user_data, uint32_t iconify) |
| 286 | { |
| 287 | Engine* engine = (Engine*)user_data; |
| 288 | |
| 289 | // We reset the time on both events because |
| 290 | // on some platforms both events will arrive when regaining focus |
| 291 | engine->m_PreviousFrameTime = dmTime::GetMonotonicTime(); // we might have stalled for a long time |
| 292 | |
| 293 | ScopedExtensionParams params(engine); |
| 294 | |
| 295 | dmExtension::Event event; |
| 296 | event.m_Event = iconify ? EXTENSION_EVENT_ID_ICONIFYAPP : EXTENSION_EVENT_ID_DEICONIFYAPP; |
| 297 | dmExtension::DispatchEvent( params, &event ); |
| 298 | |
| 299 | dmGameSystem::OnWindowIconify(iconify != 0); |
| 300 | } |
| 301 | |
| 302 | static void SetupComponentCreateContext(HEngine engine, dmGameObject::ComponentTypeCreateCtx& component_create_ctx) |
| 303 | { |
nothing calls this directly
no test coverage detected