#include <sglTextureFont.hpp>
Inheritance diagram for sglTextureFont::
Public Methods | |
sglTextureFont (const sglBitmapFont &font, bool use_invalid_char, char invalid_char) | |
sglTextureFont (const sglBitmapFont &font, const vector< char > &valid_chars, bool use_invalid_char, char invalid_char) | |
~sglTextureFont () | |
unsigned int | getStringInfo (const string &str, sglVec3f *coord, sglVec2f *tex_coords, float scale, const sglVec3f &offset, bool vertical=false) const |
sglTexture2D* | getTexture () const |
unsigned int | getHeight () const |
unsigned int | getCharWidth (char c) const |
unsigned int | getCharWidthMax () const |
unsigned int | getStringWidth (const string &str) const |
Definition at line 43 of file sglTextureFont.hpp.
|
Constructs a complete texture font from a bitmap font. All characters in the range of 0-127 will be considered valid, if they have non-zero width.
|
|
Constructs a partial texture font from a bitmap font. Only the specified characters will be considered valid. Careful use of this constructor may generate substantially smaller textures than the other constructor.
|
|
destructor.
|
|
Queries all the information required to render a text string with this font.
|
|
Gets the texture.
Definition at line 106 of file sglTextureFont.hpp. |
|
Gets the height of the font in texels.
|
|
Gets the width of the given character in texels.
|
|
Gets the width in texels of the widest character in this font.
Definition at line 122 of file sglTextureFont.hpp. |
|
Gets the width in texels of the given string.
|