Move rendering of tiles into rendering of entities

Downgraded background rendering to each tile individually (no batching)
temporarily such that we can render all entities in one function.
This commit is contained in:
2016-07-08 16:09:18 +10:00
parent 4b74bb9474
commit c9fc34aee1
5 changed files with 110 additions and 103 deletions
+12 -1
View File
@@ -20,6 +20,10 @@ Texture *asset_getTexture(AssetManager *assetManager, const enum TexList type)
if (type < texlist_count)
return &assetManager->textures[type];
#ifdef WT_DEBUG
ASSERT(INVALID_CODE_PATH);
#endif
return NULL;
}
@@ -28,6 +32,9 @@ TexAtlas *asset_getTextureAtlas(AssetManager *assetManager, const enum TexList t
if (type < texlist_count)
return &assetManager->texAtlas[type];
#ifdef WT_DEBUG
ASSERT(INVALID_CODE_PATH);
#endif
return NULL;
}
@@ -60,6 +67,9 @@ Shader *asset_getShader(AssetManager *assetManager, const enum ShaderList type)
if (type < shaderlist_count)
return &assetManager->shaders[type];
#ifdef WT_DEBUG
ASSERT(INVALID_CODE_PATH);
#endif
return NULL;
}
@@ -234,7 +244,8 @@ const i32 asset_loadTTFont(AssetManager *assetManager, const char *filePath)
printf(
"asset_loadTTFont() warning: The target font height creates a "
"glyph sheet that exceeds the available space!");
ASSERT(1);
ASSERT(INVALID_CODE_PATH);
}
#endif