Main Page | Data Structures | File List | Data Fields | Globals

DT_drawtext.h

Go to the documentation of this file.
00001 /*
00002         SDL_console: An easy to use drop-down console based on the SDL library
00003         Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Clemens Wacha
00004         
00005         This library is free software; you can redistribute it and/or
00006         modify it under the terms of the GNU Library General Public
00007         License as published by the Free Software Foundation; either
00008         version 2 of the License, or (at your option) any later version.
00009         
00010         This library is distributed in the hope that it will be useful,
00011         but WHITOUT ANY WARRANTY; without even the implied warranty of
00012         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013         Library General Public License for more details.
00014         
00015         You should have received a copy of the GNU Library Generla Public
00016         License along with this library; if not, write to the Free
00017         Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018         
00019         Clemens Wacha
00020         reflex-2000@gmx.net
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 

Generated on Sun Aug 31 14:24:32 2003 for SDL Console by doxygen 1.3.2