ImDrawListFlags -> ImDrawFlags

omar 2026-07-28 14:27:22 +02:00
parent af90b41f1a
commit 27a516313f

@ -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.
<details>
<summary><b>🚧 Changes from versions < 1.93</b></summary>
🚨 **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`.
</details>
# Primitives