1 #ifndef Drawtext_h
2 #define Drawtext_h
3 
4 
5 #define TRANS_FONT 1
6 
7 
8 typedef struct BitFont_td
9 {
10 	SDL_Surface			*FontSurface;
11 	int					CharWidth;
12 	int					CharHeight;
13 	int					FontNumber;
14 	struct BitFont_td	*NextFont;
15 } BitFont;
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 Uint32 DT_GetPixel(SDL_Surface *surface, int x, int y);
22 void DT_PutPixel(SDL_Surface *surface, int x, int y, Uint32 pixel);
23 void DT_DrawText(const char *string, SDL_Surface *surface, int FontType, int x, int y );
24 int  DT_LoadFont(const char *BitmapName, int flags );
25 int  DT_FontHeight( int FontNumber );
26 int  DT_FontWidth( int FontNumber );
27 BitFont* DT_FontPointer(int FontNumber );
28 void DT_DestroyDrawText();
29 
30 
31 #ifdef __cplusplus
32 };
33 #endif
34 
35 #endif
36