From a873df7a66dc1831cee4eae2d998abed88246268 Mon Sep 17 00:00:00 2001 From: fschildt Date: Thu, 16 Oct 2025 15:33:06 +0200 Subject: renderer: introduce text rendering --- src/games/Game.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/games/Game.hpp') diff --git a/src/games/Game.hpp b/src/games/Game.hpp index 7de3b66..a020012 100644 --- a/src/games/Game.hpp +++ b/src/games/Game.hpp @@ -35,8 +35,8 @@ public: protected: - void DrawGameOverMenu(); - void DrawGamePausedMenu(); + void DrawDefaultGameOverMenu(); + void DrawDefaultGamePausedMenu(); float ProcessDt(); @@ -46,6 +46,9 @@ protected: protected: + static constexpr const char* s_dejavu_sans_filepath = "./fonts/dejavu_ttf/DejaVuSans.ttf"; + static constexpr const char* s_dejavu_sans_mono_filepath = "./fonts/dejavu_ttf/DejaVuSansMono.ttf"; + static constexpr ImGuiWindowFlags s_imgui_window_flags_menu = ImGuiWindowFlags_NoFocusOnAppearing | ImGuiWindowFlags_AlwaysAutoResize; static constexpr ImGuiWindowFlags s_imgui_window_flags_default = ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoBackground | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoInputs | ImGuiWindowFlags_NoScrollbar; }; -- cgit v1.2.3