PistonDevelopers / piston

A modular game engine written in Rust
https://www.piston.rs
MIT License
4.62k stars 234 forks source link

piston::window doesn’t support the `transparent` attribute #1338

Closed ticky closed 4 years ago

ticky commented 4 years ago

I’m attempting to build a floating window whose background is transparent. It looks like the underlying windowing implementation would support this across Windows, Mac and Linux, however, piston doesn’t expose enough of the window attributes from WindowSettings to enable this feature.

The underlying feature seems relatively straightforward to add, presumably by adding a field matching this one to piston::window::WindowSettings and plumbing it through to glutin_window.

Is this functionality which has been deliberately excluded, or would a set of PRs adding this to the requisite components be something you’re interested in?

bvssvni commented 4 years ago

I agree, this window setting should be added. PRs are welcome!

gcstr commented 3 years ago

Although I can see that this setting is now exposed, it doesn't seem to work for me https://github.com/PistonDevelopers/piston_window/issues/288 Is there any other setting required?

StevenLu2004 commented 2 years ago

The PR (PistonDevelopers/piston/pull/1345) doesn't implement the settings for any of the window backends tho. It literally only adds a field to WindowSettings which doesn't even get read in the GlutinWindow::new() source.