MCPcopy Create free account
hub / github.com/defold/defold / EngineDestroy

Function EngineDestroy

engine/graphics/src/test/test_app_graphics.cpp:853–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853static void EngineDestroy(void* _engine)
854{
855 EngineCtx* engine = (EngineCtx*)_engine;
856 dmGraphics::CloseWindow(engine->m_GraphicsContext);
857 dmGraphics::DeleteContext(engine->m_GraphicsContext);
858 dmGraphics::Finalize();
859
860 if (engine->m_JobContext)
861 JobSystemDestroy(engine->m_JobContext);
862
863 engine->m_WasDestroyed++;
864}
865
866static UpdateResult EngineUpdate(void* _engine)
867{

Callers

nothing calls this directly

Calls 4

JobSystemDestroyFunction · 0.85
CloseWindowFunction · 0.50
DeleteContextFunction · 0.50
FinalizeFunction · 0.50

Tested by

no test coverage detected