From d6b9f6c8fad3e46caca5dc167ce1cbf5ccfb489e Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 9 Aug 2025 21:07:53 +0200 Subject: feat: 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..5f0e36e --- /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 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; + }; +} -- cgit v1.3