#include #include #include "GLFW/glfw3.h" #include "shared/logger.h" #include "shared/window.h" #include "ctx.h" int main() { OatmealUtils::initLogging(); OatmealUtils::createLogger("context", nullptr); GLFWwindow *window = OatmealUtils::initWindow("Oatmeal - createContext", 800, 600); try { Oatmeal::ctx ctx(window); } catch (const std::exception &e) { OatmealUtils::get("context")->critical("{}", e.what()); return EXIT_FAILURE; } while (!glfwWindowShouldClose(window)) { glfwPollEvents(); } OatmealUtils::get("window")->info("Cleaning up"); glfwDestroyWindow(window); glfwTerminate(); return 0; }