21 friend class SpriteFontManagerAttorney;
33 SpriteFont() =
delete;
34 SpriteFont(
const SpriteFont&) =
delete;
35 SpriteFont& operator=(
const SpriteFont&) =
delete;
43 SpriteFont(std::string key, std::string path);
Represents a sprite in the SUNENGINE.
Definition Sprites/SUNENGINESprite.h:16
Glyph * GetGlyph(char c)
Gets the glyph for a character.
Definition SpriteFont.cpp:26
Texture * FontTexture
Texture for the SpriteFont.
Definition SpriteFont.h:60
SpriteFontMap FontMap
Map of keys to glyphs.
Definition SpriteFont.h:70
void XMLtoCollection(std::string path)
Converts XML data to a collection of glyphs.
Definition SpriteFont.cpp:31
int Key
Key type for the SpriteFont.
Definition SpriteFont.h:26
void ElementTextToInt(IXmlReader *pReader, int &out)
Converts element text to an integer.
Definition SpriteFont.cpp:154
std::map< Key, Glyph * > SpriteFontMap
Collection of glyphs for the SpriteFont.
Definition SpriteFont.h:65
std::string Name
Name of the SpriteFont.
Definition SpriteFont.h:55
SUNENGINESprite Glyph
Glyph type for the SpriteFont.
Definition SpriteFont.h:31