SFML community forums
Help => General => Topic started by: 6Peppered9 on May 14, 2021, 11:25:33 am
-
Hello,
3 years ago i posted a question how to make the window background transparent.
link: https://en.sfml-dev.org/forums/index.php?topic=24697.msg165592#msg165592 (https://en.sfml-dev.org/forums/index.php?topic=24697.msg165592#msg165592)
The user "texus" hacked some code in the SFML source to work around.
This works fine on Intel GPUs, but on Nvidia GPUs it seems that everything (colors, textures, etc) is drawing with an alpha channel and looks semi transparent
Is there a way to fix this?
I'm not familiar with the xlib API but it i think it can be a problem in the nvidia driver.
My 2 question is how other libs like qt or gtk do this?
And why is there not the possibility to create transparent windows in SFML?
-
Note in the linked post there are two different scenarios, one is for only the background to be transparent and the other is for everything in the window to be transparent. Make sure you use the correct version.
I personally feel like it's a gimmick without a lot use, but if anyone can provide a proper implementation and API design, then I would certainly consider add it to SFML.