remove debug prints
This commit is contained in:
@@ -39,12 +39,8 @@ void ImguiModule::onLoad() {
|
||||
std::abort();
|
||||
}
|
||||
|
||||
std::cout << "onLoad: " << name << "1\n";
|
||||
|
||||
window = wm->aquireWindow();
|
||||
|
||||
std::cout << "onLoad: " << name << "2\n";
|
||||
|
||||
IMGUI_CHECKVERSION();
|
||||
context = ImGui::CreateContext();
|
||||
ImGuiIO& io = ImGui::GetIO(); (void)io;
|
||||
@@ -61,20 +57,14 @@ void ImguiModule::onLoad() {
|
||||
ImGui::StyleColorsDark();
|
||||
//ImGui::StyleColorsLight();
|
||||
|
||||
std::cout << "onLoad: " << name << "3\n";
|
||||
|
||||
// Setup Platform/Renderer backends
|
||||
if(!ImGui_ImplGlfw_InitForOpenGL(window->getWindowImpl().getWindow(), true))
|
||||
std::cout << "GLFWImpl failed\n";
|
||||
|
||||
std::cout << "onLoad: " << name << "3.5\n";
|
||||
|
||||
if(!ImGui_ImplOpenGL3_Init("#version 330")) {
|
||||
std::cout << "ImGui_ImplOpenGL3_Init failed!\n" << std::endl;
|
||||
}
|
||||
|
||||
std::cout << "onLoad: " << name << "4\n";
|
||||
|
||||
wm->getRenderer()->getCmdList().push_back([](){
|
||||
ImGui::Render();
|
||||
|
||||
@@ -85,16 +75,13 @@ void ImguiModule::onLoad() {
|
||||
ImGui::NewFrame();
|
||||
});
|
||||
|
||||
std::cout << "onLoad: " << name << "5\n";
|
||||
rcmd_it = --wm->getRenderer()->getCmdList().end()++;
|
||||
|
||||
std::cout << "onLoad: " << name << "6\n";
|
||||
//Compute first frame ahead of first WindowModule->run()
|
||||
ImGui_ImplOpenGL3_NewFrame();
|
||||
ImGui_ImplGlfw_NewFrame();
|
||||
ImGui::NewFrame();
|
||||
|
||||
std::cout << "ImguiModule loaded\n";
|
||||
}
|
||||
|
||||
bool ImguiModule::onEvent(const Archimedes::Event &event) {
|
||||
|
||||
@@ -42,6 +42,7 @@ class WindowModule : public Archimedes::Module {
|
||||
}
|
||||
|
||||
windowRefs++;
|
||||
window->getWindowImpl().restoreContext();
|
||||
return window;
|
||||
}
|
||||
|
||||
@@ -60,8 +61,8 @@ class WindowModule : public Archimedes::Module {
|
||||
|
||||
int windowRefs = 0;
|
||||
|
||||
Archimedes::Window* window;
|
||||
Archimedes::Renderer* renderer;
|
||||
Archimedes::Window* window = nullptr;
|
||||
Archimedes::Renderer* renderer = nullptr;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user