SFML community forums
Help => General => Topic started by: Ninjasturm on November 05, 2010, 08:43:04 pm
-
Hello Community,
how can i clear the background transparency.
-
Which transparency? The one of an image or the window? If it's the window then it's easy with a:
window.Clear();
-
when i call clear it only clears my screen to a black color.
i tried sf::renderwindow::clear(sf::color(0,0,0,0)) but it doesn't works
-
when i call clear it only clears my screen to a black color.
And what do you want exactly?
i tried sf::renderwindow::clear(sf::color(0,0,0,255)) but it doesn't works
sf::Color(0, 0, 0, 255) is black.
-
I want to see my desktop, is this possible?
-
Of course not. SFML can handle transparency inside the target window, but not make the window itself transparent. This must be done with special OS functions.
-
Ok, thanks.