Open xTibor opened 2 years ago
egui currently doesn't support rendering concave polygons, so egui_extras_xt have to use the convex polygon rendering methods with some hacks to render concave polygons. Remove these workarounds when egui gets support for rendering concave polygons.
egui
egui_extras_xt
https://github.com/emilk/egui/issues/513
Affected places and hacks:
WidgetShape::paint_shape
WidgetShape::paint_arc
CompassMarkerShape::Star
SegmentedDisplayWidget::ui
egui
currently doesn't support rendering concave polygons, soegui_extras_xt
have to use the convex polygon rendering methods with some hacks to render concave polygons. Remove these workarounds whenegui
gets support for rendering concave polygons.https://github.com/emilk/egui/issues/513
Affected places and hacks:
WidgetShape::paint_shape
: manual tessalation with two-stage renderingWidgetShape::paint_arc
: manual tessalation with two-stage rendering, additional special case for misrendered degenerate polygonsCompassMarkerShape::Star
: no hacks, broken polygons are barely visible at small sizesSegmentedDisplayWidget::ui
: manually reordered segment vertices to avoid visible artifacts