19 lines
337 B
C
19 lines
337 B
C
#ifndef __TEXT_H__
|
|
#define __TEXT_H__
|
|
|
|
#include <SDL/SDL_ttf.h>
|
|
#include "renderer.h"
|
|
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
int z;
|
|
} Position;
|
|
|
|
|
|
int text_renderText(RenderObject_t* renderObject, Position position, SDL_Color color, const char* fontFilename, int fontSize, char* format, ...);
|
|
|
|
void text_freeFontCache(void);
|
|
|
|
#endif
|