aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yage/core/window.cpp')
-rw-r--r--yage/core/window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/yage/core/window.cpp b/yage/core/window.cpp
index 25f9f834..392d4363 100644
--- a/yage/core/window.cpp
+++ b/yage/core/window.cpp
@@ -61,6 +61,7 @@ void Window::create(std::string window_name, int width, int height)
// set key callback
glfwSetKeyCallback(window_, key_callback);
+
// set resize callback
glfwSetFramebufferSizeCallback(window_, framebuffer_size_callback);
@@ -108,7 +109,7 @@ void Window::pollEvents() const
glfwPollEvents();
}
-bool Window::keyPressed(key k)
+bool Window::keyPressed(key k) const
{
if (window_ == nullptr) {
throw runtime_error("Window is not initialized");