|
GL Studio C++ Runtime API
|
#include <gls_unicode_font_base.h>
Public Member Functions | |
| GlsUnicodeFontDBUFReader (const unsigned char *const *inlineDBUFData, const unsigned int lineLength, const unsigned int totalInlineSize, const bool isCompressed, unsigned long uncompressedSize) | |
| GlsUnicodeFontDBUFReader (const unsigned char *const dbufData, const unsigned int dbufDataLength) | |
| ~GlsUnicodeFontDBUFReader () | |
| GlsFontBase::FontAttr_t | GetGlsFontBaseFontAttributes () |
| GlsFontBase::AttrCont_t | GetGlsFontBaseCharAttributes () |
| Image * | GetGlsFontBaseTexture () |
| GlsUnicodeFontBase::FontAttrUnicode_t | GetGlsUnicodeFontBaseFontAttributes () |
| GlsUnicodeFontBase::AttrContUnicode_t | GetGlsUnicodeFontBaseCharAttributes () |
| std::vector< Image * > | GetGlsUnicodeFontBaseTextures () |
| bool | IsValid () const |
| std::string | GetErrorMsg () const |
Protected Member Functions | |
| void | InitializeFromDBUF (const unsigned char *const dbufData, const unsigned int dbufDataLength) |
Protected Attributes | |
| bool | _isValid |
| std::string | _errMsg |
| GlsUnicodeFontBase::FontAttrUnicode_t | _fontAttrUnicode |
| GlsUnicodeFontBase::AttrContUnicode_t | _charAttrUnicode |
| std::vector< Image * > | _fontTextures |
helper class for reading a binary unicode font (DBUF)
| GlsUnicodeFontDBUFReader | ( | const unsigned char *const * | inlineDBUFData, |
| const unsigned int | lineLength, | ||
| const unsigned int | totalInlineSize, | ||
| const bool | isCompressed, | ||
| unsigned long | uncompressedSize | ||
| ) |
ctor – construct from inline data (optionally compressed)
| inlineDBUFData | inline DBUF data to read |
| lineLength | length of lines in inline data |
| totalInlineSize | total number of bytes (not including NULL terminators) of inline data |
| isCompressed | true if dbuf data is zlib compressed else false |
| uncompressedSize | uncompressed size of data if isCompressed else ignored |
| GlsUnicodeFontDBUFReader | ( | const unsigned char *const | dbufData, |
| const unsigned int | dbufDataLength | ||
| ) |
ctor – construct from noninline data (not compressed)
| dbufData | DBUF data to read |
| dbufDataLength | number of bytes of data in dbufData |
dtor
| std::string GetErrorMsg | ( | ) | const |
Get an error message if !IsValid()
| GlsFontBase::AttrCont_t GetGlsFontBaseCharAttributes | ( | ) |
Get the GlsFontBase::AttrCont_t associated with the unicode font
| GlsFontBase::FontAttr_t GetGlsFontBaseFontAttributes | ( | ) |
Get the GlsFontBase::FontAttr_t associated with the unicode font
| Image * GetGlsFontBaseTexture | ( | ) |
Get the first image associated with the unicode font (suitable for use by GlsFontBase)
| GlsUnicodeFontBase::AttrContUnicode_t GetGlsUnicodeFontBaseCharAttributes | ( | ) |
Get the GlsUnicodeFontBase::AttrContUnicode_t associated with the unicode font
| GlsUnicodeFontBase::FontAttrUnicode_t GetGlsUnicodeFontBaseFontAttributes | ( | ) |
Get the GlsUnicodeFontBase::FontAttrUnicode_t associated with the unicode font
| std::vector< Image * > GetGlsUnicodeFontBaseTextures | ( | ) |
Get the textures associated with the unicode font
|
protected |
initialize the reader from the given DBUF data
| dbufData | DBUF data to read |
| dbufDataLength | number of bytes of data in dbufData |
| bool IsValid | ( | ) | const |
Determine if a valid DBUF was read
|
protected |
unicode char attributes read from DBUF data
|
protected |
error message if !IsValid()
|
protected |
unicode font attributes read from DBUF data
|
protected |
font textures read from DBUF data
|
protected |
true if a valid DBUF was read else false