jingwood / d2dlib

A .NET library for hardware-accelerated, high performance, immediate mode rendering via Direct2D.
MIT License
245 stars 43 forks source link

Initial support for line segment start/end caps #56

Closed drewnoakes closed 3 years ago

drewnoakes commented 3 years ago

Relates to #55

D2D supports various line caps. This commit exposes those to users of the API so that values other than "flat" can be specified.

There are other draw methods for which this feature could be enabled (such as poly lines) that are not covered here.

This commit adds optional parameters to public API which is a breaking binary change, but a non-breaking source change.

jingwood commented 3 years ago

Added a test / demo for line cap drawing image

jingwood commented 3 years ago

@drewnoakes Thanks very much!

drewnoakes commented 3 years ago

Thanks. The test looks great too.

drewnoakes commented 3 years ago

@jingwood any chance of a new package? I'd like to consume this feature. It's not super urgent for me, but would be nice. I see there are 31 commits since the last release.

jingwood commented 3 years ago

@drewnoakes Thanks for the suggestion! The new packages of v1.3.1 have been released now.

drewnoakes commented 3 years ago

@jingwood wow, thanks for the fast release! Appreciate all your work on this library.