[add] Global_ITEM_WIDTH_Macro
[add] JointDebugger
This commit is contained in:
@@ -69,7 +69,7 @@ void CMainApp::Update(_float fTimeDelta)
|
||||
#ifdef _DEBUG
|
||||
m_pGameInstance->Present_TimeCost();
|
||||
GUI::Begin("SYSTEM", 0, IMGUI_GLOBAL_BEGIN_FLAG);
|
||||
GUI::PushItemWidth(80);
|
||||
GUI::PushItemWidth(IMGUI_GLOBAL_ITEM_WIDTH);
|
||||
GUI::SliderFloat("fTimeMult", &g_fTimeMult, 0.01f, 4.f);
|
||||
GUI::End();
|
||||
m_pGameInstance->Update_Engine(fTimeDelta * g_fTimeMult);
|
||||
@@ -222,13 +222,13 @@ HRESULT CMainApp::Ready_Prototypes()
|
||||
HRESULT CMainApp::Ready_IMGUI()
|
||||
{
|
||||
IMGUI_CHECKVERSION();
|
||||
ImGui::CreateContext();
|
||||
ImGuiIO& io = ImGui::GetIO(); (void)io;
|
||||
GUI::CreateContext();
|
||||
ImGuiIO& io = GUI::GetIO(); (void)io;
|
||||
ImFont* font = nullptr;
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
|
||||
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad;
|
||||
|
||||
ImGui::StyleColorsDark();
|
||||
GUI::StyleColorsDark();
|
||||
|
||||
ImGui_ImplWin32_Init(g_hWnd);
|
||||
ImGui_ImplDX11_Init(m_pDevice, m_pContext);
|
||||
@@ -255,7 +255,7 @@ HRESULT CMainApp::Release_IMGUI()
|
||||
{
|
||||
ImGui_ImplDX11_Shutdown();
|
||||
ImGui_ImplWin32_Shutdown();
|
||||
ImGui::DestroyContext();
|
||||
GUI::DestroyContext();
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user