mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fonts: Exposed CompactCache(). Hide ClearCache().
This commit is contained in:
parent
eb79e3ab3d
commit
8a8d8a7b38
4 changed files with 27 additions and 17 deletions
|
|
@ -15688,14 +15688,14 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
|
|||
}
|
||||
|
||||
SeparatorText("Font Atlas");
|
||||
if (Button("Clear Cache"))
|
||||
atlas->ClearCache();
|
||||
if (Button("Compact"))
|
||||
atlas->CompactCache();
|
||||
SameLine();
|
||||
if (Button("Grow"))
|
||||
ImFontAtlasBuildGrowTexture(atlas);
|
||||
SameLine();
|
||||
if (Button("Compact"))
|
||||
ImFontAtlasBuildCompactTexture(atlas);
|
||||
if (Button("Clear Output"))
|
||||
ImFontAtlasBuildClearTexture(atlas);
|
||||
|
||||
for (int tex_n = 0; tex_n < atlas->TexList.Size; tex_n++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue