Karma Engine
Loading...
Searching...
No Matches
KGFontAtlas Struct Reference
Collaboration diagram for KGFontAtlas:

Public Member Functions

KGFontAddFont (const KGFontConfig *font_cfg)
 
KGFontAddFontDefault (const KGFontConfig *font_cfg=NULL)
 
KGFontAddFontFromFileTTF (const char *filename, float size_pixels, const KGFontConfig *font_cfg=NULL, const KGWchar *glyph_ranges=NULL)
 
KGFontAddFontFromMemoryTTF (void *font_data, int font_size, float size_pixels, const KGFontConfig *font_cfg=NULL, const KGWchar *glyph_ranges=NULL)
 
KGFontAddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_size, float size_pixels, const KGFontConfig *font_cfg=NULL, const KGWchar *glyph_ranges=NULL)
 
KGFontAddFontFromMemoryCompressedBase85TTF (const char *compressed_font_data_base85, float size_pixels, const KGFontConfig *font_cfg=NULL, const KGWchar *glyph_ranges=NULL)
 
void ClearInputData ()
 
void ClearTexData ()
 
void ClearFonts ()
 
void Clear ()
 
bool Build ()
 
void GetTexDataAsAlpha8 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
void GetTexDataAsRGBA32 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
bool IsBuilt () const
 
void SetTexID (KGTextureID id)
 
int AddCustomRectRegular (int width, int height)
 
int AddCustomRectFontGlyph (KGFont *font, KGWchar id, int width, int height, float advance_x, const KGVec2 &offset=KGVec2(0, 0))
 
KGFontAtlasCustomRectGetCustomRectByIndex (int index)
 
void CalcCustomRectUV (const KGFontAtlasCustomRect *rect, KGVec2 *out_uv_min, KGVec2 *out_uv_max) const
 
bool GetMouseCursorTexData (KarmaGuiMouseCursor cursor, KGVec2 *out_offset, KGVec2 *out_size, KGVec2 out_uv_border[2], KGVec2 out_uv_fill[2])
 

Static Public Member Functions

static const KGWchar * GetGlyphRangesDefault ()
 
static const KGWchar * GetGlyphRangesGreek ()
 
static const KGWchar * GetGlyphRangesKorean ()
 
static const KGWchar * GetGlyphRangesJapanese ()
 
static const KGWchar * GetGlyphRangesChineseFull ()
 
static const KGWchar * GetGlyphRangesChineseSimplifiedCommon ()
 
static const KGWchar * GetGlyphRangesCyrillic ()
 
static const KGWchar * GetGlyphRangesThai ()
 
static const KGWchar * GetGlyphRangesVietnamese ()
 

Public Attributes

KGFontAtlasFlags Flags
 
KGTextureID TexID
 
int TexDesiredWidth
 
int TexGlyphPadding
 
bool Locked
 
void * UserData
 
bool TexReady
 
bool TexPixelsUseColors
 
unsigned char * TexPixelsAlpha8
 
unsigned int * TexPixelsRGBA32
 
int TexWidth
 
int TexHeight
 
KGVec2 TexUvScale
 
KGVec2 TexUvWhitePixel
 
KGVector< KGFont * > Fonts
 
KGVector< KGFontAtlasCustomRectCustomRects
 
KGVector< KGFontConfigConfigData
 
KGVec4 TexUvLines [KG_DRAWLIST_TEX_LINES_WIDTH_MAX+1]
 
const KGFontBuilderIOFontBuilderIO
 
unsigned int FontBuilderFlags
 
int PackIdMouseCursors
 
int PackIdLines
 

The documentation for this struct was generated from the following files: