fix render layer guid linking w/out font provider layer; eliminate generation number on render handles; sketch out tester scratch program for text drawing performance

This commit is contained in:
Ryan Fleury
2024-11-08 15:02:52 -08:00
parent 8e6a0ae4db
commit 65ada18d1d
13 changed files with 113 additions and 20 deletions
+2
View File
@@ -609,6 +609,7 @@ dr_truncated_fancy_run_fuzzy_matches(Vec2F32 p, DR_FancyRunList *list, F32 max_x
internal void
dr_text_run(Vec2F32 p, Vec4F32 color, FNT_Run run)
{
ProfBeginFunction();
F32 advance = 0;
FNT_Piece *piece_first = run.pieces.v;
FNT_Piece *piece_opl = piece_first + run.pieces.count;
@@ -629,6 +630,7 @@ dr_text_run(Vec2F32 p, Vec4F32 color, FNT_Run run)
}
advance += piece->advance;
}
ProfEnd();
}
internal void