From f6997ebd1de555916c491dbd603f7a0e9c1d9c58 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 4 Aug 2006 00:56:19 +0000 Subject: git-svn-id: svn://mattst88.com/svn/sdlpong/trunk@2 e27a58fc-241a-0410-afba-9958544cdf14 --- text.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 text.h (limited to 'text.h') 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 -- cgit v1.2.3