remove debug print statements

This commit is contained in:
2025-04-03 15:44:54 -05:00
parent 7cce8f6d8e
commit 0d944992fb
7 changed files with 1 additions and 20 deletions

View File

@@ -139,9 +139,6 @@ namespace Archimedes {
runOrder.insert(roInsert, m->getName()); runOrder.insert(roInsert, m->getName());
for(auto s : runOrder)
std::cout << s << std::endl;
return m; return m;
} }

View File

@@ -16,15 +16,11 @@ namespace Archimedes {
typedef GuiModule* create_t(void*, App*); typedef GuiModule* create_t(void*, App*);
GuiModule(void* h, App* a) : Module(h, a) { GuiModule(void* h, App* a) : Module(h, a) {
//wm = new WindowModule(nullptr, a);
deps["WindowModule"] = new WindowModule(nullptr, a); deps["WindowModule"] = new WindowModule(nullptr, a);
} }
virtual ~GuiModule() {} virtual ~GuiModule() {}
virtual void onLoad() = 0; virtual void onLoad() = 0;
virtual void run() = 0; virtual void run() = 0;
protected:
//WindowModule* wm;
}; };
} }

View File

@@ -16,7 +16,7 @@ namespace Archimedes {
glfwSetErrorCallback([](int e, const char* m){ glfwSetErrorCallback([](int e, const char* m){
std::cout << "GLFW Error: " << m << std::endl; std::cout << "GLFW Error: " << m << std::endl;
}); });
if(!glfwInit()) { if(!glfwInit()) {
std::cout << "glfwInit failed!\n"; std::cout << "glfwInit failed!\n";
@@ -28,7 +28,6 @@ namespace Archimedes {
glfwTerminate(); glfwTerminate();
std::abort(); std::abort();
} }
std::cout << "Window Created!\n";
glfwMakeContextCurrent(w); glfwMakeContextCurrent(w);
glfwSwapInterval(1); glfwSwapInterval(1);

View File

@@ -23,8 +23,6 @@ void WindowModule::onLoad() {
data["window"] = window->getWindowImpl().getWindow(); data["window"] = window->getWindowImpl().getWindow();
data["renderCmdList"] = &renderer->getCmdList(); data["renderCmdList"] = &renderer->getCmdList();
std::cout << "WindowModule GLFWwindow*: " << std::any_cast<decltype(window->getWindowImpl().getWindow())>(data["window"]) << std::endl;
} }
void WindowModule::run() { void WindowModule::run() {

View File

@@ -43,22 +43,15 @@ void TestImgui::onLoad() {
ImGui::StyleColorsDark(); ImGui::StyleColorsDark();
//ImGui::StyleColorsLight(); //ImGui::StyleColorsLight();
std::cout << "init backends\n";
// Setup Platform/Renderer backends // Setup Platform/Renderer backends
std::cout << wm->getName() << std::endl;
GLFWwindow* w = std::any_cast<GLFWwindow*>(wm->getData("window")); GLFWwindow* w = std::any_cast<GLFWwindow*>(wm->getData("window"));
std::cout << "TestImgui GLFWwindow*: " << w << std::endl;
if(!ImGui_ImplGlfw_InitForOpenGL(w, true)) if(!ImGui_ImplGlfw_InitForOpenGL(w, true))
std::cout << "GLFWImpl failed\n"; std::cout << "GLFWImpl failed\n";
if(!ImGui_ImplOpenGL3_Init("#version 330")) { if(!ImGui_ImplOpenGL3_Init("#version 330")) {
std::cout << "ImGui_ImplOpenGL3_Init failed!\n" << std::endl; std::cout << "ImGui_ImplOpenGL3_Init failed!\n" << std::endl;
} }
std::cout << "register renderCmd\n";
std::list<Archimedes::Renderer::renderCmd*>* cmdList = std::list<Archimedes::Renderer::renderCmd*>* cmdList =
std::any_cast<std::list<Archimedes::Renderer::renderCmd*>*>(wm->getData("renderCmdList")); std::any_cast<std::list<Archimedes::Renderer::renderCmd*>*>(wm->getData("renderCmdList"));

View File

@@ -3,7 +3,6 @@
void MinimalApp::run() { void MinimalApp::run() {
for(std::string m : runOrder) { for(std::string m : runOrder) {
std::cout << "onLoad module: " << m << std::endl;
modules[m]->onLoad(); modules[m]->onLoad();
} }

View File

@@ -14,7 +14,6 @@ class MinimalApp : public Archimedes::App {
void handleArgs(const int& argc, char* argv[]) { void handleArgs(const int& argc, char* argv[]) {
if(argc > 1) { if(argc > 1) {
for(int i = 1; i < argc; i++) { for(int i = 1; i < argc; i++) {
std::cout << "Attempting to load: " << argv[i] << std::endl;
load(dynamicLoad(argv[i])); load(dynamicLoad(argv[i]));
} }
} else { } else {