clean up debug

This commit is contained in:
2025-03-22 01:53:10 -05:00
parent 4bd2d6908e
commit 92294c3166
2 changed files with 8 additions and 8 deletions

View File

@@ -21,31 +21,25 @@ void TestImgui::onLoad() {
createWindow();
std::cout << "Check version" << std::endl;
window->getRenderer().init();
IMGUI_CHECKVERSION();
std::cout << "CreateContext" << std::endl;
ImGui::CreateContext();
std::cout << "GetIO" << std::endl;
ImGuiIO& io = ImGui::GetIO(); (void)io;
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard; // Enable Keyboard Controls
io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad; // Enable Gamepad Controls
std::cout << "Set Style" << std::endl;
// Setup Dear ImGui style
ImGui::StyleColorsDark();
//ImGui::StyleColorsLight();
std::cout << "ImGui_ImplGlfw_InitForOpenGL" << std::endl;
// Setup Platform/Renderer backends
ImGui_ImplGlfw_InitForOpenGL(window->getWindowImpl().getWindow(), true);
std::cout << "ImGui_ImplOpenGL3_Init" << std::endl;
ImGui_ImplOpenGL3_Init("#version 130");
std::cout << "Successful onLoad" << std::endl;
}
void TestImgui::run() {
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
@@ -58,4 +52,8 @@ void TestImgui::run() {
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
});
if(window->shouldClose())
app.end();
window->doFrame();
}