Files
visual-structs/includes/font_cache.h
T

17 lines
349 B
C

#ifndef FONTCACHE_H
#define FONTCACHE_H
#include <SDL2/SDL_ttf.h>
typedef struct {
unsigned int Capcity;
unsigned int Size;
char* FontFilePath;
TTF_Font** Fonts;
} FontCache;
FontCache* CreateFontCache(char* fontFilePath);
TTF_Font* GetFont(unsigned short fontSize, FontCache* cache);
void FreeFontCache(FontCache* cache);
#endif