summary refs log tree commit diff
path: root/src/GFX/Window.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-07-07 23:05:14 +0200
committerMel <einebeere@gmail.com>2023-07-07 23:14:59 +0200
commit129f2e421e16bd008cdca8713cc91f67d103d94e (patch)
treea4d3e1005c57591b44fd57be4c1b00441512e36d /src/GFX/Window.hpp
parentf1fc192ddc4c739fa8b4b376c759b7d3218a34eb (diff)
downloadmeowcraft-129f2e421e16bd008cdca8713cc91f67d103d94e.tar.zst
meowcraft-129f2e421e16bd008cdca8713cc91f67d103d94e.zip
Fix minor quality issues
Diffstat (limited to 'src/GFX/Window.hpp')
-rw-r--r--src/GFX/Window.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GFX/Window.hpp b/src/GFX/Window.hpp
index 63e8446..966925c 100644
--- a/src/GFX/Window.hpp
+++ b/src/GFX/Window.hpp
@@ -12,7 +12,7 @@ public:
     Window(const char* title, uint32_t width, uint32_t height);
     ~Window();
 
-    GLFWwindow* get();
+    GLFWwindow* get() const;
 
     void on_size_change(void (* callback)(GLFWwindow*, int, int));
 
@@ -20,8 +20,9 @@ public:
     void start_frame();
     Vector<2> mouse_delta();
 
-    bool key(int key, int type);
-    bool should_close();
+    bool key(int key, int type) const;
+    bool mouse(int key, int type) const;
+    bool should_close() const;
 private:
     GLFWwindow* m_window;
     Mouse m_mouse;