diff options
| author | hachem <im@hachem.wtf> | 2025-08-16 17:36:57 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-16 17:36:57 +0200 |
| commit | 279e2378c1ef02e3917c29f8fafb39c058971577 (patch) | |
| tree | e99af6bb415355bfc51c8be7bc7efb2c318998a1 /src/Core/Application.cpp | |
| parent | 46ab589e5e1351f3081b5b4c76350967ef2f88a8 (diff) | |
[add]: Themes and better UI
Diffstat (limited to 'src/Core/Application.cpp')
| -rw-r--r-- | src/Core/Application.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Core/Application.cpp b/src/Core/Application.cpp index 9aac646..302132a 100644 --- a/src/Core/Application.cpp +++ b/src/Core/Application.cpp @@ -7,6 +7,7 @@ #include <GLFW/glfw3.h> + namespace Donut { Application* Application::s_Instance = nullptr; @@ -133,7 +134,14 @@ namespace Donut m_StateManager->Render(); m_Window->BeginImGuiFrame(); + SetupDockingLayout(); m_StateManager->OnImUIRender(); m_Window->EndImGuiFrame(); } + + void Application::SetupDockingLayout() + { + ImGuiViewport* viewport = ImGui::GetMainViewport(); + ImGui::DockSpaceOverViewport(0, viewport, ImGuiDockNodeFlags_PassthruCentralNode); + } }; |
