summaryrefslogtreecommitdiff
path: root/text.h
diff options
context:
space:
mode:
Diffstat (limited to 'text.h')
-rw-r--r--text.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/text.h b/text.h
new file mode 100644
index 0000000..f4f7b55
--- /dev/null
+++ b/text.h
@@ -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