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:
parent
0f553c57bd
commit
b670f799d5
2 changed files with 15 additions and 39 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue