Working, super great !

This commit is contained in:
Pcornat 2022-01-24 20:51:25 +01:00
parent 061883ced0
commit ac1d04353e
Signed by: Pcornat
GPG key ID: 2F3932FF46D9ECA0
2 changed files with 41 additions and 25 deletions

View file

@ -19,7 +19,7 @@ gui::Window::Window() {
}
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
wwindow = std::unique_ptr<GLFWwindow, decltype(&delete_glfw_window)>(glfwCreateWindow(600, 800, "Billy Sheet tracker", nullptr, nullptr),
wwindow = std::unique_ptr<GLFWwindow, decltype(&delete_glfw_window)>(glfwCreateWindow(720, 1280, "Billy Sheet tracker", nullptr, nullptr),
delete_glfw_window);
if (!wwindow) {
glfwTerminate();
@ -34,9 +34,9 @@ gui::Window::Window() {
SPDLOG_CRITICAL("GLEW loader failed.");
throw std::runtime_error("GLEW failed. See log.");
}
glfwSwapInterval(1); // VSync on
glfwSetFramebufferSizeCallback(wwindow.get(), framebufferCallback);
glfwSwapInterval(1); // VSync on
}
bool gui::Window::should_close() const noexcept {