mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-26 16:05:45 +03:00
ImDrawListFlags -> ImDrawFlags
parent
af90b41f1a
commit
27a516313f
1 changed files with 17 additions and 5 deletions
22
Draw-List.md
22
Draw-List.md
|
|
@ -75,13 +75,25 @@ The Default Stroke Position may be overidden by passing one of the dedicated `Im
|
|||
|
||||

|
||||
|
||||
# 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue