diff options
| author | hachem <im@hachem.wtf> | 2025-08-14 01:41:19 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2025-08-14 01:41:19 +0200 |
| commit | 29f38c8feb5c215ccc9b1f88c9ec193d31286d4d (patch) | |
| tree | d2a098dd08b4f27be2f61189e52b0c548d9d4a4c /src/core/window.h | |
| parent | 4de723231b38d7c7e272e71b9580443874c278ab (diff) | |
feat: custom UI font
Diffstat (limited to 'src/core/window.h')
| -rw-r--r-- | src/core/window.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/window.h b/src/core/window.h index 96678f8..8b0945f 100644 --- a/src/core/window.h +++ b/src/core/window.h @@ -4,6 +4,8 @@ #include "log.h" #include <GLFW/glfw3.h> +#include <imgui.h> + #include <string> namespace Donut @@ -42,6 +44,9 @@ namespace Donut private: void init(); void shutdown(); + + void setup_im_gui_fonts(); + void apply_im_gui_theme(); void shutdown_im_gui(); static void glfw_error_callback(int error, const char* description); @@ -64,5 +69,9 @@ namespace Donut bool m_is_closed; bool m_cursor_locked = false; bool m_cursor_visible = true; + + ImFont* m_main_font = nullptr; + ImFont* m_small_font = nullptr; + ImFont* m_large_font = nullptr; }; } |
