Gizmo: support drawing contrasting shapes a generic backdrop
authorCampbell Barton <ideasman42@gmail.com>
Fri, 22 Nov 2019 06:18:52 +0000 (17:18 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 22 Nov 2019 06:18:52 +0000 (17:18 +1100)
commit66297cc26b5982492900064cbd48335e49a2a6db
tree561b7a4a760be1fdf0ffc069bd9aff163adecb9a
parent35f2e4a35c32acafaa4c1a7f7d639536e87487ff
Gizmo: support drawing contrasting shapes a generic backdrop

Previously the only way to draw polygon shapes from buttons
was to use a polygon that included the circular outline
with negative space for the un-filled areas.

This didn't always have visibility, especially when the gizmo was
overlaying colors that didn't contrast much.

Support drawing a generic backdrop with a polygon shape over it.
source/blender/editors/gizmo_library/gizmo_types/button2d_gizmo.c