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 | d6b9f6c8fad3e46caca5dc167ce1cbf5ccfb489e (patch) | |
| tree | 82beb7d9b23a6040f78098cf235a8668d95a7e3c /src/core/window.h | |
| parent | c88a9da20bb43287b9c52bdc180fd356fd1d352c (diff) | |
feat: 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..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; + }; +} |
