Draw hero status on side with profile

Make hero texture rects start using the atlas data structure. Reduce the
number of slots for assets for now to minimise room for error.
This commit is contained in:
2016-07-16 18:51:26 +10:00
parent d74cabf5c6
commit 6c3ef63a65
2 changed files with 44 additions and 10 deletions
+14 -3
View File
@@ -27,6 +27,17 @@ enum TerrainCoords
terraincoords_count,
};
enum HeroCoords
{
herocoords_idle,
herocoords_walkA,
herocoords_walkB,
herocoords_head,
herocoords_waveA,
herocoords_waveB,
herocoords_count,
};
typedef struct TexAtlas
{
// TODO(doyle): String hash based lookup
@@ -67,9 +78,9 @@ typedef struct Font
// TODO(doyle): Switch to hash based lookup
typedef struct AssetManager
{
Texture textures[256];
TexAtlas texAtlas[256];
Shader shaders[256];
Texture textures[32];
TexAtlas texAtlas[32];
Shader shaders[32];
Font font;
} AssetManager;