]> icculus.org git repositories - btb/d2x.git/blob - include/DT_drawtext.h
added UDP support for win32
[btb/d2x.git] / include / DT_drawtext.h
1 #ifndef Drawtext_h
2 #define Drawtext_h
3
4
5 #define TRANS_FONT 1
6
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12         typedef struct BitFont_td {
13                 SDL_Surface             *FontSurface;
14                 int                     CharWidth;
15                 int                     CharHeight;
16                 int                     FontNumber;
17                 struct BitFont_td       *NextFont;
18         }
19         BitFont;
20
21
22         void    DT_DrawText(const char *string, SDL_Surface *surface, int FontType, int x, int y );
23         int     DT_LoadFont(const char *BitmapName, int flags );
24         int     DT_FontHeight( int FontNumber );
25         int     DT_FontWidth( int FontNumber );
26         BitFont*        DT_FontPointer(int FontNumber );
27         void    DT_DestroyDrawText();
28
29
30 #ifdef __cplusplus
31 };
32 #endif
33
34 #endif
35
36
37