SUMO - Simulation of Urban MObility
polyfonttypes.h
Go to the documentation of this file.
00001 #ifndef     __POLYFONTTYPES__
00002 #define     __POLYFONTTYPES__
00003 
00004 /*
00005   Polyfonts is a polygon font drawing library for use with SDL. Any
00006   TTF font can be converted for use with this library. Contact the
00007   author for details.
00008 
00009   Copyright (C) 2003 Bob Pendleton
00010 
00011   This library is free software; you can redistribute it and/or
00012   modify it under the terms of the GNU Lesser General Public License
00013   as published by the Free Software Foundation, either version 3.1
00014   of the License, or (at your option) any later version.
00015 
00016   This library is distributed in the hope that it will be useful,
00017   but WITHOUT ANY WARRANTY; without even the implied warranty of
00018   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019   Lesser General Public License for more details.
00020 
00021   You should have received a copy of the GNU Lesser General Public
00022   License along with this library; if not, write to the Free
00023   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00024   02111-1307 USA
00025 
00026   If you do not wish to comply with the terms of the LGPL please
00027   contact the author as other terms are available for a fee.
00028 
00029   Bob Pendleton
00030   Bob@Pendleton.com
00031 */
00032 /* =========================================================================
00033  * included modules
00034  * ======================================================================= */
00035 #ifdef _MSC_VER
00036 #include <windows_config.h>
00037 #else
00038 #include <config.h>
00039 #endif
00040 
00041 
00042 typedef unsigned char pfuint8;
00043 typedef signed char pfint8;
00044 
00045 typedef unsigned short int pfuint16;
00046 typedef signed short int pfint16;
00047 
00048 #define pfFixScale (1 << 15)
00049 
00050 typedef struct
00051 {
00052     SUMOReal minx;
00053     SUMOReal miny;
00054     SUMOReal maxx;
00055     SUMOReal maxy;
00056     SUMOReal advance;
00057     pfuint16 glyph;
00058     pfuint16 numsegments;
00059     pfint16 *segments;
00060 }
00061 pfglyph;
00062 
00063 typedef struct
00064 {
00065     char *name;
00066     int loaded;
00067     SUMOReal minx;
00068     SUMOReal miny;
00069     SUMOReal maxx;
00070     SUMOReal maxy;
00071     int numglyphs;
00072     pfglyph *glyphs;
00073 }
00074 pffont;
00075 /*
00076 typedef struct
00077 {
00078   int numfonts;
00079   pffont *fonts;
00080 } pftable;
00081 */
00082 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines