![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Classes | |
struct | Font |
Structure to contain data for a Font. More... | |
struct | FontGlyph |
Structure to contain data for a Font Glyph. More... | |
Functions | |
BLAM void | LoadAllFonts () |
Loads all fonts available in the engine's configured font directory. More... | |
BLAM HRESULT | LoadFont (std::string path) |
Load a font from disk. More... | |
BLAM HRESULT | ReloadFont (std::string id) |
Reloads all data for the specified font. More... | |
BLAM Font * | GetFont (std::string id) |
Retrieves a font from the list of loaded fonts. More... | |
BLAM FontGlyph * | GetFontGlyph (Font *font, char glyph) |
Retrieves a glyph from a font. More... | |
BLAM bool | FontExists (std::string id) |
Checks whether or not a font is loaded. More... | |
BLAM std::map< std::string, Font > * | GetFontList () |
Retrieves the list of loaded fonts. More... | |
BLAM void | Cleanup () |
Clean-up all font data and free any allocated memory for font data. More... | |
void Blam::Content::Fonts::Cleanup | ( | ) |
Clean-up all font data and free any allocated memory for font data.
bool Blam::Content::Fonts::FontExists | ( | std::string | id | ) |
Checks whether or not a font is loaded.
id | - The ID of the font to check for |
true
if the font is loaded, false
if it couldn't be found Font * Blam::Content::Fonts::GetFont | ( | std::string | id | ) |
Retrieves a font from the list of loaded fonts.
id | - The ID of the desired font |
nullptr
if the font couldn't be found Retrieves a glyph from a font.
font | - Pointer to the font to locate a glyph within |
glyph | - The character to get glyph data for |
nullptr
if the glyph couldn't be found std::map< std::string, Font > * Blam::Content::Fonts::GetFontList | ( | ) |
Retrieves the list of loaded fonts.
void Blam::Content::Fonts::LoadAllFonts | ( | ) |
Loads all fonts available in the engine's configured font directory.
HRESULT Blam::Content::Fonts::LoadFont | ( | std::string | path | ) |
Load a font from disk.
Do NOT include full path to fontinfo.xml or the .bin extension - this is determined automatically.
path | - The path of the font, excluding any .bin or /fontinfo.xml suffixes. |
HRESULT Blam::Content::Fonts::ReloadFont | ( | std::string | id | ) |
Reloads all data for the specified font.
id | - The ID of the font to reload. |