I've built SDL2 directly from the Github source. OK, initially I've tried their provided test shape example from the "tests" folder, I was able to compile it and ... "segmentation fault" on the PI. Same code can be compiled and runs an OS X but there is no transparency effect, just the shapes are drawn on the screen surrounded by a black background.
That being said, pi3d lets you use a transparent window background both in the PI framebuffer (no X) and under X, I've played with some of their demos. So, technically, you can have transparent backgrounds on Pi. I was able to run a movie under one of the pi3d demos and it works.
By jlnr (dev)
Date 2015-01-18 21:06
Interesting! I didn't expect this to be possible after my short trip into Raspberry Pi land.
If you want to see this feature in Gosu, you can lobby to get it fixed in SDL 2 and I'll add a short wrapper in Gosu. Window#shape=(image)
or such. But only if it works on at least one platform :)
By knugie
Date 2017-03-25 15:17
Hey JeanC, I'm trying to do something something very similar. Could you share some example code how you made a transparent window? Also now (two years later), how would you approach that today? Thanks.