You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: imgui.h
+1
Original file line number
Diff line number
Diff line change
@@ -3731,6 +3731,7 @@ struct ImFontAtlas
3731
3731
// - AddCustomRectFontGlyph() --> Prefer using custom ImFontLoader inside ImFontConfig
3732
3732
// - ImFontAtlasCustomRect --> Renamed to ImFontAtlasRect
3733
3733
IMGUI_API ImFontAtlasRectId AddCustomRect(int width, int height); // Register a rectangle. Return -1 (ImFontAtlasRectId_Invalid) on error.
3734
+
IMGUI_API voidRemoveCustomRect(ImFontAtlasRectId id); // Unregister a rectangle. Existing pixels will stay in texture until resized / garbage collected.
3734
3735
IMGUI_API boolGetCustomRect(ImFontAtlasRectId id, ImFontAtlasRect* out_r) const; // Get rectangle coordinates for current texture. Valid immediately, never store this (read above)!
// Important: don'return pointer valid until next call to AddRect(), e.g. FindGlyph(), CalcTextSize() can all potentially invalidate previous pointers.
0 commit comments