Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparency #17

Open
LoganDark opened this issue Jun 14, 2022 · 2 comments
Open

Transparency #17

LoganDark opened this issue Jun 14, 2022 · 2 comments
Labels
enhancement New feature or request Needs Design Work
Milestone

Comments

@LoganDark
Copy link

Right now, softbuffer seems to completely ignore the alpha channel. It would be nice if this was supported.

@i509VCB
Copy link
Contributor

i509VCB commented Jan 1, 2023

A transparency hint would be useful in the Wayland backend, as we could tell the compositor about the window content being opaque (using the Xrgb8888 format) and let the compositor apply some optimizations for rendering.

@ids1024
Copy link
Member

ids1024 commented Jan 1, 2023

In addition to a way to set this, it would be good to have an API to test if it's supported. On Wayland RGBA and RGBX should always be, but I think this may not be true on others?

What kind of API would be suitable here? A set_alpha() method? supports_alpha()? Maybe there's a better way to name it.

This becomes a lot more complicated if we wanted to support formats other than RGBA/RGBX.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs Design Work
Development

No branches or pull requests

4 participants