MCPcopy Create free account
hub / github.com/9chu/LuaSTGPlus / Shutdown

Method Shutdown

LuaSTGPlus/AppFrame.cpp:1460–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1458}
1459
1460void AppFrame::Shutdown()LNOEXCEPT
1461{
1462 m_GameObjectPool = nullptr;
1463 LINFO("已清空对象池");
1464
1465 m_ResourceMgr.ClearAllResource();
1466 LINFO("已清空所有资源");
1467
1468 m_Joystick[0] = m_Joystick[1] = nullptr;
1469 m_Keyboard = nullptr;
1470 m_PostEffectBuffer = nullptr;
1471 m_Graph3D = nullptr;
1472 m_GRenderer = nullptr;
1473 m_FontRenderer = nullptr;
1474 m_Graph2D = nullptr;
1475 m_pInputSys = nullptr;
1476 m_pSoundSys = nullptr;
1477 m_pRenderDev = nullptr;
1478 m_pRenderer = nullptr;
1479 m_pMainWindow = nullptr;
1480 m_pEngine = nullptr;
1481 LINFO("已卸载fancy2d");
1482
1483 if (L)
1484 {
1485 lua_close(L);
1486 L = nullptr;
1487 LINFO("已卸载Lua虚拟机");
1488 }
1489 m_ResourceMgr.UnloadAllPack();
1490 LINFO("已卸载所有资源包");
1491
1492 m_iStatus = AppStatus::Destroyed;
1493 LINFO("框架销毁");
1494}
1495
1496void AppFrame::Run()LNOEXCEPT
1497{

Callers 1

WinMainFunction · 0.80

Calls 2

ClearAllResourceMethod · 0.80
UnloadAllPackMethod · 0.80

Tested by

no test coverage detected