Updated the list rendering function to just blindly take textures from the cache and relying on a new function to handle generating new textures if needed.

This commit is contained in:
2022-11-02 19:15:57 -05:00
parent 3dfe60fcc6
commit 08643b8fc5
5 changed files with 55 additions and 45 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ typedef struct {
} TextureFontCache;
TextureFontCache* CreateTextureFontCache();
TextureDetails* AddTextureToCache(SDL_Texture* texture, unsigned short fontSize, SDL_Rect textSize, TextureFontCache* cache);
void UpdateTextureDetails(SDL_Texture* texture, unsigned short fontSize, SDL_Rect textSize, int index, TextureFontCache* cache);
TextureDetails* AddTextureToCache(SDL_Texture* texture, SDL_Rect textSize, TextureFontCache* cache);
void UpdateTextureDetails(SDL_Texture* texture, SDL_Rect textSize, int index, TextureFontCache* cache);
TextureDetails* GetTextureFromCache(TextureFontCache* cache, unsigned int index);
void FreeTextureDetails(TextureDetails* details);