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
+9
View File
@@ -48,6 +48,15 @@ const i32 asset_loadTextureImage(AssetManager *assetManager,
u8 *image =
stbi_load(path, &imgWidth, &imgHeight, &bytesPerPixel, 0);
#ifdef DENGINE_DEBUG
if (imgWidth != imgHeight)
{
printf(
"worldTraveller_gameInit() warning: Sprite sheet is not square: "
"%dx%dpx\n", imgWidth, imgHeight);
}
#endif
if (!image)
{
printf("stdbi_load() failed: %s\n", stbi_failure_reason());