Working, super great !
This commit is contained in:
parent
061883ced0
commit
ac1d04353e
2 changed files with 41 additions and 25 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue