Browse Source

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 5 years ago
committed by ocornut
parent
commit
9a506c186b
  1. 824
      imgui_draw.cpp

824
imgui_draw.cpp

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