diff options
Diffstat (limited to 'src/GFX/Window.hpp')
| -rw-r--r-- | src/GFX/Window.hpp | 14 |
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; |
