hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/core/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/window.h')
-rw-r--r--src/core/window.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/window.h b/src/core/window.h
new file mode 100644
index 0000000..5f0e36e
--- /dev/null
+++ b/src/core/window.h
@@ -0,0 +1,24 @@
+#pragma once
+
+#include <GLFW/glfw3.h>
+#include <string>
+
+namespace Donut
+{
+ class Window
+ {
+ public:
+ Window(const std::string& title, int width, int height);
+ ~Window();
+
+ bool should_close() const;
+ void on_update() const;
+ private:
+ GLFWwindow* m_window;
+
+ std::string m_title;
+ int m_width;
+ int m_height;
+ bool m_is_closed;
+ };
+}