This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user