nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: Re: Totally cool alpha blending is here with Microwindows
From: Greg Haerr
Date: Sun, 6 Feb 2000 10:22:57 -0700

: That looks really cool.  So out of curiosity, what happens when drawing
: occurs in a window that is "obscured" by a transparent window?

The window side of the translucent drawing algorithm is rather
complicated.  Basically, for every translucent window to be
drawn, all the windows underneath it need to be drawn, and the
results alpha-blended into it's drawing.  Then, afterwards, all
translucent windows (but not regular windows ABOVE each
translucent window need to be redrawn.  This needs to happen
for every translucent window affected by the original change.

So, to answer your question, the obscuring translucent window
needs to be redrawn after the lower translucent window finishes
drawing... ;-)  Now, the trick is, how to accomplish this in a single
offscreen graphics context with maximal clipping for no flicker... 
I'm working on it.

Regards,

Greg



nanogui@linuxhacker.org