moved savelevel() code to level.h/c where it belongs to. :)
[supertux.git] / src / text.h
1 //
2 // C Interface: text
3 //
4 // Description: 
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #ifndef SUPERTUX_TEXT_H
14 #define SUPERTUX_TEXT_H
15
16 #include "texture.h"
17
18 /* Text type */
19 typedef struct text_type
20   {
21    texture_type chars[78];
22   }  
23 text_type;
24
25 enum {
26    A_LEFT,
27    A_HMIDDLE,
28    A_RIGHT,
29    A_TOP,
30    A_VMIDDLE,
31    A_BOTTOM,
32    A_NONE
33 };
34
35 void text_load(text_type* ptext, char* file);
36 void text_draw(text_type* ptext, char* text, int x, int y, int shadowsize, int update);
37 void text_drawf(text_type* ptext, char* text, int x, int y, int halign, int valign, int shadowsize, int update);
38 void text_free(text_type* ptext);
39
40 #endif /*SUPERTUX_TEXT_H*/
41