add font caching

This commit is contained in:
2023-01-20 21:41:10 +01:00
parent a0cee4eec4
commit 742fa4865b
2 changed files with 53 additions and 12 deletions
+3 -3
View File
@@ -1,8 +1,6 @@
#include <SDL/SDL_ttf.h>
#include "renderer.h"
typedef struct {
int x;
int y;
@@ -10,4 +8,6 @@ typedef struct {
} Position;
RenderObject_t text_renderText(Position position, SDL_Color color, TTF_Font* font, char* format, ...);
int text_renderText(RenderObject_t* renderObject, Position position, SDL_Color color, const char* fontFilename, int fontSize, char* format, ...);
void text_freeFontCache();