SUMO - Simulation of Urban MObility
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
pffont::maxx
SUMOReal maxx
Definition:
polyfonttypes.h:69
pfglyph::minx
SUMOReal minx
Definition:
polyfonttypes.h:52
windows_config.h
pfglyph::numsegments
pfuint16 numsegments
Definition:
polyfonttypes.h:58
pffont::name
char * name
Definition:
polyfonttypes.h:65
pfglyph::advance
SUMOReal advance
Definition:
polyfonttypes.h:56
config.h
pffont::glyphs
pfglyph * glyphs
Definition:
polyfonttypes.h:72
pfint8
signed char pfint8
Definition:
polyfonttypes.h:43
pffont::minx
SUMOReal minx
Definition:
polyfonttypes.h:67
pfglyph::maxy
SUMOReal maxy
Definition:
polyfonttypes.h:55
pfglyph
Definition:
polyfonttypes.h:50
pffont::numglyphs
int numglyphs
Definition:
polyfonttypes.h:71
pfuint16
unsigned short int pfuint16
Definition:
polyfonttypes.h:45
pfint16
signed short int pfint16
Definition:
polyfonttypes.h:46
pfglyph::glyph
pfuint16 glyph
Definition:
polyfonttypes.h:57
pffont
Definition:
polyfonttypes.h:63
pfuint8
unsigned char pfuint8
Definition:
polyfonttypes.h:42
pfglyph::miny
SUMOReal miny
Definition:
polyfonttypes.h:53
SUMOReal
#define SUMOReal
Definition:
config.h:213
pfglyph::segments
pfint16 * segments
Definition:
polyfonttypes.h:59
pffont::loaded
int loaded
Definition:
polyfonttypes.h:66
pffont::maxy
SUMOReal maxy
Definition:
polyfonttypes.h:70
pfglyph::maxx
SUMOReal maxx
Definition:
polyfonttypes.h:54
pffont::miny
SUMOReal miny
Definition:
polyfonttypes.h:68
src
foreign
polyfonts
polyfonttypes.h
Generated on Tue Nov 8 2016 21:47:32 for SUMO - Simulation of Urban MObility by
1.8.12