ctx - device
Some checks failed
Build / Build (push) Has been cancelled

This commit is contained in:
2026-04-14 18:49:35 -04:00
parent f5c4ac0790
commit b90c980bee
4 changed files with 78 additions and 0 deletions

View File

@@ -17,14 +17,19 @@ int main() {
GLFWwindow *window = OatmealUtils::initWindow("Oatmeal - createContext", 800, 600);
OatmealUtils::getLogger("context")->info("Creating context");
try {
Oatmeal::ctx ctx(window);
OatmealUtils::getLogger("context")->info("Device name: {}", ctx.getDeviceName());
OatmealUtils::getLogger("context")->info("Device name: {}", ctx.getDeviceType());
} catch (const std::exception &e) {
OatmealUtils::getLogger("context")->critical("{}", e.what());
return EXIT_FAILURE;
}
OatmealUtils::getLogger("context")->info("Starting main loop");
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
}