SFML community forums

Help => Graphics => Topic started by: Contadotempo on February 09, 2011, 05:35:16 pm

Title: Changing global alpha (Transparency)
Post by: Contadotempo on February 09, 2011, 05:35:16 pm
Hello,
Is it possible to change the global alpha/transparency of all the contents on the window at once or do I have to change it individually for each object?

I tried using sf::RenderWindow::Clear(sf::Color(255,255,255,0)) but I believe that only changes the background settings with which the screen is cleared.

Thanks in advance  :)
Title: Changing global alpha (Transparency)
Post by: Laurent on February 09, 2011, 05:41:17 pm
There's no easier way than changing it for every object, except if you use SFML 2.
Title: Changing global alpha (Transparency)
Post by: Contadotempo on February 09, 2011, 05:55:00 pm
I'm still using SFML 1.6  but that's fine no big deal.
Thanks for the flash-like fast reply!