From 27a516313fa64104cde6288f32969a365ee805eb Mon Sep 17 00:00:00 2001 From: omar Date: Tue, 28 Jul 2026 14:27:22 +0200 Subject: [PATCH] ImDrawListFlags -> ImDrawFlags --- Draw-List.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Draw-List.md b/Draw-List.md index 9cd037a..82286be 100644 --- a/Draw-List.md +++ b/Draw-List.md @@ -75,13 +75,25 @@ The Default Stroke Position may be overidden by passing one of the dedicated `Im ![Miter Only](drawlist/miter_only.svg) -# Draw List Flags (`ImDrawListFlags`) +# Draw List Flags (`ImDrawFlags`) -- **ImDrawListFlags_RoundCornersUseTex**: toggles whether to use texture to render small rounded rectangles (stroked and filled) using textured corners. -- **ImDrawListFlags_AntiAliasedLines**: is now unsupported, lines are always anti-aliased, except when calling `AddPolylineLegacy()` directly. -- **ImDrawListFlags_AntiAliasedLinesUseTex**: is now unsupported, lines always use texture for anti-alias. -- **ImDrawListFlags_AntiAliasedFill**: is now unsupported, fills are always anti-aliased, except when calling `AddConvexPolyFilledLegacy()` directly. +- **ImDrawFlags_AAFill**: Enable anti-aliasing for Filled shapes. +- **ImDrawFlags_AAStrokes**: Enable anti-aliasing for Strokes. +- **ImDrawFlags_UseTexForRoundCorners**: Enable using textures instead of strokes to draw rounded corners/circles where possible (faster). Used by default unless 'ImFontAtlasFlags_NoBakedRoundCorners' is enabled in the font atlas. +- **ImDrawFlags_UseTexForStrokeLegacy** (previously `ImDrawListFlags_AntiAliasedLinesUseTex`) now only matters for legacy strokes. +
+🚧 Changes from versions < 1.93 + +🚨 **Version 1.93.0** + +- Renamed `ImDrawListFlags_AntiAliasedLines` to `ImDrawFlags_AAStrokes`. +- Renamed `ImDrawListFlags_AntiAliasedFill` to `ImDrawFlags_AAFill`. +- Renamed `ImDrawListFlags_AntiAliasedLinesUseTex` to `ImDrawFlags_UseTexForStrokeLegacy` (only meaningful for legacy stroke mode). +- Renamed `ImDrawListFlags_AllowVtxOffset` to `ImDrawFlags_UseVtxOffset`. +- Renamed `ImDrawListFlags_TextNoPixelSnap` to `ImDrawFlags_TextNoPixelSnap`. + +
# Primitives