diff options
Diffstat (limited to 'text.h')
-rw-r--r-- | text.h | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#include "SDL.h"
+#include "SDL_ttf.h"
+
+#ifndef TEXT_H
+#define TEXT_H
+
+typedef struct {
+ SDL_Surface * Surface;
+ SDL_Rect Rect;
+} Text_t;
+
+Text_t * CreateText(TTF_Font * Font, const char * text, SDL_Color * components);
+void UpdateText(Text_t * tobeupdated, TTF_Font * Font, const char * text, SDL_Color * components);
+void DeleteText(Text_t * Text);
+
+#endif
|