![]() |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
#include "fonts.h"#include <OGRE/Hlms/Unlit/OgreHlmsUnlit.h>#include <OGRE/Hlms/Unlit/OgreHlmsUnlitDatablock.h>#include <OGRE/OgreHlmsManager.h>#include <OGRE/Overlay/OgreFontManager.h>#include <sail/sail.h>#include <sail-manip/sail-manip.h>#include <Strings/components/3rdparty/rapidxml/rapidxml.hpp>#include <Strings/components/utils/io/io.h>#include <Strings/components/utils/converters/converters.h>#include <Strings/components/utils/image/image.h>#include "components/rendering/rendering.h"#include "components/diagnostics/logger/logger.h"#include "components/settings/config/config.h"
Include dependency graph for fonts.cpp:Functions | |
| bool | resolve_glyph_character (std::string xml_glyph, char *character) |
| Identify the character of the font glyph from the XML attribute. More... | |
| int | glyph_attribute_test_int (bool *out_result, std::string glyph_name, std::string font_name, std::string attribute_name, rapidxml::xml_attribute<> *attribute) |
| A helper function used to check if a glyph attribute's value is an integer or not. More... | |
| float | glyph_attribute_test_float (bool *out_result, std::string glyph_name, std::string font_name, std::string attribute_name, rapidxml::xml_attribute<> *attribute) |
| A helper function used to check if a glyph attribute's value is a float or not. More... | |
Variables | |
| BlamMap< std::string, BlamFontPackage * > | font_map = BlamMap<std::string, BlamFontPackage*>() |
| float glyph_attribute_test_float | ( | bool * | out_result, |
| std::string | glyph_name, | ||
| std::string | font_name, | ||
| std::string | attribute_name, | ||
| rapidxml::xml_attribute<> * | attribute | ||
| ) |
A helper function used to check if a glyph attribute's value is a float or not.
| out_result | - Output parameter. If provided, will be set to false if the provided attribute value was not an float. |
| glyph_name | - The name of the glyph. Used in debug messages. |
| font_name | - The name of the font. Used in debug messages. |
| attribute_name | - The name of the attribute. Used in debug messages. |
| attribute | - The XML attribute to check. |
Here is the call graph for this function:
Here is the caller graph for this function:| int glyph_attribute_test_int | ( | bool * | out_result, |
| std::string | glyph_name, | ||
| std::string | font_name, | ||
| std::string | attribute_name, | ||
| rapidxml::xml_attribute<> * | attribute | ||
| ) |
A helper function used to check if a glyph attribute's value is an integer or not.
| out_result | - Output parameter. If provided, will be set to false if the provided attribute value was not an integer. |
| glyph_name | - The name of the glyph. Used in debug messages. |
| font_name | - The name of the font. Used in debug messages. |
| attribute_name | - The name of the attribute. Used in debug messages. |
| attribute | - The XML attribute to check. |
Here is the call graph for this function:
Here is the caller graph for this function:| bool resolve_glyph_character | ( | std::string | xml_glyph, |
| char * | character | ||
| ) |
Identify the character of the font glyph from the XML attribute.
| xml_glyph | - The original string containing the glyph value from fontinfo.xml |
| character | - Pointer to a character to set to the resolved character |
true if the character was resolved, false if the character could not be resolved
Here is the caller graph for this function:| BlamMap<std::string, BlamFontPackage*> font_map = BlamMap<std::string, BlamFontPackage*>() |