52#define BEGIN_CHAR_ATTR AttrCont_t attr
53#define ADD_CHAR_ATTR( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
54 attr.push_back( CharAttr_t( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) )
55#define END_CHAR_ATTR return attr
195 GLfloat horiBearingX_,
196 GLfloat horiBearingY_,
197 GLfloat horiAdvance_,
198 GLfloat vertBearingX_,
199 GLfloat vertBearingY_,
200 GLfloat vertAdvance_ )
294 const std::string& name,
295 const std::string& style,
Definition: gls_font_base.h:87
const CharAttr_t & CharAttr(Char_t c) const
Definition: gls_font_base.h:244
Image * Texture() const
Definition: gls_font_base.h:331
std::string Family() const
Definition: gls_font_base.h:275
std::vector< CharAttr_t > AttrCont_t
Typedef for a list of character attributes.
Definition: gls_font_base.h:221
std::string _key
Definition: gls_font_base.h:354
const FontAttr_t & Attributes() const
Definition: gls_font_base.h:233
static std::string Key(const std::string &name, const std::string &style, GLuint ptSize)
GLfloat MaxCharWidth() const
Definition: gls_font_base.h:309
GLuint Char_t
Define the character type to use.
Definition: gls_font_base.h:89
std::string Key() const
Definition: gls_font_base.h:283
const AttrCont_t & CharAttributes() const
Definition: gls_font_base.h:267
GLuint CharAttrIndex(Char_t c) const
Definition: gls_font_base.h:256
GlsFontBase(const FontAttr_t &fontAttr, const AttrCont_t &charAttributes, Image *texture)
std::string Style() const
Definition: gls_font_base.h:323
AttrCont_t _charAttr
Definition: gls_font_base.h:351
Image * _texture
Definition: gls_font_base.h:357
FontAttr_t _attr
Definition: gls_font_base.h:348
GLuint PtSize() const
Definition: gls_font_base.h:317
GLfloat MaxCharHeight() const
Definition: gls_font_base.h:301
Definition: gls_font_man.h:60
#define GLS_EXPORT
Macro denoting which functions should be visible from the runtime library.
Definition: gls_include.h:52
Force inclusion of the DirectShow library.
Definition: bmpimage.h:47
VertexNoColor Vector
Definition: gls_font_base.h:69
Character attributes. One item for each character in the set.
Definition: gls_font_base.h:125
GLfloat vertBearingX
Distance from pen position (ie the center line) to the left edge of the character (varTexX1) for vert...
Definition: gls_font_base.h:143
GLfloat vertAdvance
Distance to advance the pen position after drawing this character for vertical strings.
Definition: gls_font_base.h:145
GLfloat fixedTexY2
Upper most y position in the texture for fixed height font spacing. (in texture coordinates).
Definition: gls_font_base.h:135
CharAttr_t(GLfloat w, GLfloat h, GLfloat vTexX1, GLfloat vTexX2, GLfloat fTexX1, GLfloat fTexX2, GLfloat vTexY1, GLfloat vTexY2, GLfloat fTexY1, GLfloat fTexY2, GLfloat horiBearingX_, GLfloat horiBearingY_, GLfloat horiAdvance_, GLfloat vertBearingX_, GLfloat vertBearingY_, GLfloat vertAdvance_)
Definition: gls_font_base.h:185
GLfloat width
Character width in pixels/points.
Definition: gls_font_base.h:126
GLfloat horiBearingX
Distance from pen position to the left edge of the character (varTexX1) for horizontal strings.
Definition: gls_font_base.h:140
GLfloat varTexY1
Lowest y position in the texture for variable height font spacing. (in texture coordinates).
Definition: gls_font_base.h:132
GLfloat fixedTexX1
Left most x position in the texture for fixed width font spacing. (in texture coordinates).
Definition: gls_font_base.h:130
GLfloat horiAdvance
Distance to advance the pen position after drawing this character for horizontal strings.
Definition: gls_font_base.h:142
CharAttr_t()
Default constructor to initialize character attribute data to known values.
Definition: gls_font_base.h:148
GLfloat varTexX2
Right most x position in the texture for variable width font spacing. (in texture coordinates).
Definition: gls_font_base.h:129
GLfloat fixedTexY1
Lowest y position in the texture for fixed height font spacing. (in texture coordinates).
Definition: gls_font_base.h:134
GLfloat vertBearingY
Distance from pen position to the top edge of the character (varTexY2) for vertical strings.
Definition: gls_font_base.h:144
GLfloat horiBearingY
Distance from pen position (ie the baseline) to the top edge of the character (varTexY2) for horizont...
Definition: gls_font_base.h:141
GLfloat height
Character height in pixels/points.
Definition: gls_font_base.h:127
GLfloat fixedTexX2
Right most x position in the texture for fixed width font spacing. (in texture coordinates).
Definition: gls_font_base.h:131
GLfloat varTexX1
Left most x position in the texture for variable width font spacing. (in texture coordinates).
Definition: gls_font_base.h:128
GLfloat varTexY2
Upper most y position in the texture for variable height font spacing. (in texture coordinates).
Definition: gls_font_base.h:133
Attributes of the specific font.
Definition: gls_font_base.h:95
GLuint maxCharWidth
Maximum character width in pixels.
Definition: gls_font_base.h:103
GLuint descender
Font descender in positive pixels.
Definition: gls_font_base.h:99
GLint underlinePos
Position of the underline for underlined text.
Definition: gls_font_base.h:104
FontAttr_t()
Definition: gls_font_base.h:108
GLuint ptSize
Font point size.
Definition: gls_font_base.h:98
std::string family
Font family name. Eg. Arial.
Definition: gls_font_base.h:96
GLuint underlineSize
thickness of the underline.
Definition: gls_font_base.h:105
std::string style
Font style. Eg. Bold.
Definition: gls_font_base.h:97
Char_t lastChar
Last character code in the character set.
Definition: gls_font_base.h:101
Char_t firstChar
First character code in the character set.
Definition: gls_font_base.h:100
GLuint maxCharHeight
Maximum character height in pixels.
Definition: gls_font_base.h:102
The disti::Vertex class. A class for manipulating 3D vertices.