Skip to content

Commit cd86651

Browse files
committed
Add extended ImGui debug panels
1 parent a5a1e9d commit cd86651

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/core/Core/Window.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void Window::update() {
8888
if (ImGui::BeginMenu("View")) {
8989
ImGui::MenuItem("Some Panel", nullptr, &m_show_some_panel);
9090
ImGui::MenuItem("ImGui Demo Panel", nullptr, &m_show_demo_panel);
91-
ImGui::MenuItem("Debug Panel", nullptr, &m_show_debug_panel);
91+
ImGui::MenuItem("Debug Panels", nullptr, &m_show_debug_panel);
9292
ImGui::EndMenu();
9393
}
9494

@@ -111,7 +111,10 @@ void Window::update() {
111111
if (m_show_debug_panel) {
112112
const ImGuiIO& io{ImGui::GetIO()};
113113

114-
ImGui::Begin("Debug panel", &m_show_debug_panel);
114+
ImGui::ShowMetricsWindow();
115+
ImGui::ShowDebugLogWindow();
116+
117+
ImGui::Begin("App debug panel", &m_show_debug_panel);
115118
ImGui::Text("Current SDL_Renderer: %s", SDL_GetRendererName(m_renderer));
116119
ImGui::Text("User config path: %s", m_user_config_path.c_str());
117120
ImGui::Text("Global font scaling %f", io.FontGlobalScale);

0 commit comments

Comments
 (0)