diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
commit | f6997ebd1de555916c491dbd603f7a0e9c1d9c58 (patch) | |
tree | 23645695bcf2c9ddd154d004dfe09693139ffbf0 /text.h | |
parent | f2837ef813150240c00741018542dc271213ff5c (diff) |
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
|