[add] RestartLevel
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include "pch.h"
|
||||
#include "pch.h"
|
||||
#include "MainApp.h"
|
||||
#include "GameInstance.h"
|
||||
#include "Level_Loading.h"
|
||||
#include "InfoInstance.h"
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
_float g_fTimeMult = 1.f;
|
||||
#endif // _DEBUG
|
||||
|
||||
|
||||
CMainApp::CMainApp()
|
||||
: m_pGameInstance{ CGameInstance::GetInstance() }
|
||||
{
|
||||
@@ -74,7 +74,7 @@ HRESULT CMainApp::Render()
|
||||
|
||||
m_pGameInstance->Draw();
|
||||
GUI::Render();
|
||||
//m_pGameInstance->Render_Font(TEXT("HYHL"), TEXT("피곤해 못 써"), _float2(0.f, 0.f), XMVectorSet(1.f, 0.f, 0.f, 1.f));
|
||||
//m_pGameInstance->Render_Font(TEXT("HYHL"), TEXT("피곤해 못 써"), _float2(0.f, 0.f), XMVectorSet(1.f, 0.f, 0.f, 1.f));
|
||||
ImGui_ImplDX11_RenderDrawData(GUI::GetDrawData());
|
||||
m_pGameInstance->Render_End();
|
||||
|
||||
@@ -96,7 +96,14 @@ HRESULT CMainApp::Start_Level(LEVEL eLevelID)
|
||||
if (FAILED(m_pGameInstance->Change_Level(CLevel_Loading::Create(m_pDevice, m_pContext, LEVEL::LOADING, eLevelID)))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
m_pInfoInstance = CInfoInstance::GetInstance();
|
||||
if (nullptr == m_pInfoInstance) {
|
||||
return E_FAIL;
|
||||
}
|
||||
SAFE_ADDREF(m_pInfoInstance);
|
||||
if (FAILED(m_pInfoInstance->Initialize_Information(m_pDevice, m_pContext))) {
|
||||
return E_FAIL;
|
||||
}
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
@@ -157,6 +164,9 @@ void CMainApp::Free()
|
||||
{
|
||||
__super::Free();
|
||||
|
||||
m_pInfoInstance->Release_Information();
|
||||
SAFE_RELEASE(m_pInfoInstance);
|
||||
|
||||
Release_IMGUI();
|
||||
|
||||
SAFE_RELEASE(m_pDevice);
|
||||
|
||||
Reference in New Issue
Block a user