SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
polyfonttypes.h
Go to the documentation of this file.
1
#ifndef __POLYFONTTYPES__
2
#define __POLYFONTTYPES__
3
4
/*
5
Polyfonts is a polygon font drawing library for use with SDL. Any
6
TTF font can be converted for use with this library. Contact the
7
author for details.
8
9
Copyright (C) 2003 Bob Pendleton
10
11
This library is free software; you can redistribute it and/or
12
modify it under the terms of the GNU Lesser General Public License
13
as published by the Free Software Foundation, either version 3.1
14
of the License, or (at your option) any later version.
15
16
This library is distributed in the hope that it will be useful,
17
but WITHOUT ANY WARRANTY; without even the implied warranty of
18
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
Lesser General Public License for more details.
20
21
You should have received a copy of the GNU Lesser General Public
22
License along with this library; if not, write to the Free
23
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24
02111-1307 USA
25
26
If you do not wish to comply with the terms of the LGPL please
27
contact the author as other terms are available for a fee.
28
29
Bob Pendleton
30
Bob@Pendleton.com
31
*/
32
/* =========================================================================
33
* included modules
34
* ======================================================================= */
35
#ifdef _MSC_VER
36
#include <
windows_config.h
>
37
#else
38
#include <
config.h
>
39
#endif
40
41
42
typedef
unsigned
char
pfuint8
;
43
typedef
signed
char
pfint8
;
44
45
typedef
unsigned
short
int
pfuint16
;
46
typedef
signed
short
int
pfint16
;
47
48
#define pfFixScale (1 << 15)
49
50
typedef
struct
51
{
52
SUMOReal
minx
;
53
SUMOReal
miny
;
54
SUMOReal
maxx
;
55
SUMOReal
maxy
;
56
SUMOReal
advance
;
57
pfuint16
glyph
;
58
pfuint16
numsegments
;
59
pfint16
*
segments
;
60
}
61
pfglyph
;
62
63
typedef
struct
64
{
65
char
*
name
;
66
int
loaded
;
67
SUMOReal
minx
;
68
SUMOReal
miny
;
69
SUMOReal
maxx
;
70
SUMOReal
maxy
;
71
int
numglyphs
;
72
pfglyph
*
glyphs
;
73
}
74
pffont
;
75
/*
76
typedef struct
77
{
78
int numfonts;
79
pffont *fonts;
80
} pftable;
81
*/
82
#endif
tmp
buildd
sumo-0.21.0+dfsg
src
foreign
polyfonts
polyfonttypes.h
Generated on Thu Nov 20 2014 19:49:58 for SUMO - Simulation of Urban MObility by
1.8.1.2