Apha window

Is it possible to make a window with alpha channel (we can see the desktop
windows in certain area).
I want to draw opengl stuff and see through it.

“alex” <alexandre.lautie at wanadoo.fr> wrote:

Is it possible to make a window with alpha channel (we can see the desktop
windows in certain area).

No. While this might be implementable on some platforms, it does not
belong in SDL

I want to draw opengl stuff and see through it.

then SDL may not be what you are looking for

“alex” <alexandre.lautie at wanadoo.fr> wrote:

Is it possible to make a window with alpha channel (we can see the desktop
windows in certain area).

No. While this might be implementable on some platforms, it does not
belong in SDL

Didn’t I see SDL_console recently. I believe it has something
like a transparent stdout/in window.On Thu, Oct 25, 2001 at 10:02:41AM +0200, Mattias Engdeg?rd wrote:

I want to draw opengl stuff and see through it.

then SDL may not be what you are looking for


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


Chris Christoph P. U. Kukulies kuku at gil.physik.rwth-aachen.de

It’s possible to set the “full surface alpha” for windows in Win2k, but I
don’t think there’s a full alpha channel.

And either way, Win2k is the only platform I know of that has such a
feature, so it’s not very likely it will show up in SDL, at least not in
the next few years…

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -'On Thursday 25 October 2001 00:58, alex wrote:

Is it possible to make a window with alpha channel (we can see the
desktop windows in certain area).
I want to draw opengl stuff and see through it.

www.directfb.org

directfb has this feature…On Thu, Oct 25, 2001 at 10:41:19PM +0200, David Olofson wrote:

On Thursday 25 October 2001 00:58, alex wrote:

Is it possible to make a window with alpha channel (we can see the
desktop windows in certain area).
I want to draw opengl stuff and see through it.

It’s possible to set the “full surface alpha” for windows in Win2k, but I
don’t think there’s a full alpha channel.

And either way, Win2k is the only platform I know of that has such a
feature, so it’s not very likely it will show up in SDL, at least not in
the next few years…

//David Olofson — Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
----------------------------> http://www.linuxdj.com/maia -' .- David Olofson -------------------------------------------. | Audio Hacker - Open Source Advocate - Singer - Songwriter |-------------------------------------> http://olofson.net -’


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Actually, new versions of XFree have an alpha feature, as well as Win2k/XP.
You can not use SDL’s alpha blitting capabilities, but you can use the alpha
feature of every graphical system independently with #ifdefs.
To see the alpha channel feature in windows, try selecting some icons in
explorer (eg. in my computer) and then dragging them. You’ll see how distant
icons are very transparent, while the closer ones are more visible.
In XFree, I believe QT2 used the alpha feature to simulate antialiasing of
fonts.

So this is one option to consider…

The second option, I would suggest (faster too), is to take a screenshot of
what’s behind and then blit on it using SDL/OpenGL transparency. The bad thing
here, is that if something moves in the desktop, it will not be updated in the
windows. Some terminals in linux make use of this technique.

In short, what you want is very possible, but not using SDL’s features
(thankfully…).

thanks for your help, I have tried to copy the back of the widow and copy
it on the sl surface, but I can’t know the position of the window if we move
it.
I will use a platform specifique way to do it (even if i have to do it on
linux too).