From e2234b4afebb266878435d10267e7b162b1fe984 Mon Sep 17 00:00:00 2001 From: Mel Date: Sat, 1 Oct 2022 05:12:50 +0200 Subject: Setup window and GL functions --- src/Window.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/Window.hpp (limited to 'src/Window.hpp') diff --git a/src/Window.hpp b/src/Window.hpp new file mode 100644 index 0000000..acd39fe --- /dev/null +++ b/src/Window.hpp @@ -0,0 +1,24 @@ +#pragma once + +#include +#include + +namespace MC { + +class Window { +public: + Window(const char* title, uint32_t width, uint32_t height); + ~Window(); + + GLFWwindow* get(); + + void close(); + void start_frame(); + + bool key(int key, int type); + bool should_close(); +private: + GLFWwindow* m_window; +}; + +} \ No newline at end of file -- cgit 1.4.1