MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / sk_run

Function sk_run

StereoKitC/stereokit.cpp:364–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362///////////////////////////////////////////
363
364void sk_run(void (*app_update)(void), void (*app_shutdown)(void)) {
365 local.disallow_user_shutdown = true;
366
367#if defined(SK_OS_WEB)
368 sk_first_step();
369 web_start_main_loop(app_update, app_shutdown);
370#else
371 while (sk_step(app_update));
372
373 if (app_shutdown != nullptr)
374 app_shutdown();
375
376 local.disallow_user_shutdown = false;
377 sk_shutdown();
378#endif
379}
380
381///////////////////////////////////////////
382

Callers 1

wWinMainFunction · 0.85

Calls 4

sk_first_stepFunction · 0.85
web_start_main_loopFunction · 0.85
sk_stepFunction · 0.85
sk_shutdownFunction · 0.85

Tested by

no test coverage detected