summaryrefslogtreecommitdiff
path: root/text.h
blob: f4f7b55052d2a62c258dce51e073d1490f8df402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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