00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef Drawtext_h
00024 #define Drawtext_h
00025
00026 #ifdef HAVE_CONFIG_H
00027 #include <config.h>
00028 #endif
00029
00030
00031 #define TRANS_FONT 1
00032
00033
00034 #ifdef __cplusplus
00035 extern "C" {
00036 #endif
00037
00038 typedef struct BitFont_td {
00039 SDL_Surface *FontSurface;
00040 int CharWidth;
00041 int CharHeight;
00042 int FontNumber;
00043 struct BitFont_td *NextFont;
00044 }
00045 BitFont;
00046
00047
00048 void DT_DrawText(const char *string, SDL_Surface *surface, int FontType, int x, int y );
00049 int DT_LoadFont(const char *BitmapName, int flags );
00050 int DT_FontHeight( int FontNumber );
00051 int DT_FontWidth( int FontNumber );
00052 BitFont* DT_FontPointer(int FontNumber );
00053 void DT_DestroyDrawText();
00054
00055
00056 #ifdef __cplusplus
00057 };
00058 #endif
00059
00060 #endif
00061
00062
00063