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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user