diff options
| author | hachem <im@hachem.wtf> | 2025-08-09 21:07:53 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-09 21:07:53 +0200 |
| commit | ed6de8793f267fb1fc5c9af2e68cd4e573ee1d25 (patch) | |
| tree | e2bcc2311cd3f3d7d13ddf4af39a967f7e975735 /src/Core/Window.h | |
| parent | 586cde2360b16cfd4cf1d297b989e722ea80a64f (diff) | |
[add]: Window creation
Diffstat (limited to 'src/Core/Window.h')
| -rw-r--r-- | src/Core/Window.h | 24 |
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..866d144 --- /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 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 |
