51 #define BEGIN_CHAR_ATTR AttrCont_t attr
52 #define ADD_CHAR_ATTR( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) \
53 attr.push_back( CharAttr_t( a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16 ) )
54 #define END_CHAR_ATTR return attr
89 typedef GLuint Char_t;
178 GLfloat horiBearingX_,
179 GLfloat horiBearingY_,
180 GLfloat horiAdvance_,
181 GLfloat vertBearingX_,
182 GLfloat vertBearingY_,
183 GLfloat vertAdvance_ )
188 , fixedTexX1( fTexX1 )
189 , fixedTexX2( fTexX2 )
192 , fixedTexY1( fTexY1 )
193 , fixedTexY2( fTexY2 )
194 , horiBearingX( horiBearingX_ )
195 , horiBearingY( horiBearingY_ )
196 , horiAdvance( horiAdvance_ )
197 , vertBearingX( vertBearingX_ )
198 , vertBearingY( vertBearingY_ )
199 , vertAdvance( vertAdvance_ )
204 typedef std::vector<CharAttr_t> AttrCont_t;
208 const FontAttr_t& fontAttr,
209 const AttrCont_t& charAttributes,
277 static GLS_EXPORT std::string
Key(
278 const std::string& name,
279 const std::string& style,
const AttrCont_t & CharAttributes() const
Definition: gls_font_base.h:250
GLuint ptSize
Definition: gls_font_base.h:98
GLuint maxCharHeight
Definition: gls_font_base.h:102
GLint underlinePos
Definition: gls_font_base.h:104
const FontAttr_t & Attributes() const
Definition: gls_font_base.h:216
Image * _texture
Definition: gls_font_base.h:343
GLuint PtSize() const
Definition: gls_font_base.h:301
const CharAttr_t & CharAttr(Char_t c) const
Definition: gls_font_base.h:227
Image * Texture() const
Definition: gls_font_base.h:317
GLfloat vertAdvance
Definition: gls_font_base.h:145
GLfloat vertBearingY
Definition: gls_font_base.h:144
GLuint CharAttrIndex(Char_t c) const
Definition: gls_font_base.h:239
GLfloat varTexX2
Definition: gls_font_base.h:129
GLuint underlineSize
Definition: gls_font_base.h:105
FontAttr_t _attr
Definition: gls_font_base.h:334
Char_t firstChar
Definition: gls_font_base.h:100
VertexNoColor Vector
Definition: gls_font_base.h:66
GLfloat horiBearingY
Definition: gls_font_base.h:141
GLuint descender
Definition: gls_font_base.h:99
GLfloat MaxCharWidth() const
Definition: gls_font_base.h:293
GLfloat varTexY1
Definition: gls_font_base.h:132
GLfloat MaxCharHeight() const
Definition: gls_font_base.h:285
The disti::Vertex class. A class for manipulating 3D vertices.
GLfloat fixedTexX2
Definition: gls_font_base.h:131
Attributes of the specific font.
Definition: gls_font_base.h:94
FontAttr_t()
Definition: gls_font_base.h:108
GLfloat horiBearingX
Definition: gls_font_base.h:140
GLfloat fixedTexX1
Definition: gls_font_base.h:130
GLfloat varTexX1
Definition: gls_font_base.h:128
GLfloat height
Definition: gls_font_base.h:127
CharAttr_t()
Default constructor to initialize character attribute data to known values.
Definition: gls_font_base.h:148
Definition: gls_font_man.h:59
Char_t lastChar
Definition: gls_font_base.h:101
std::string style
Definition: gls_font_base.h:97
std::string Key() const
Definition: gls_font_base.h:266
std::string _key
Definition: gls_font_base.h:340
GLfloat fixedTexY1
Definition: gls_font_base.h:134
AttrCont_t _charAttr
Definition: gls_font_base.h:337
GLfloat horiAdvance
Definition: gls_font_base.h:142
std::string Style() const
Definition: gls_font_base.h:309
Character attributes. One item for each character in the set.
Definition: gls_font_base.h:124
GLuint maxCharWidth
Definition: gls_font_base.h:103
std::string Family() const
Definition: gls_font_base.h:258
Definition: bmpimage.h:46
GLfloat varTexY2
Definition: gls_font_base.h:133
GLfloat vertBearingX
Definition: gls_font_base.h:143
GLfloat fixedTexY2
Definition: gls_font_base.h:135
GlsFontBase(const FontAttr_t &fontAttr, const AttrCont_t &charAttributes, Image *texture)
Definition: gls_font_base.h:85