Texture-based round corners: Fixed not drawing correctly with small radii

Combined filled/outline arc textures into one texture rectangle per radius
Made rounded rectangles/circles draw using (moderately) tight-fitting geometry to minimise fill-rate usage
Hooked up texture-based rounded rectangle/circle code to main render path, with fallback to stroke system
Made AddCircleFilled/AddCircle explicitly not draw circles of radius 0 or less (to avoid inconsistency between them)
Fixed bug in PrimReserve() where releasing more vertices/indices than you used would try and immediately render the entire buffer
features/tex_round_corners
Ben Carter ago%!(EXTRA string=6 years) committed by ocornut
parent acdfb18d21
commit 20f1feca02
  1. 888
      imgui_draw.cpp

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save