You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if supporting pixel formats other than 0RGB would be out of the scope of this library. I am currently using this library to prototype something that requires support for an alpha channel, and having this available in the windowing library would be very useful.
I see discussion about this in #101, but would like to clarify thoughts here. Would you be open to a PR implementing this for POSIX?
I think the ideal API would be to have the format specifiable in minifb::WindowOptions, but that would be a breaking change. Do you have other thoughts for how/where this should be implemented?
The text was updated successfully, but these errors were encountered:
It depends a bit on what you want the alpha channel to do. In this PR #164 it makes it possible (on some OSes) that the alpha will blend towards the background of the screen (i.e a transparent window)
I had a bit of a play with different color formats backed by u32s in a library I wrote a little while back. It introduces a Storage trait that can be implemented to pack/unpack the RGBA values. The idea might be relevant here.
Hello,
I am wondering if supporting pixel formats other than 0RGB would be out of the scope of this library. I am currently using this library to prototype something that requires support for an alpha channel, and having this available in the windowing library would be very useful.
I see discussion about this in #101, but would like to clarify thoughts here. Would you be open to a PR implementing this for POSIX?
I think the ideal API would be to have the format specifiable in
minifb::WindowOptions
, but that would be a breaking change. Do you have other thoughts for how/where this should be implemented?The text was updated successfully, but these errors were encountered: