From ed6de8793f267fb1fc5c9af2e68cd4e573ee1d25 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 9 Aug 2025 21:07:53 +0200 Subject: [add]: Window creation --- src/Core/Window.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/Core/Window.h (limited to 'src/Core/Window.h') diff --git a/src/Core/Window.h b/src/Core/Window.h new file mode 100644 index 0000000..866d144 --- /dev/null +++ b/src/Core/Window.h @@ -0,0 +1,24 @@ +#pragma once + +#include +#include + +namespace Donut +{ + class Window + { + public: + Window(const std::string& title, int width, int height); + ~Window(); + + bool ShouldClose() const; + void OnUpdate() const; + private: + GLFWwindow* m_Window; + + std::string m_Title; + int m_Width; + int m_Height; + bool m_IsClosed; + }; +} \ No newline at end of file -- cgit v1.3