SFML community forums

Help => Window => Topic started by: BartekMaciag on December 21, 2013, 02:07:26 pm

Title: How make a transparent window in C++ ?
Post by: BartekMaciag on December 21, 2013, 02:07:26 pm
Hi !

I want to do a transparent window, in first I tried do window without border and titlebar well: sf::RenderWindow window(sf::VideoMode( 320, 240 ), " ", 0") after this I did okno.clear(sf::Color::Color(0,0,0,0)) but it didn't work out, simply black screen, do you have any ideas ? Bartek 
Title: Re: How make a transparent window in C++ ?
Post by: Laurent on December 21, 2013, 02:19:57 pm
This is not possible, you'll need OS specific functions to make your window transparent.
Title: AW: How make a transparent window in C++ ?
Post by: eXpl0it3r on December 21, 2013, 02:20:12 pm
SFML does not have such an option. If you want a transparent window, you'll need to do it yourself or search for the few similar topics on the forum. ;)