bevy_prototype_lyon icon indicating copy to clipboard operation
bevy_prototype_lyon copied to clipboard

Improve ergonomics of DrawMode

Open SUPERCILEX opened this issue 3 years ago • 0 comments

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.

SUPERCILEX avatar Jun 07 '22 21:06 SUPERCILEX