Texture-based thick lines: Improvements to code for drawing anti-aliased lines using textures

Moved line width into a constant
Removed test code (now in imgui-tests)
Improved matching between geometry and texture rendering at non-integer sizes
This commit is contained in:
Ben Carter
2020-01-15 16:33:09 +09:00
committed by omar
parent 1d3c3070d8
commit 741ab74b55
4 changed files with 8 additions and 66 deletions

View File

@ -2323,7 +2323,6 @@ struct ImFontAtlas
// [Internal] Packing data
int PackIdMouseCursors; // Custom texture rectangle ID for white pixel and mouse cursors
int AALineMaxWidth; // Maximum line width to build anti-aliased textures for
ImVector<int> AALineRectIds; // Custom texture rectangle IDs for anti-aliased lines
ImVector<ImVec4> TexUvAALines; // UVs for anti-aliased line textures