summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2025-02-04 19:17:59 -0500
committerJonathan Bradley <jcb@pikum.xyz>2025-02-04 19:17:59 -0500
commit61e179f9580c985cb5ca80ea732fc7572d31c489 (patch)
tree122ff15c6d94ce5aebff4ff6f1fc6d13317abe16 /src/game.cpp
parenta3fb454f9935960dc2d367455f891d8fedfb9016 (diff)
pke: chkpt: text rendering, no errors but blank
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp6
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();