Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::CSpriteFont Class Reference

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>

Inheritance diagram for Skylicht::CSpriteFont:
Skylicht::CSpriteFrame Skylicht::IFont

Public Member Functions

bool loadFont (const char *fileName)
virtual SModuleOffsetgetCharacterModule (wchar_t character)
Public Member Functions inherited from Skylicht::CSpriteFrame
bool load (const char *fileName)
std::vector< SFrame * > & getFrames ()
SFramegetFrameByName (const char *name)
SFramegetFrameById (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

Detailed Description

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.

Member Function Documentation

◆ getCharacterModule()

virtual SModuleOffset * Skylicht::CSpriteFont::getCharacterModule ( wchar_t character)
virtual

Implements Skylicht::IFont.


The documentation for this class was generated from the following file: