|
GUInity
|
#include <Font.hpp>
Public Member Functions | |
| Font (shared_ptr< Texture > fontTexture, map< char, LetterFontUV > charUVMap, int fontSize) | |
| virtual | ~Font () |
| shared_ptr< Texture > | getFontTexture () |
| int | getFontSize () |
| map< char, LetterFontUV > | getCharUVMap () |
| LetterFontUV | getCharDesc (char c) |
Public Member Functions inherited from Asset | |
| Asset () | |
| virtual | ~Asset () |
| void | setAssetID (unsigned int newAssetID) |
| unsigned int | getAssetID () const |
| string | getPath () |
| void | setPath (string newPath) |
| void | setName (string name) |
| string | getName () |
| void | setCRC (int crc) |
| int | setCRC () |
Font is an Asset. It holds the information of the font size, the available characters and their UV mapping to the corresponding Texture
| Font::Font | ( | shared_ptr< Texture > | fontTexture, |
| map< char, LetterFontUV > | charUVMap, | ||
| int | fontSize | ||
| ) |
Constructor from a Texture, a map of available chars and their UVMapping and the font size.
|
inlinevirtual |
Default Destructor. Virtual cause it's children class
| LetterFontUV Font::getCharDesc | ( | char | c | ) |
Returns the LetterFontUV of a char in this font
| map< char, LetterFontUV > Font::getCharUVMap | ( | ) |
charUVMap getter
| int Font::getFontSize | ( | ) |
fontSize getter
| shared_ptr< Texture > Font::getFontTexture | ( | ) |
fontTexture getter
1.8.9.1