context_window.cpp is back

This commit is contained in:
Pcornat 2026-01-08 20:43:01 +01:00
commit 2c6b505c56
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
3 changed files with 18 additions and 10 deletions

15
src/context_window.cpp Normal file
View file

@ -0,0 +1,15 @@
#include "context_window.hpp"
namespace window {
ContextWindow::ContextWindow(const GLFWerrorfun error_clbk) noexcept {
glfwSetErrorCallback(error_clbk);
if (glfwInit() == GLFW_FALSE) {
init = false;
}
init = true;
}
ContextWindow::~ContextWindow() noexcept {
glfwTerminate();
}
}