Using X transparency with SDL

Hi All,

Is it possible to somehow somehow mess around with SDL’s window creation
code so they support transparency?

My last resort is recompiling SDL with extra API, but yeah…

I’m on linux (X11).

Cheers–


Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com
@Yose_Widjaja


To add to my question: Is it possible to make your own window in x11, and
attach SDL’s surface into it? While preserving the input?

Any pointers to where I should look at would be greatly appreciated…

CheersOn Mon, Mar 8, 2010 at 11:41 AM, Yose Widjaja <@Yose_Widjaja> wrote:

Hi All,

Is it possible to somehow somehow mess around with SDL’s window creation
code so they support transparency?

My last resort is recompiling SDL with extra API, but yeah…

I’m on linux (X11).

Cheers


Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com
@Yose_Widjaja



Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com
@Yose_Widjaja


You can actually do that with an env variable from a shell, amusingly enough - someone tried making SDL take over an xterm, somewhat successfully (input was not working as I recall, but that was
probably fixable).

The env variable is SDL_WINDOWID, so maybe searching for this will lead you to an appropriate spot in the SDL code to learn about it.On 03/07/2010 04:47 PM, Yose Widjaja wrote:

To add to my question: Is it possible to make your own window in x11,
and attach SDL’s surface into it? While preserving the input?

Any pointers to where I should look at would be greatly appreciated…

Cheers

On Mon, Mar 8, 2010 at 11:41 AM, Yose Widjaja <yose at jormy.com <mailto:yose at jormy.com>> wrote:

Hi All,

Is it possible to somehow somehow mess around with SDL's window
creation code so they support transparency?

My last resort is recompiling SDL with extra API, but yeah..

I'm on linux (X11).

Cheers

-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- --
Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com <http://www.jormy.com>
yose at jormy.com <mailto:yose at jormy.com>
-- -- -- -- -- -- -- -- -- -- -- -- -- --


Yose Widjaja
Supreme Emperor @ Jormy Games
www.jormy.com http://www.jormy.com
yose at jormy.com <mailto:yose at jormy.com>



SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


LordHavoc
Author of DarkPlaces Quake1 engine - http://icculus.org/twilight/darkplaces
Co-designer of Nexuiz - http://alientrap.org/nexuiz
"War does not prove who is right, it proves who is left." - Unknown
"Any sufficiently advanced technology is indistinguishable from a rigged demo." - James Klass
"A game is a series of interesting choices." - Sid Meier