summary refs log tree commit diff
path: root/src/Window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.hpp')
-rw-r--r--src/Window.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Window.hpp b/src/Window.hpp
new file mode 100644
index 0000000..acd39fe
--- /dev/null
+++ b/src/Window.hpp
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <cstdint>
+#include <GLFW/glfw3.h>
+
+namespace MC {
+
+class Window {
+public:
+    Window(const char* title, uint32_t width, uint32_t height);
+    ~Window();
+
+    GLFWwindow* get();
+
+    void close();
+    void start_frame();
+
+    bool key(int key, int type);
+    bool should_close();
+private:
+    GLFWwindow* m_window;
+};
+
+}
\ No newline at end of file