SFML community forums

Help => Window => Topic started by: zac on June 04, 2008, 08:35:07 pm

Title: Transperancy of RenderWindow
Post by: zac on June 04, 2008, 08:35:07 pm
Is there any way to make the background color of an RenderWindow invisible?
Title: Transperancy of RenderWindow
Post by: Kernelpanic on June 04, 2008, 09:54:26 pm
I am not sure, but try this:
Code: [Select]

YourRenderWindow.SetBackgroundColor(Color(0, 0, 255, 100));

Color is always a RGBa-color.
This should be transparent blue.

Edit:
Nett dich wiederzuentdecken, Zac. :)
"Jovycos"
Title: Transperancy of RenderWindow
Post by: Laurent on June 05, 2008, 11:10:11 am
What would you expect to see behind the background color ? ;)

If you're talking about making the whole window transparent, this is a feature which is too much OS-specific, and only supported on modern systems.
Title: Transperancy of RenderWindow
Post by: zac on August 04, 2008, 11:56:54 pm
Okay (this is what I thought, too), it is not THAT bad, by the way ;)