Note about being for 1.93.0

omar 2026-06-05 14:17:42 +02:00 committed by ocornut
parent 969413cdd7
commit b6b9410b01
3 changed files with 6 additions and 1 deletions

@ -1,5 +1,7 @@
# ImDrawList Vector Rendering Reference
⚠️ This documentation is valid for 1.93.0+ which will implement several ImDrawList improvements. The code is available for testing in the features/drawlist_193 branch. Some features and aspects of this document may not be valid for <1.93.0.
## Overview
The ImGui DrawList has number of methods to draw anti-aliased vector shapes.

@ -1,5 +1,6 @@
# Pixel Perfect Anti-aliased Rendering
⚠️ This documentation is valid for 1.93.0+ which will implement several ImDrawList improvements. The code is available for testing in the features/drawlist_193 branch. Some features and aspects of this document may not be valid for <1.93.0.
## How Anti-aliased Rendering Work?
@ -116,4 +117,4 @@ Combining paths and stroke position can make coordinates simpler easier to compu
## Conclusion
All in all, the general gist for pixel perfect rendering is to think about the boundary of the shapes, rather than focusing on the coordinates, and fill or stroke inside.
All in all, the general gist for pixel perfect rendering is to think about the boundary of the shapes, rather than focusing on the coordinates, and fill or stroke inside.

@ -1,5 +1,7 @@
# How Anti-aliased Polyline Rendering is Implemented
⚠️ This documentation is valid for 1.93.0+ which will implement several ImDrawList improvements. The code is available for testing in the features/drawlist_193 branch. Some features and aspects of this document may not be valid for <1.93.0.
![Overview](polyline_rendering/overview.svg)
The anti-aliased polyline rendering is based on expanding the stroke of the polyline, and making it slightly blurry by creating a fringe around the perimeter.