Additional debug string rendering infrastructure

Separate notion of rendering a static string, i.e. for debug display that
is absolutely positioned, and rendering of a regular string that moves
with the game camera.
This commit is contained in:
2016-07-12 18:11:31 +10:00
parent d82afe49d0
commit b1875077b7
6 changed files with 149 additions and 55 deletions
+2 -2
View File
@@ -58,8 +58,8 @@ void debug_stringUpdateAndRender(Renderer *renderer, Font *font, f32 dt)
{
f32 rotate = 0;
v4 color = V4(0, 0, 0, 1);
renderer_string(renderer, font, GLOBAL_debugState.debugStrings[i],
GLOBAL_debugState.stringPos, rotate, color);
renderer_staticString(renderer, font, GLOBAL_debugState.debugStrings[i],
GLOBAL_debugState.stringPos, rotate, color);
GLOBAL_debugState.stringPos.y -=
(0.9f * GLOBAL_debugState.stringLineGap);
}