|
@@ -292,6 +292,10 @@ int main(int, char**)
|
|
|
ImGuiIO& io = ImGui::GetIO(); (void)io;
|
|
|
//io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls
|
|
|
|
|
|
+ // Setup Dear ImGui style
|
|
|
+ ImGui::StyleColorsDark();
|
|
|
+ //ImGui::StyleColorsClassic();
|
|
|
+
|
|
|
// Setup Platform/Renderer bindings
|
|
|
ImGui_ImplWin32_Init(hwnd);
|
|
|
ImGui_ImplDX12_Init(g_pd3dDevice, NUM_FRAMES_IN_FLIGHT,
|
|
@@ -299,10 +303,6 @@ int main(int, char**)
|
|
|
g_pd3dSrvDescHeap->GetCPUDescriptorHandleForHeapStart(),
|
|
|
g_pd3dSrvDescHeap->GetGPUDescriptorHandleForHeapStart());
|
|
|
|
|
|
- // Setup Style
|
|
|
- ImGui::StyleColorsDark();
|
|
|
- //ImGui::StyleColorsClassic();
|
|
|
-
|
|
|
// Load Fonts
|
|
|
// - If no fonts are loaded, dear imgui will use the default font. You can also load multiple fonts and use ImGui::PushFont()/PopFont() to select them.
|
|
|
// - AddFontFromFileTTF() will return the ImFont* so you can store it if you need to select the font among multiple.
|