#include #include #include "gui/window.hpp" #include "gui/menu/menu_data.hpp" #include "gui/gui_data.hpp" #include "gui/gui.hpp" int main() { std::ios::sync_with_stdio(false); spdlog::set_default_logger(spdlog::stdout_color_st("console")); try { gui::Window window; gui::GuiData gui_data(window); gui::menu::MenuData menu_data; gui::Gui gui(gui_data, menu_data); while (!window.should_close()) { glfwPollEvents(); gui.render_gui(); gui.render_gpu(); window.swap_buffers(); } } catch (const std::exception &e) { SPDLOG_CRITICAL(e.what()); return EXIT_FAILURE; } return EXIT_SUCCESS; }