![]() |
Skylicht Engine
|
This object class is designed to load fonts, which are created using the BMFont software (https://www.angelcode.com/products/bmfont). More...
#include <Graphics2D/SpriteFrame/CSpriteFont.h>
Public Member Functions | |
| bool | loadFont (const char *fileName) |
| virtual SModuleOffset * | getCharacterModule (wchar_t character) |
| Public Member Functions inherited from Skylicht::CSpriteFrame | |
| bool | load (const char *fileName) |
| std::vector< SFrame * > & | getFrames () |
| SFrame * | getFrameByName (const char *name) |
| SFrame * | getFrameById (const char *id) |
| const char * | getId () |
| const char * | getPath () |
| Public Member Functions inherited from Skylicht::IFont | |
| virtual void | getListModule (const wchar_t *string, std::vector< int > &format, std::vector< SModuleOffset * > &output, std::vector< int > &outputFormat) |
| virtual void | updateFontTexture () |
| virtual bool | dropFont () |
| virtual void | grabFont () |
Protected Attributes | |
| int * | m_moduleMap |
| int | m_numModuleMap |
| Protected Attributes inherited from Skylicht::CSpriteFrame | |
| std::vector< SImage * > | m_images |
| std::vector< SFrame * > | m_frames |
| std::vector< SModuleRect * > | m_modules |
| std::map< std::string, SFrame * > | m_names |
| std::map< std::string, SFrame * > | m_ids |
| bool | m_deleteAtlas |
| std::string | m_id |
| std::string | m_path |
This object class is designed to load fonts, which are created using the BMFont software (https://www.angelcode.com/products/bmfont).
Use the CGraphics2D object to draw text with the font.
|
virtual |
Implements Skylicht::IFont.