summary refs log tree commit diff
path: root/src/GFX/Window.hpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-07-08 03:25:44 +0200
committerMel <einebeere@gmail.com>2023-07-08 03:25:44 +0200
commitfe2baedc760c2f29e2c720f6b1132a2de33c5430 (patch)
treedfbe1c72a17805a3cab6e0d47433e9021890c9ca /src/GFX/Window.hpp
parent41fbca10f6c6cdd9c1623f1347e7ecb40f5e7f59 (diff)
downloadmeowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.tar.zst
meowcraft-fe2baedc760c2f29e2c720f6b1132a2de33c5430.zip
Use own size types
Diffstat (limited to 'src/GFX/Window.hpp')
-rw-r--r--src/GFX/Window.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/GFX/Window.hpp b/src/GFX/Window.hpp
index 966925c..ac0efd2 100644
--- a/src/GFX/Window.hpp
+++ b/src/GFX/Window.hpp
@@ -1,28 +1,28 @@
 #pragma once
 
-#include <cstdint>
-#include <GLFW/glfw3.h>
+#include "../Common/Sizes.hpp"
 #include "../Math/Vector.hpp"
+#include <GLFW/glfw3.h>
 #include "Mouse.hpp"
 
 namespace MC::GFX {
 
 class Window {
 public:
-    Window(const char* title, uint32_t width, uint32_t height);
+    Window(const Char* title, U32 width, U32 height);
     ~Window();
 
     GLFWwindow* get() const;
 
-    void on_size_change(void (* callback)(GLFWwindow*, int, int));
+    void on_size_change(void (* callback)(GLFWwindow*, I32, I32));
 
     void close();
     void start_frame();
     Vector<2> mouse_delta();
 
-    bool key(int key, int type) const;
-    bool mouse(int key, int type) const;
-    bool should_close() const;
+    Bool key(I32 key, I32 type) const;
+    Bool mouse(I32 key, I32 type) const;
+    Bool should_close() const;
 private:
     GLFWwindow* m_window;
     Mouse m_mouse;