SFML community forums
Help => Window => Topic started by: Qix on September 25, 2012, 04:22:29 am
-
Is it possible to set the native windows window to WM_LAYERED and draw on the window transparently? As in, clearing the window with a transparent color.
-
Nop.
But you do it on your side: get the window handle (window.getSystemHandle()), and call SetWindowLong with GWL_EXSTYLE.
-
And that will allow me to draw on a transparent window?
-
I don't know how window transparency works. I thought you did, and just asked for a way to set the WM_LAYERED style ;)
So you should first read how window transparency works, and then see what problems need to be solved so that you can do it with a SFML window.
-
Ohhh I see what you mean. I'll give it a try; I've done graphics with transparent windows before using the native HDC system on Windows, but I didn't know if it was possible using OpenGL applications and such.
I'll give a try and let you know, Laurent ;)