Transparent window

Hallo,
Does anyone know how to make a sdl window transparent?

Thanks a lot!!

Dave
@Dave2

Hi Dave!

Does anyone know how to make a sdl window transparent?

This depends on your window manager. On X11 you can get display and window
information through

#include <SDL.h>
#include <SDL_syswm.h>
#include <SDL_version.h>

SDL_SysWMinfo info;
SDL_VERSION(&(info.version));
if ( 1 != SDL_GetWMInfo(&info) ) {
cerr << "Error getting WM info: " << SDL_GetError() << endl;
exit(1);
}.

The display is “info.info.x11.display”, the window “info.info.x11.wmwindow”.

Now you can use the X library calls. For transparent or translucent windows
you probably have to use the XRender extensions.

Kind regards,
Michael