add font caching
This commit is contained in:
+3
-3
@@ -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();
|
||||
Reference in New Issue
Block a user