remove debug print statements
This commit is contained in:
@@ -139,9 +139,6 @@ namespace Archimedes {
|
||||
|
||||
runOrder.insert(roInsert, m->getName());
|
||||
|
||||
for(auto s : runOrder)
|
||||
std::cout << s << std::endl;
|
||||
|
||||
return m;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,15 +16,11 @@ namespace Archimedes {
|
||||
typedef GuiModule* create_t(void*, App*);
|
||||
|
||||
GuiModule(void* h, App* a) : Module(h, a) {
|
||||
//wm = new WindowModule(nullptr, a);
|
||||
deps["WindowModule"] = new WindowModule(nullptr, a);
|
||||
}
|
||||
virtual ~GuiModule() {}
|
||||
virtual void onLoad() = 0;
|
||||
virtual void run() = 0;
|
||||
|
||||
protected:
|
||||
//WindowModule* wm;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Archimedes {
|
||||
|
||||
glfwSetErrorCallback([](int e, const char* m){
|
||||
std::cout << "GLFW Error: " << m << std::endl;
|
||||
});
|
||||
});
|
||||
|
||||
if(!glfwInit()) {
|
||||
std::cout << "glfwInit failed!\n";
|
||||
@@ -28,7 +28,6 @@ namespace Archimedes {
|
||||
glfwTerminate();
|
||||
std::abort();
|
||||
}
|
||||
std::cout << "Window Created!\n";
|
||||
glfwMakeContextCurrent(w);
|
||||
glfwSwapInterval(1);
|
||||
|
||||
|
||||
@@ -23,8 +23,6 @@ void WindowModule::onLoad() {
|
||||
|
||||
data["window"] = window->getWindowImpl().getWindow();
|
||||
data["renderCmdList"] = &renderer->getCmdList();
|
||||
|
||||
std::cout << "WindowModule GLFWwindow*: " << std::any_cast<decltype(window->getWindowImpl().getWindow())>(data["window"]) << std::endl;
|
||||
}
|
||||
|
||||
void WindowModule::run() {
|
||||
|
||||
@@ -43,22 +43,15 @@ void TestImgui::onLoad() {
|
||||
ImGui::StyleColorsDark();
|
||||
//ImGui::StyleColorsLight();
|
||||
|
||||
std::cout << "init backends\n";
|
||||
// Setup Platform/Renderer backends
|
||||
std::cout << wm->getName() << std::endl;
|
||||
GLFWwindow* w = std::any_cast<GLFWwindow*>(wm->getData("window"));
|
||||
|
||||
std::cout << "TestImgui GLFWwindow*: " << w << std::endl;
|
||||
|
||||
if(!ImGui_ImplGlfw_InitForOpenGL(w, true))
|
||||
std::cout << "GLFWImpl failed\n";
|
||||
if(!ImGui_ImplOpenGL3_Init("#version 330")) {
|
||||
std::cout << "ImGui_ImplOpenGL3_Init failed!\n" << std::endl;
|
||||
}
|
||||
|
||||
std::cout << "register renderCmd\n";
|
||||
|
||||
|
||||
|
||||
std::list<Archimedes::Renderer::renderCmd*>* cmdList =
|
||||
std::any_cast<std::list<Archimedes::Renderer::renderCmd*>*>(wm->getData("renderCmdList"));
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
void MinimalApp::run() {
|
||||
|
||||
for(std::string m : runOrder) {
|
||||
std::cout << "onLoad module: " << m << std::endl;
|
||||
modules[m]->onLoad();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ class MinimalApp : public Archimedes::App {
|
||||
void handleArgs(const int& argc, char* argv[]) {
|
||||
if(argc > 1) {
|
||||
for(int i = 1; i < argc; i++) {
|
||||
std::cout << "Attempting to load: " << argv[i] << std::endl;
|
||||
load(dynamicLoad(argv[i]));
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user