jingwood / d2dlib

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

Add parameter to PushLayer for changing opacity #91

Closed AEAEAEAE4343 closed 1 year ago

AEAEAEAE4343 commented 1 year ago

It seems that the .NET export for PushLayer is not using the opacityBrush parameter that the C++ code already provides. I've added it in this PR so that you can make layers with different opacities (eg. not always opaque).

AEAEAEAE4343 commented 1 year ago

It seems I forgot to commit the rest of the code changes. Added them now.