Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Classes | Public Member Functions | Public Attributes | List of all members
ImFontAtlas Struct Reference

#include <imgui.h>

Classes

struct  CustomRect
 
struct  GlyphRangesBuilder
 

Public Member Functions

IMGUI_API ImFontAtlas ()
 
IMGUI_API ~ImFontAtlas ()
 
IMGUI_API ImFontAddFont (const ImFontConfig *font_cfg)
 
IMGUI_API ImFontAddFontDefault (const ImFontConfig *font_cfg=NULL)
 
IMGUI_API ImFontAddFontFromFileTTF (const char *filename, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API ImFontAddFontFromMemoryTTF (void *font_data, int font_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API ImFontAddFontFromMemoryCompressedTTF (const void *compressed_font_data, int compressed_font_size, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API ImFontAddFontFromMemoryCompressedBase85TTF (const char *compressed_font_data_base85, float size_pixels, const ImFontConfig *font_cfg=NULL, const ImWchar *glyph_ranges=NULL)
 
IMGUI_API void ClearTexData ()
 
IMGUI_API void ClearInputData ()
 
IMGUI_API void ClearFonts ()
 
IMGUI_API void Clear ()
 
IMGUI_API bool Build ()
 
IMGUI_API void GetTexDataAsAlpha8 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
IMGUI_API void GetTexDataAsRGBA32 (unsigned char **out_pixels, int *out_width, int *out_height, int *out_bytes_per_pixel=NULL)
 
void SetTexID (ImTextureID id)
 
IMGUI_API const ImWcharGetGlyphRangesDefault ()
 
IMGUI_API const ImWcharGetGlyphRangesKorean ()
 
IMGUI_API const ImWcharGetGlyphRangesJapanese ()
 
IMGUI_API const ImWcharGetGlyphRangesChinese ()
 
IMGUI_API const ImWcharGetGlyphRangesCyrillic ()
 
IMGUI_API const ImWcharGetGlyphRangesThai ()
 
IMGUI_API int AddCustomRectRegular (unsigned int id, int width, int height)
 
IMGUI_API int AddCustomRectFontGlyph (ImFont *font, ImWchar id, int width, int height, float advance_x, const ImVec2 &offset=ImVec2(0, 0))
 
IMGUI_API void CalcCustomRectUV (const CustomRect *rect, ImVec2 *out_uv_min, ImVec2 *out_uv_max)
 
const CustomRectGetCustomRectByIndex (int index) const
 

Public Attributes

ImTextureID TexID
 
int TexDesiredWidth
 
int TexGlyphPadding
 
unsigned char * TexPixelsAlpha8
 
unsigned int * TexPixelsRGBA32
 
int TexWidth
 
int TexHeight
 
ImVec2 TexUvWhitePixel
 
ImVector< ImFont * > Fonts
 
ImVector< CustomRectCustomRects
 
ImVector< ImFontConfigConfigData
 
int CustomRectIds [1]
 

Detailed Description

Definition at line 1366 of file imgui.h.

Constructor & Destructor Documentation

ImFontAtlas::ImFontAtlas ( )

Definition at line 1101 of file imgui_draw.cpp.

ImFontAtlas::~ImFontAtlas ( )

Definition at line 1114 of file imgui_draw.cpp.

Member Function Documentation

int ImFontAtlas::AddCustomRectFontGlyph ( ImFont font,
ImWchar  id,
int  width,
int  height,
float  advance_x,
const ImVec2 offset = ImVec2(0, 0) 
)

Definition at line 1339 of file imgui_draw.cpp.

int ImFontAtlas::AddCustomRectRegular ( unsigned int  id,
int  width,
int  height 
)

Definition at line 1326 of file imgui_draw.cpp.

ImFont * ImFontAtlas::AddFont ( const ImFontConfig font_cfg)

Definition at line 1205 of file imgui_draw.cpp.

ImFont * ImFontAtlas::AddFontDefault ( const ImFontConfig font_cfg = NULL)

Definition at line 1255 of file imgui_draw.cpp.

ImFont * ImFontAtlas::AddFontFromFileTTF ( const char *  filename,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1271 of file imgui_draw.cpp.

ImFont * ImFontAtlas::AddFontFromMemoryCompressedBase85TTF ( const char *  compressed_font_data_base85,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1316 of file imgui_draw.cpp.

ImFont * ImFontAtlas::AddFontFromMemoryCompressedTTF ( const void *  compressed_font_data,
int  compressed_font_size,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1304 of file imgui_draw.cpp.

ImFont * ImFontAtlas::AddFontFromMemoryTTF ( void *  font_data,
int  font_size,
float  size_pixels,
const ImFontConfig font_cfg = NULL,
const ImWchar glyph_ranges = NULL 
)

Definition at line 1292 of file imgui_draw.cpp.

bool ImFontAtlas::Build ( )

Definition at line 1363 of file imgui_draw.cpp.

void ImFontAtlas::CalcCustomRectUV ( const CustomRect rect,
ImVec2 out_uv_min,
ImVec2 out_uv_max 
)

Definition at line 1355 of file imgui_draw.cpp.

void ImFontAtlas::Clear ( )

Definition at line 1161 of file imgui_draw.cpp.

void ImFontAtlas::ClearFonts ( )

Definition at line 1151 of file imgui_draw.cpp.

void ImFontAtlas::ClearInputData ( )

Definition at line 1119 of file imgui_draw.cpp.

void ImFontAtlas::ClearTexData ( )

Definition at line 1141 of file imgui_draw.cpp.

const CustomRect* ImFontAtlas::GetCustomRectByIndex ( int  index) const
inline

Definition at line 1437 of file imgui.h.

const ImWchar * ImFontAtlas::GetGlyphRangesChinese ( )

Definition at line 1720 of file imgui_draw.cpp.

const ImWchar * ImFontAtlas::GetGlyphRangesCyrillic ( )

Definition at line 1799 of file imgui_draw.cpp.

const ImWchar * ImFontAtlas::GetGlyphRangesDefault ( )

Definition at line 1698 of file imgui_draw.cpp.

const ImWchar * ImFontAtlas::GetGlyphRangesJapanese ( )

Definition at line 1734 of file imgui_draw.cpp.

const ImWchar * ImFontAtlas::GetGlyphRangesKorean ( )

Definition at line 1708 of file imgui_draw.cpp.

const ImWchar * ImFontAtlas::GetGlyphRangesThai ( )

Definition at line 1812 of file imgui_draw.cpp.

void ImFontAtlas::GetTexDataAsAlpha8 ( unsigned char **  out_pixels,
int *  out_width,
int *  out_height,
int *  out_bytes_per_pixel = NULL 
)

Definition at line 1168 of file imgui_draw.cpp.

void ImFontAtlas::GetTexDataAsRGBA32 ( unsigned char **  out_pixels,
int *  out_width,
int *  out_height,
int *  out_bytes_per_pixel = NULL 
)

Definition at line 1184 of file imgui_draw.cpp.

void ImFontAtlas::SetTexID ( ImTextureID  id)
inline

Definition at line 1388 of file imgui.h.

Member Data Documentation

ImVector<ImFontConfig> ImFontAtlas::ConfigData

Definition at line 1456 of file imgui.h.

int ImFontAtlas::CustomRectIds[1]

Definition at line 1457 of file imgui.h.

ImVector<CustomRect> ImFontAtlas::CustomRects

Definition at line 1455 of file imgui.h.

ImVector<ImFont*> ImFontAtlas::Fonts

Definition at line 1454 of file imgui.h.

int ImFontAtlas::TexDesiredWidth

Definition at line 1444 of file imgui.h.

int ImFontAtlas::TexGlyphPadding

Definition at line 1445 of file imgui.h.

int ImFontAtlas::TexHeight

Definition at line 1452 of file imgui.h.

ImTextureID ImFontAtlas::TexID

Definition at line 1443 of file imgui.h.

unsigned char* ImFontAtlas::TexPixelsAlpha8

Definition at line 1449 of file imgui.h.

unsigned int* ImFontAtlas::TexPixelsRGBA32

Definition at line 1450 of file imgui.h.

ImVec2 ImFontAtlas::TexUvWhitePixel

Definition at line 1453 of file imgui.h.

int ImFontAtlas::TexWidth

Definition at line 1451 of file imgui.h.


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