Commit graph

  • 5886eae83d DrawList: fixed too many detailed line textures being created. Mikko Mononen 2026-07-31 12:39:29 +03:00
  • 45ff8bdde6 DrawList: fixed rendering issues on small and degenerate shapes. Mikko Mononen 2026-07-31 11:45:41 +03:00
  • a58770dcf8 DrawList: fixed overdraw issue for filled baked corner rendering. Mikko Mononen 2026-07-31 11:39:16 +03:00
  • 6785e5618d DrawList: fixed passing large thickness value (e.g. 1e20f) to thickness crashing the code. thedmd 2026-07-30 21:25:37 +02:00
  • 14f64016f0 DrawList: fixed AddRectFilled() path for minimum dimension. ocornut 2026-07-30 18:12:53 +02:00
  • aca2bcce06 DrawList: baking half-texel in TexUvLines[] now that AddPolylineLegacy() was removed. ocornut 2026-07-30 17:56:04 +02:00
  • 9b90afd7a0 DrawList: ImDrawFlags_AALineEnds also requires ImDrawFlags_AALine, which makes it easier for widgets to opt-in AAEnds. ocornut 2026-07-30 15:02:53 +02:00
  • 2b6114b002 DrawList: fixed using ImDrawFlags_UseTexForRoundCorners when ImFontAtlasFlags_NoBakedRoundCorners has also been set. ocornut 2026-07-30 14:48:28 +02:00
  • d3f6c41e80 DrawList: fixed dropping prim flags in some paths (most for ImDrawFlags_AAXXX flags). ocornut 2026-07-30 14:37:23 +02:00
  • 26647360b3 DrawList: fixed filled rect baked AA. Mikko Mononen 2026-07-29 19:02:14 +03:00
  • 9db63a6d7b DrawList: Comments. Atlas's NoBakedLines automatically disable AA at Style level. Fix passing non-Legacy stroke mask to PushDrawFlag(). Demo: Custom Rendering: use LiveEdit everywhere. ocornut 2026-07-29 17:26:42 +02:00
  • 712f2bd67d TabBar: simpify TabItem rendering using stroke flags. ocornut 2026-07-29 16:27:29 +02:00
  • 5ddc33a30e Checkbox, Menus: check marks use anti-aliased ends. ocornut 2026-07-29 15:02:15 +02:00
  • 3f1efd3e92 DrawList: support altering RoundCorners flags in scope as an undocumented trick/hack. (9489) ocornut 2026-07-29 14:16:21 +02:00
  • 2fd9f120bb DrawList: removed AddPolylineLegacy(), AddConvexPolyFilledLegacy(). ocornut 2026-07-28 18:29:52 +02:00
  • 7b2ad5a591 DrawList: removed g_LEGACY_STROKES. ocornut 2026-07-28 18:27:36 +02:00
  • 070461c7ce DrawList: moved no-AA handling into _SelectFringeTexture(). ocornut 2026-07-28 19:01:43 +02:00
  • f5b5cd73ba DrawList: tweak _SelectFringeTexture(). move more-unlikely screen_thickness tests within already-unlikely block. re-add removed asserts. ocornut 2026-07-28 18:51:22 +02:00
  • 51533d686a Docs: update changelog. ocornut 2026-07-28 16:16:54 +02:00
  • b3aef829c2 DrawList: moved _GetStrokePos() to a local inline function. ocornut 2026-07-28 16:35:56 +02:00
  • 03c3751a27 DrawList: added PushDrawFlag(), PopDrawFlag(), ImSmallStack_<> ocornut 2026-07-28 15:48:40 +02:00
  • f57df5e380 DrawList: consistently support scope flags (ImDrawFlags::Flags) + primitive flags. ocornut 2026-07-28 11:24:48 +02:00
  • 17a62e8dd1 Demo: amend test bed to exercices more flags. ocornut 2026-07-27 19:17:37 +02:00
  • 2e26276f72 DrawList: comment about ImFontAtlasFlags_NoBakedLines. ocornut 2026-07-27 21:26:10 +02:00
  • 9838f26743 (Breaking) Obsoleted style.AntiAliasedLinesUseTex which now only makes sense for legacy strokes. Added style.AntiAliasedLineEnds. ocornut 2026-07-27 21:41:18 +02:00
  • 771e6dfa7a (Breaking) DrawList: removed ImDrawListFlags_in favor of using ImDrawFlags. ocornut 2026-06-08 12:48:52 +02:00
  • 8fd9f44455 DrawList: new ImDrawFlags API (yet unused in this commit) ocornut 2026-06-05 19:09:14 +02:00
  • 1cd57d1262 DrawList: inverted ImDrawFlags_NoAAEnds into ImDrawFlags_AAEnds. ocornut 2026-07-27 19:57:03 +02:00
  • 440b3d7ef5 DrawList: fixed warnings, added macro to facilitate visualizing rounded corner texture usage. ocornut 2026-07-27 19:35:30 +02:00
  • 3879c2861b DrawList: Optimize AddNgon() Mikko Mononen 2026-06-15 22:23:38 +03:00
  • b419b05b52 DrawList: Optimize AddRectFilled() Mikko Mononen 2026-06-15 21:07:08 +03:00
  • 8428ca8680 DrawList: Optimize _SelectFringeTexture() Mikko Mononen 2026-06-15 21:00:20 +03:00
  • 3ef6d7d89b DrawList: surround _GetStrokePos() in IM_MSVC_RUNTIME_CHECKS_OFF macro. ocornut 2026-06-05 18:37:52 +02:00
  • f230786bb2 ImFontAtlas: moved TexUv buffers and configurable defines to internals. ocornut 2026-06-05 16:40:11 +02:00
  • 85bee07912 DrawList: Added some comments and amended existing ones Mikko Mononen 2026-06-05 09:58:47 +03:00
  • f67467e17b DrawList: Revert texture selection to simple round() in _SelectFringeTexture Mikko Mononen 2026-06-05 09:19:33 +03:00
  • 41d368b9ab DrawList: No AA ends when line AA is disabled Mikko Mononen 2026-06-04 15:57:43 +03:00
  • 55fd0bc6cc DrawList: merged _AddPolyline back into AddPolyline. Mikko Mononen 2026-06-04 11:17:16 +03:00
  • 3a343a4d66 DrawList: removed vertex offset overflow (for 16-bit ImDrawIdx support) handling. Mikko Mononen 2026-06-04 11:13:40 +03:00
  • 3c3e072212 DrawList: restored non-AA rendering mode. Mikko Mononen 2026-06-04 10:30:04 +03:00
  • c280f33469 DrawList: fixed overdraw of transparent rounded rectangles Mikko Mononen 2026-06-04 10:28:18 +03:00
  • e0c0352105 DrawList: fixed baked corners to better match polyline corners Mikko Mononen 2026-06-04 01:11:37 +03:00
  • 0af2595483 DrawList: added macro to have consistent check for rounding Mikko Mononen 2026-06-04 00:57:20 +03:00
  • c47c6a7e9c Demo: added rounding slider+animate to allow better test range of rounding values. Mikko Mononen 2026-06-04 00:44:19 +03:00
  • 68c094a8ca DrawList: increase detailed line textures from 3px to 4px to better hide the texture change. Mikko Mononen 2026-06-04 00:43:36 +03:00
  • b2a4c94c51 DrawList: fixed reserve counts in _AddPolyline(). Mikko Mononen 2026-06-03 00:28:23 +03:00
  • c3985a9e9f DrawList: Debug build optimizations: add non-template ImMin/ImMax/ImClamp for int/float to avoid missing out on IM_MSVC_RUNTIME_CHECKS_OFF. ocornut 2026-06-02 16:54:44 +02:00
  • 707ebb471d DrawList: Debug build optimizations: disable over zealous stack checks in PrimReserve, PrimUnreserve, PrimRect, PrimRectUV, PrimQuadUV, _CalculateCenterBiasedOffset, ImAlphaMultiply, _SelectFringeTexture ocornut 2026-06-02 15:58:50 +02:00
  • f62b790588 DrawList: added vertex offset 16-bit ImDrawIdx support for _AddPolyline Mikko Mononen 2026-06-02 16:37:36 +02:00
  • 9e56593c61 DrawList: improved worst case vertex count for AddConvexPolyFilled, convex polys can have only 2 bevels verts. Mikko Mononen 2026-06-02 14:41:58 +03:00
  • 75b4a868dc DrawList: fixed indices when AllowVtxOffset is on Mikko Mononen 2026-06-02 12:27:39 +03:00
  • 5238078adf DrawList: Optimization: added specialized 2 point polyline _AddLine(). Mikko Mononen 2026-06-02 11:11:28 +03:00
  • 1d45bc9675 DrawList: added _InvFringeScale to use in cases of 1/_FringeScale. Mikko Mononen 2026-06-02 10:05:54 +03:00
  • d6d2e81bed DrawList: minor render optimizations. Mikko Mononen 2026-06-02 09:52:26 +03:00
  • 8ca0938d9b DrawList: debug build optimizations. Mikko Mononen 2026-06-01 20:35:16 +03:00
  • 9fe6ea561a DrawList: amends/review legacy stroke paths + minor tweaks. ocornut 2026-06-01 17:20:34 +02:00
  • 5f9eb7a51a DrawList: renamed ImDrawFlags_StrokeCenterAligned to ImDrawFlags_StrokeCenterBiased. ocornut 2026-06-01 17:20:17 +02:00
  • c67aa09fbc DrawList: Fixed vertex count calculation in_AddRectTinyRounding() Mikko Mononen 2026-05-29 16:08:49 +03:00
  • 3baf3a1413 DrawList: skip PathLineTo/PathStroke calls for common AddLine() functions. (4091) ocornut 2026-05-28 15:26:32 +02:00
  • 594afec4cb DrawList: fixed out of bounds access of baked corner based on thickness Mikko Mononen 2026-05-28 10:44:37 +03:00
  • 4627d859f2 Docs: update changelog. ocornut 2026-05-19 16:07:47 +02:00
  • 4e74220b1e DrawList: use straight floats when possible in _AddRectTinyRounding(). ocornut 2026-05-26 21:15:55 +02:00
  • c1e27738c7 DrawList: avoid using output references in _SelectFringeTexture() + misc tweaks, comments. ocornut 2026-05-26 21:05:00 +02:00
  • 6ae1e80504 DrawList: fixed thin lines appearing too bright. Mikko Mononen 2026-05-26 22:10:25 +03:00
  • 469d4ad9ae DrawList: extend the detailed stroke textures up stroke thickness 4. Mikko Mononen 2026-05-26 17:37:50 +03:00
  • a0d188cd42 DrawList: AddQuad() defaults to ImDrawFlags_StrokeInside. ocornut 2026-05-26 16:26:14 +02:00
  • cd643bb357 Demo: fixed using Miter/Square/NoAAends checkboxes interfering with stroke mode. warnings. ocornut 2026-05-26 16:25:55 +02:00
  • 6cfca59e3a DrawList: fixed visual pop in stroke rendering when thickness is between 1 and 2 pixels. Mikko Mononen 2026-05-26 15:52:59 +03:00
  • cf543a1d7b DrawList: improved shape drawing input validation for thin shapes and small thickness. Mikko Mononen 2026-05-26 15:48:28 +03:00
  • 0e5af07503 DrawList: fixed and optimized _AddRectTinyRounding. Mikko Mononen 2026-05-25 10:40:13 +03:00
  • 4026fb57cf DrawList: Textured Round Corners: use same array for fill and strokes. ocornut 2026-05-22 20:36:19 +02:00
  • 9d66a42f91 DrawList: renamed ImDrawFlags_StrokeCenterPixelAligned to ImDrawFlags_StrokeCenterAligned. ocornut 2026-05-22 16:50:57 +02:00
  • 0e68286e89 Demo: rework Custom Rendering's Primitives rendering. Fill + Stroke overlap. ocornut 2026-05-22 16:49:40 +02:00
  • b723a90bec DrawList: wired AddPolylineLegacy() to g_LEGACY_STROKES. Fixed AddLine(), AddLineV(), AddLineH() legacy path. ocornut 2026-05-22 16:00:55 +02:00
  • e6ddfff577 DrawList: optimized AA end overhead in debug builds. Mikko Mononen 2026-05-22 12:36:20 +03:00
  • 6c70985b94 DrawList: added ImDrawFlags_NoAAEnds which allows to disable line end AA. Mikko Mononen 2026-05-22 10:09:57 +03:00
  • 66282f4e3b DrawList: manually fix cases from merge, added missing cases of ImDrawFlags_StrokeCenterPixelAligned. Mikko Mononen 2026-05-22 09:59:29 +03:00
  • af04d78b6f DrawList: misc fixes, amends (replace uses of GetColorU32, macros fixes, default flags). Demo: added rotating square, added MiterOnly checkbox. ocornut 2026-05-18 17:17:15 +02:00
  • e0ddc04c22 DrawList: path rendering optimizations. Mikko Mononen 2026-05-12 11:17:49 +03:00
  • d1a0e06b91 DrawList: added stroke position to path rendering. Mikko Mononen 2026-05-07 09:25:46 +03:00
  • 3493286eda DrawList: use dedicated larger texture for fractional thickness lines. Mikko Mononen 2026-04-27 15:00:04 +03:00
  • 30adab759c DrawList: added square cap rendering. Mikko Mononen 2026-04-27 08:36:18 +03:00
  • 68df12ca6a DrawList: added more robust AddConvexPolyFilled(). (2183, 7972) Mikko Mononen 2026-04-24 13:44:23 +03:00
  • fcc22d2922 DrawList: added special case rendering for the stroked rects when the raounding radius gets really small compared to the stroke thickness. Mikko Mononen 2026-04-24 10:14:11 +03:00
  • b7b1668ba3 DrawList: improved handling of rounded stroked rectangles, where rounding is less than stroke thickness Mikko Mononen 2026-04-22 22:24:55 +03:00
  • 97e5076ed1 DrawList: added better handling for rendering degenerate geometry. (2183, 7972) Mikko Mononen 2026-04-21 15:28:20 +03:00
  • 106e375e9c DrawList: added improved polyline rendering. (2183, 7972) Mikko Mononen 2026-04-21 10:46:18 +03:00
  • 4f2618273a DrawList: fixed build/warnings + added pretty theorical support for _StrokeLegacy in AddLineV/AddLineH ocornut 2026-05-20 14:22:36 +02:00
  • 848240dce7 DrawList: changed CenterPixelAligned growth to be smoother, added stroke pos to AddLine() Mikko Mononen 2026-05-19 23:13:33 +03:00
  • deb6654d44 DrawList: added _GetStrokePos() helper indirection, made flags=0 select default at runtime. ocornut 2026-05-19 17:40:16 +02:00
  • 4d6cab95a1 DrawList: fixed is_truncated checks in AddRect() and AddRectFilled(). ocornut 2026-05-18 18:42:23 +02:00
  • a24295e1f9 Demo: Custom Rendering: expose Stroke Position. ocornut 2026-05-04 15:55:46 +02:00
  • 60a0da3f4f DrawList: optimize non-AA non-rounded case of AddRect() Mikko Mononen 2026-05-08 13:44:14 +03:00
  • 93482116b9 DrawList: added ImDrawFlags_StrokeCenterPixelAligned Mikko Mononen 2026-05-08 13:07:25 +03:00
  • 76efa50b86 DrawList: AddRect: avoid altering rounding on StrokeOutside when initial value if 0 + comments ocornut 2026-05-05 20:18:03 +02:00
  • 2768e0cff7 DrawList: Textured Round Corners: use macros + rename locals. (1962) ocornut 2026-05-05 17:40:15 +02:00
  • c9de560e97 DrawList: Textured Round Corners: Added flags to disable textured rounded corners (1962) Mikko Mononen 2026-04-28 09:32:09 +03:00
  • 93841c9c72 DrawList: Textured Round Corners: implemented faster render path for stroked rectangles. (1962) Mikko Mononen 2026-04-23 12:10:26 +03:00
  • d6cb3bbbb6 DrawList: Textured Round Corners: first version. (1962) Mikko Mononen 2026-04-27 23:39:17 +02:00
  • c282554b6e Fixed layout/pixel-perfect issues in various widgets (w/ g_LEGACY_STROKES toggle) Mikko Mononen 2026-04-28 18:28:22 +02:00