Commit Graph

  • 46d39d56fe Fixed GCC false positive. (#9508) master ocornut 2026-08-07 18:42:39 +02:00
  • 551a0a6bc0 TextAligned, TextAlignedV: rework to always use provided width. (#7024, #9455, #1980) ocornut 2026-08-07 17:03:56 +02:00
  • 5de45fb1d9 Trim trailing white spaces. Changes some NULL to nullptr. ocornut 2026-08-07 15:42:27 +02:00
  • 49fa47fc19 Added IM_FMTARGS/IM_FMTLIST to TextAligned() functions. (#1980, #9455) Daniel K. O. (dkosmari) 2026-06-25 21:00:14 -03:00
  • 5b6e19bb50 Examples: Apple+OpenGL3: added new example. ocornut 2026-08-06 23:10:56 +02:00
  • 70e60a3c4c Examples: Apple+OpenGL2: silence warnings. ocornut 2026-08-06 23:01:56 +02:00
  • 83f668625a Examples: OSX: fixed warning. docking ocornut 2026-08-06 22:53:34 +02:00
  • 9c473a34ce Example: GLFW+Metal: fix. ocornut 2026-08-06 22:39:40 +02:00
  • de4a2990a2 Backends: Metal, Metal4: fixed resizing windows losing framebuffer scale. (#6828, #8856) ocornut 2026-08-06 22:12:39 +02:00
  • cf27a555ad Example: SDL3+Metal: fixed missing multi-viewport support. ocornut 2026-08-06 22:02:03 +02:00
  • 6ca5197cf8 Backends: Win32: remove unused code from an old experiment. ocornut 2026-08-06 21:50:04 +02:00
  • f2ce2def09 Backends: OSX: fixed reporting backing scale as content scale (dpiscale). ocornut 2026-08-06 21:45:19 +02:00
  • e236e74206 Merge branch 'master' into docking ocornut 2026-08-06 21:32:43 +02:00
  • 2ddb5fc095 Examples: SDL2+Metal: stop using SDL_CreateRenderer(). (#5592) ocornut 2026-08-06 21:23:28 +02:00
  • 98f3efcf07 Examples: SDL2+Metal: fixed mismatches with other examples. ocornut 2026-08-06 21:17:55 +02:00
  • 730f099239 Backends: OpenGL3: fixed unused variable warning. (#9507) ocornut 2026-08-06 19:01:49 +02:00
  • 108bc3b060 DrawList: added explanation for IM_POLYLINE_CONVEX_POLY_MAX_BEVELS. features/drawlist_193 Mikko Mononen 2026-08-06 19:52:54 +03:00
  • 724c69b182 Backends: SDL2: fixed querying framebuffer scale/density when using Metal. (#5592) ocornut 2026-08-06 18:28:23 +02:00
  • a38ce24427 Demo: Custom Rendering: added zig-zag concave shape, tweak color, tidy up section. ocornut 2026-08-06 15:58:15 +02:00
  • ff42226394 DrawList: changed _GetStrokePos() to a macro. ocornut 2026-08-06 18:09:43 +02:00
  • b8516b3292 DrawList: rename ImDrawFlags_MiterOnly->ImDrawFlags_JoinMiter, ImDrawFlags_SquareCap->ImDrawFlags_CapSquare. ocornut 2026-08-05 23:05:42 +02:00
  • 32b4600ca2 DrawList: AddCircle, AddCircleFilled: fixed large circles being under-tessellated (when above ~140 with default CircleTessellationMaxError). ocornut 2026-08-05 16:55:48 +02:00
  • 3741affa6d Docs: reworked Changelog, comments. ocornut 2026-07-31 19:44:00 +02:00
  • c5bc3ba9fe DrawList: rework _SelectFringeTexture() for use by third-party extensions + rename to _SelectLineTexture(). ocornut 2026-08-04 15:33:54 +02:00
  • 56a3017210 DrawList: fixed ImFontAtlasBuildUpdateTexDataCorners() packing vs render to match. ocornut 2026-07-31 21:49:55 +02:00
  • bc2ce848a1 DrawList: amend PushDrawFlag() to report reaching capacity. ocornut 2026-07-31 21:47:46 +02:00
  • 8688cab452 DrawList: removed ImDrawFlags_UseTexForStrokeLegacy as it doesn't have any use now that legacy code is out of the way. ocornut 2026-07-31 21:36:28 +02:00
  • 63a36bfcc8 DrawList: simplify ImFontAtlasBuildUpdateTexDataCorners() by merging fill/strokes loops. ocornut 2026-07-31 17:52:34 +02:00
  • 65f176ef74 DrawList: fixed PathArcTo to not emit small segments. Mikko Mononen 2026-07-31 16:45:01 +03:00
  • d75d11cd2b DrawList: fixed too many detailed line textures being created. Mikko Mononen 2026-07-31 12:39:29 +03:00
  • 30f70ac19c DrawList: fixed rendering issues on small and degenerate shapes. Mikko Mononen 2026-07-31 11:45:41 +03:00
  • 04efdebb14 DrawList: fixed overdraw issue for filled baked corner rendering. Mikko Mononen 2026-07-31 11:39:16 +03:00
  • 9695af5162 DrawList: fixed passing large thickness value (e.g. 1e20f) to thickness crashing the code. thedmd 2026-07-30 21:25:37 +02:00
  • d9711abaa0 DrawList: fixed AddRectFilled() path for minimum dimension. ocornut 2026-07-30 18:12:53 +02:00
  • 58f055a9f3 DrawList: baking half-texel in TexUvLines[] now that AddPolylineLegacy() was removed. ocornut 2026-07-30 17:56:04 +02:00
  • 06313c01ef 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
  • 4fa220d168 DrawList: fixed using ImDrawFlags_UseTexForRoundCorners when ImFontAtlasFlags_NoBakedRoundCorners has also been set. ocornut 2026-07-30 14:48:28 +02:00
  • ca9305e304 DrawList: fixed dropping prim flags in some paths (most for ImDrawFlags_AAXXX flags). ocornut 2026-07-30 14:37:23 +02:00
  • 3bce489b7a DrawList: fixed filled rect baked AA. Mikko Mononen 2026-07-29 19:02:14 +03:00
  • b5ef1d837d 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
  • 1c71e07fa0 TabBar: simpify TabItem rendering using stroke flags. ocornut 2026-07-29 16:27:29 +02:00
  • 9aec6df4fd Checkbox, Menus: check marks use anti-aliased ends. ocornut 2026-07-29 15:02:15 +02:00
  • b67ced86c0 DrawList: support altering RoundCorners flags in scope as an undocumented trick/hack. (9489) ocornut 2026-07-29 14:16:21 +02:00
  • 691ea3ff6d DrawList: removed AddPolylineLegacy(), AddConvexPolyFilledLegacy(). ocornut 2026-07-28 18:29:52 +02:00
  • 5f7012f7ac DrawList: removed g_LEGACY_STROKES. ocornut 2026-07-28 18:27:36 +02:00
  • fe8acacdde DrawList: moved no-AA handling into _SelectFringeTexture(). ocornut 2026-07-28 19:01:43 +02:00
  • 4110aa1184 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
  • b3aee2d810 Docs: update changelog. ocornut 2026-07-28 16:16:54 +02:00
  • 4694b50924 DrawList: moved _GetStrokePos() to a local inline function. ocornut 2026-07-28 16:35:56 +02:00
  • fb9fd9a250 DrawList: added PushDrawFlag(), PopDrawFlag(), ImSmallStack_<> ocornut 2026-07-28 15:48:40 +02:00
  • 59014d15e7 DrawList: consistently support scope flags (ImDrawFlags::Flags) + primitive flags. ocornut 2026-07-28 11:24:48 +02:00
  • e925e453ee Demo: amend test bed to exercices more flags. ocornut 2026-07-27 19:17:37 +02:00
  • 7a54e76cd1 DrawList: comment about ImFontAtlasFlags_NoBakedLines. ocornut 2026-07-27 21:26:10 +02:00
  • d482fe328e (Breaking) Obsoleted style.AntiAliasedLinesUseTex which now only makes sense for legacy strokes. Added style.AntiAliasedLineEnds. ocornut 2026-07-27 21:41:18 +02:00
  • c52b050489 (Breaking) DrawList: removed ImDrawListFlags_in favor of using ImDrawFlags. ocornut 2026-06-08 12:48:52 +02:00
  • 2c5adecc11 DrawList: new ImDrawFlags API (yet unused in this commit) ocornut 2026-06-05 19:09:14 +02:00
  • 873afffd8f DrawList: inverted ImDrawFlags_NoAAEnds into ImDrawFlags_AAEnds. ocornut 2026-07-27 19:57:03 +02:00
  • f474f9cced DrawList: fixed warnings, added macro to facilitate visualizing rounded corner texture usage. ocornut 2026-07-27 19:35:30 +02:00
  • b35777c58d DrawList: Optimize AddNgon() Mikko Mononen 2026-06-15 22:23:38 +03:00
  • c8867c72dc DrawList: Optimize AddRectFilled() Mikko Mononen 2026-06-15 21:07:08 +03:00
  • 9549b6ff7e DrawList: Optimize _SelectFringeTexture() Mikko Mononen 2026-06-15 21:00:20 +03:00
  • 9e2b8914c9 DrawList: surround _GetStrokePos() in IM_MSVC_RUNTIME_CHECKS_OFF macro. ocornut 2026-06-05 18:37:52 +02:00
  • f9030f92af ImFontAtlas: moved TexUv buffers and configurable defines to internals. ocornut 2026-06-05 16:40:11 +02:00
  • 8c2d1befc6 DrawList: Added some comments and amended existing ones Mikko Mononen 2026-06-05 09:58:47 +03:00
  • 21930ad65c DrawList: Revert texture selection to simple round() in _SelectFringeTexture Mikko Mononen 2026-06-05 09:19:33 +03:00
  • fe6094886f DrawList: No AA ends when line AA is disabled Mikko Mononen 2026-06-04 15:57:43 +03:00
  • 4da24b1283 DrawList: merged _AddPolyline back into AddPolyline. Mikko Mononen 2026-06-04 11:17:16 +03:00
  • c4350c537e DrawList: removed vertex offset overflow (for 16-bit ImDrawIdx support) handling. Mikko Mononen 2026-06-04 11:13:40 +03:00
  • 34fdedfc53 DrawList: restored non-AA rendering mode. Mikko Mononen 2026-06-04 10:30:04 +03:00
  • 589c83aab9 DrawList: fixed overdraw of transparent rounded rectangles Mikko Mononen 2026-06-04 10:28:18 +03:00
  • 7a717a297c DrawList: fixed baked corners to better match polyline corners Mikko Mononen 2026-06-04 01:11:37 +03:00
  • 475c5dadcd DrawList: added macro to have consistent check for rounding Mikko Mononen 2026-06-04 00:57:20 +03:00
  • f25ae01030 Demo: added rounding slider+animate to allow better test range of rounding values. Mikko Mononen 2026-06-04 00:44:19 +03:00
  • 0ac31424b7 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
  • 13fd81acae DrawList: fixed reserve counts in _AddPolyline(). Mikko Mononen 2026-06-03 00:28:23 +03:00
  • 06909e07d7 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
  • 3cdeeb29ea 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
  • 6753fbdfa2 DrawList: added vertex offset 16-bit ImDrawIdx support for _AddPolyline Mikko Mononen 2026-06-02 16:37:36 +02:00
  • e6dad84769 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
  • 065c6c0d0a DrawList: fixed indices when AllowVtxOffset is on Mikko Mononen 2026-06-02 12:27:39 +03:00
  • 2974c9155f DrawList: Optimization: added specialized 2 point polyline _AddLine(). Mikko Mononen 2026-06-02 11:11:28 +03:00
  • b6d59d69aa DrawList: added _InvFringeScale to use in cases of 1/_FringeScale. Mikko Mononen 2026-06-02 10:05:54 +03:00
  • 35e6c8ba15 DrawList: minor render optimizations. Mikko Mononen 2026-06-02 09:52:26 +03:00
  • ed6f9fcfd1 DrawList: debug build optimizations. Mikko Mononen 2026-06-01 20:35:16 +03:00
  • e0530d81e1 DrawList: amends/review legacy stroke paths + minor tweaks. ocornut 2026-06-01 17:20:34 +02:00
  • 98f25f94aa DrawList: renamed ImDrawFlags_StrokeCenterAligned to ImDrawFlags_StrokeCenterBiased. ocornut 2026-06-01 17:20:17 +02:00
  • 19ff3b31d8 DrawList: Fixed vertex count calculation in_AddRectTinyRounding() Mikko Mononen 2026-05-29 16:08:49 +03:00
  • 87ff0ff8c2 DrawList: skip PathLineTo/PathStroke calls for common AddLine() functions. (4091) ocornut 2026-05-28 15:26:32 +02:00
  • 9f9fe6908b DrawList: fixed out of bounds access of baked corner based on thickness Mikko Mononen 2026-05-28 10:44:37 +03:00
  • 95f7865835 Docs: update changelog. ocornut 2026-05-19 16:07:47 +02:00
  • a980c1769a DrawList: use straight floats when possible in _AddRectTinyRounding(). ocornut 2026-05-26 21:15:55 +02:00
  • 5565bf2c1d DrawList: avoid using output references in _SelectFringeTexture() + misc tweaks, comments. ocornut 2026-05-26 21:05:00 +02:00
  • 51da1f5de6 DrawList: fixed thin lines appearing too bright. Mikko Mononen 2026-05-26 22:10:25 +03:00
  • 1f61cad3d6 DrawList: extend the detailed stroke textures up stroke thickness 4. Mikko Mononen 2026-05-26 17:37:50 +03:00
  • b753b9f1d8 DrawList: AddQuad() defaults to ImDrawFlags_StrokeInside. ocornut 2026-05-26 16:26:14 +02:00
  • f3632fc4b7 Demo: fixed using Miter/Square/NoAAends checkboxes interfering with stroke mode. warnings. ocornut 2026-05-26 16:25:55 +02:00
  • e30d8e7888 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
  • ac89e342e7 DrawList: improved shape drawing input validation for thin shapes and small thickness. Mikko Mononen 2026-05-26 15:48:28 +03:00
  • 7918bc0b58 DrawList: fixed and optimized _AddRectTinyRounding. Mikko Mononen 2026-05-25 10:40:13 +03:00
  • df7ece5869 DrawList: Textured Round Corners: use same array for fill and strokes. ocornut 2026-05-22 20:36:19 +02:00