Represents a font in the SUNENGINE.
More...
#include <SpriteFont.h>
|
class | SpriteFontManagerAttorney |
|
Represents a font in the SUNENGINE.
The SpriteFont class is responsible for managing and rendering a font in the SUNENGINE. It provides methods to get glyphs and convert XML data to a collection of glyphs.
◆ SpriteFont()
SpriteFont::SpriteFont |
( |
std::string | key, |
|
|
std::string | path ) |
|
private |
Constructor for SpriteFont with a key and path.
- Parameters
-
key | The key associated with the font. |
path | The path to the XML file. |
◆ ElementTextToInt()
void SpriteFont::ElementTextToInt |
( |
IXmlReader * | pReader, |
|
|
int & | out ) |
|
private |
Converts element text to an integer.
- Parameters
-
pReader | Pointer to the XML reader. |
out | Reference to the output integer. |
◆ GetGlyph()
Gets the glyph for a character.
- Parameters
-
c | The character for which to get the glyph. |
- Returns
- Pointer to the glyph for the character.
◆ XMLtoCollection()
void SpriteFont::XMLtoCollection |
( |
std::string | path | ) |
|
|
private |
Converts XML data to a collection of glyphs.
- Parameters
-
path | The path to the XML file. |
The documentation for this class was generated from the following files: