View Full Version : Transparent Child Window

09-26-2002, 05:59 PM
I'm trying to find out how to implement a transparent child window in opengl. You know, like in some of the games that are out now. The child window is dark...smaller, but transparent and on top of the main (full screen) window.
Could someone please point me in the right direction...maybe provide a little code example?

[This message has been edited by NasMan (edited 09-26-2002).]

09-26-2002, 08:15 PM
Here's the simplest way to do it:

1) draw scene
2) turn off depth buffer
3) turn on blending and set blend alpha to 0.5
4) draw window-sized quad with window-sized texture in it