MCPcopy Create free account
hub / github.com/cinder/Cinder / ImFontAtlasBuildUpdatePointers

Function ImFontAtlasBuildUpdatePointers

src/imgui/imgui_draw.cpp:3440–3446  ·  view source on GitHub ↗

FIXME: May make ImFont::Sources a ImSpan<> and move ownership to ImFontAtlas

Source from the content-addressed store, hash-verified

3438
3439// FIXME: May make ImFont::Sources a ImSpan<> and move ownership to ImFontAtlas
3440void ImFontAtlasBuildUpdatePointers(ImFontAtlas* atlas)
3441{
3442 for (ImFont* font : atlas->Fonts)
3443 font->Sources.resize(0);
3444 for (ImFontConfig& src : atlas->Sources)
3445 src.DstFont->Sources.push_back(&src);
3446}
3447
3448// Render a white-colored bitmap encoded in a string
3449void ImFontAtlasBuildRenderBitmapFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char)

Callers 3

AddFontMethod · 0.85
RemoveFontMethod · 0.85
ImFontAtlasBuildInitFunction · 0.85

Calls 2

resizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected