1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Fonts: use TexGlyphPadding. Fixed packing issues. Removed old code.

This commit is contained in:
ocornut 2024-11-29 15:16:22 +01:00 committed by ocornut
parent 0f553c57bd
commit b670f799d5
2 changed files with 15 additions and 39 deletions

View file

@ -3654,10 +3654,9 @@ struct ImFontAtlasBuilder
{
stbrp_context_opaque PackContext; // Actually 'stbrp_context' but we don't want to define this in the header file.
ImVector<stbrp_node> PackNodes;
int PackPadding; // Generally 1 to avoid bilinear filtering issues.
ImVector<ImFontAtlasRect> Rects;
ImVector<unsigned char> TempBuffer; // Misc scratch buffer
ImVec2i MaxRectSize; // Largest rectangle to pack (defacto used as a "minimum texture size")
ImVec2i MaxRectSize; // Largest rectangle to pack (de-facto used as a "minimum texture size")
ImVec2i MaxRectBounds; // Bottom-right most used pixels
bool LockDisableResize; // Disable resizing texture
bool PreloadedAllGlyphsRanges; // Set when missing ImGuiBackendFlags_RendererHasTextures features forces atlas to preload everything.