MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / MainLoop

Method MainLoop

olcPixelGameEngine.h:7951–7966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7949 }
7950
7951 static void MainLoop()
7952 {
7953 olc::Platform::ptrPGE->olc_CoreUpdate();
7954 if (!ptrPGE->olc_IsRunning())
7955 {
7956 if (ptrPGE->OnUserDestroy())
7957 {
7958 emscripten_cancel_main_loop();
7959 platform->ApplicationCleanUp();
7960 }
7961 else
7962 {
7963 ptrPGE->olc_Reanimate();
7964 }
7965 }
7966 }
7967 };
7968
7969 //Emscripten needs a special Start function

Callers

nothing calls this directly

Calls 5

olc_CoreUpdateMethod · 0.80
olc_IsRunningMethod · 0.80
OnUserDestroyMethod · 0.80
olc_ReanimateMethod · 0.80
ApplicationCleanUpMethod · 0.45

Tested by

no test coverage detected