Nilirad / bevy_prototype_lyon

Draw 2D shapes in Bevy
Apache License 2.0
702 stars 87 forks source link

Improve ergonomics of DrawMode #162

Closed SUPERCILEX closed 1 year ago

SUPERCILEX commented 2 years ago

It's currently very annoying to update DrawMode because you need to do something if the enum variant doesn't match your expectations even though you know the variant can only ever be X. A better design IMO is to delete DrawMode and turn FillMode + StrokeMode into components. This naturally expresses the idea that they can be ORed together.