diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 01:24:24 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 01:24:24 +0200 |
| commit | 4de723231b38d7c7e272e71b9580443874c278ab (patch) | |
| tree | c93be963476510b8af30ffb4af7d69d468926fe3 /src/core/window.h | |
| parent | 0d8b874c0048ca088bb9e353a5f7c62e1f8cd0e8 (diff) | |
feat: implement an ImGui layer
Diffstat (limited to 'src/core/window.h')
| -rw-r--r-- | src/core/window.h | 7 |
1 files changed, 6 insertions, 1 deletions
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); |
