diff options
Diffstat (limited to 'src/game.cpp')
| -rw-r--r-- | src/game.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index a95d2fd..d65afc6 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -8,6 +8,7 @@ #include "ecs.hpp" #include "entities.hpp" #include "event.hpp" +#include "font.hpp" #include "game-settings.hpp" #include "game-type-defs.hpp" #include "helpers.hpp" @@ -595,6 +596,7 @@ void Game_Main(PKEWindowProperties windowProps, const char *executablePath) { CreateWindow(windowProps); EntityType_Init(); PkeInput_Init(); + FontType_Init(); PkeProject_Load(pkeSettings.args.projectPath); if (pkeSettings.args.pluginPath != nullptr) { PkePlugin_Load(pkeSettings.args.pluginPath); @@ -606,6 +608,9 @@ void Game_Main(PKEWindowProperties windowProps, const char *executablePath) { } } + // pk_cstr test_text = cstring_to_pk_cstr("this is a test string"); + // FontRender fr = FontType_AddStringRender(FontTypeIndex{0}, test_text); + GameTimePoint lastTimePoint = pkeSettings.steadyClock.now(); double deltaTillNextRender = pkeSettings.deltaPerFrame; GameTimePoint lastLogTimePoint = pkeSettings.steadyClock.now(); @@ -702,6 +707,7 @@ void Game_Main(PKEWindowProperties windowProps, const char *executablePath) { Game_Teardown(); Event_Teardown(); EntityType_Teardown(); + FontType_Teardown(); PkeInput_Teardown(); PkeCamera_Teardown(); Physics_Teardown(); |
