From 4de723231b38d7c7e272e71b9580443874c278ab Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 14 Aug 2025 01:24:24 +0200 Subject: feat: implement an ImGui layer --- src/core/window.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/window.h') diff --git a/src/core/window.h b/src/core/window.h index 256f708..96678f8 100644 --- a/src/core/window.h +++ b/src/core/window.h @@ -35,10 +35,15 @@ namespace Donut void set_cursor_visible(bool visible); bool is_cursor_locked() const { return m_cursor_locked; } bool is_cursor_visible() const { return m_cursor_visible; } + + void init_im_gui(); + void begin_im_gui_frame(); + void end_im_gui_frame(); private: void init(); void shutdown(); - + void shutdown_im_gui(); + static void glfw_error_callback(int error, const char* description); static void glfw_window_close_callback(GLFWwindow* window); static void glfw_window_size_callback(GLFWwindow* window, int width, int height); -- cgit v1.3