aboutsummaryrefslogtreecommitdiff
path: root/src/Core/Window.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2025-08-14 01:41:19 +0200
committerhachem <im@hachem.wtf>2025-08-14 01:41:19 +0200
commitf949a0aafe9825b8209c3a9d139a7bf5e22a7897 (patch)
tree423b0f8242b156596f2bb9a89fd96a6c099b93d3 /src/Core/Window.h
parent613f99e937e55f73dcec1251fdce4a9fda077a0f (diff)
[add]: Custom UI Font
Diffstat (limited to 'src/Core/Window.h')
-rw-r--r--src/Core/Window.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Core/Window.h b/src/Core/Window.h
index 26df099..3afd52f 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 SetupImGuiFonts();
+ void ApplyImGuiTheme();
void ShutdownImGui();
static void GLFWErrorCallback(int error, const char* description);
@@ -64,5 +69,9 @@ namespace Donut
bool m_IsClosed;
bool m_CursorLocked = false;
bool m_CursorVisible = true;
+
+ ImFont* m_MainFont = nullptr;
+ ImFont* m_SmallFont = nullptr;
+ ImFont* m_LargeFont = nullptr;
};
} \ No newline at end of file