mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-04 21:15:09 +00:00
WIP - Fonts: rename ImFontAtlasBuildClearTexture() to ImFontAtlasBuildClear()
This commit is contained in:
parent
ad6caff397
commit
b0e2c71f3e
3 changed files with 3 additions and 3 deletions
|
@ -21318,7 +21318,7 @@ void ImGui::ShowFontAtlas(ImFontAtlas* atlas)
|
|||
ImFontAtlasBuildGrowTexture(atlas);
|
||||
SameLine();
|
||||
if (Button("Clear Output"))
|
||||
ImFontAtlasBuildClearTexture(atlas);
|
||||
ImFontAtlasBuildClear(atlas);
|
||||
|
||||
for (int tex_n = 0; tex_n < atlas->TexList.Size; tex_n++)
|
||||
{
|
||||
|
|
|
@ -4094,7 +4094,7 @@ ImVec2i ImFontAtlasBuildGetTextureSizeEstimate(ImFontAtlas* atlas)
|
|||
}
|
||||
|
||||
// Clear all output. Invalidates all AddCustomRectXXX return values.
|
||||
void ImFontAtlasBuildClearTexture(ImFontAtlas* atlas)
|
||||
void ImFontAtlasBuildClear(ImFontAtlas* atlas)
|
||||
{
|
||||
ImVec2i new_tex_size = ImFontAtlasBuildGetTextureSizeEstimate(atlas);
|
||||
ImFontAtlasBuildDestroy(atlas);
|
||||
|
|
|
@ -4048,11 +4048,11 @@ IMGUI_API void ImFontAtlasBuildMain(ImFontAtlas* atlas);
|
|||
IMGUI_API void ImFontAtlasBuildSetupFontLoader(ImFontAtlas* atlas, const ImFontLoader* font_loader);
|
||||
IMGUI_API void ImFontAtlasBuildUpdatePointers(ImFontAtlas* atlas);
|
||||
IMGUI_API void ImFontAtlasBuildRenderBitmapFromString(ImFontAtlas* atlas, int x, int y, int w, int h, const char* in_str, char in_marker_char);
|
||||
IMGUI_API void ImFontAtlasBuildClear(ImFontAtlas* atlas); // Clear output and custom rects
|
||||
|
||||
IMGUI_API ImTextureData* ImFontAtlasBuildAddTexture(ImFontAtlas* atlas, int w, int h);
|
||||
IMGUI_API void ImFontAtlasBuildMakeSpace(ImFontAtlas* atlas);
|
||||
IMGUI_API void ImFontAtlasBuildRepackTexture(ImFontAtlas* atlas, int w, int h);
|
||||
IMGUI_API void ImFontAtlasBuildClearTexture(ImFontAtlas* atlas);
|
||||
IMGUI_API void ImFontAtlasBuildGrowTexture(ImFontAtlas* atlas, int old_w = -1, int old_h = -1);
|
||||
IMGUI_API void ImFontAtlasBuildCompactTexture(ImFontAtlas* atlas);
|
||||
IMGUI_API ImVec2i ImFontAtlasBuildGetTextureSizeEstimate(ImFontAtlas* atlas);
|
||||
|
|
Loading…
Add table
Reference in a new issue