Daniel Godas wrote:
On Wed, Sep 15, 2004 at 07:45:04PM +0200, Daniel Godas wrote: > id like to use the data from the stencil buffer to generate a bitmap > mask for a gdkwindow (to change its shape), does anybody know how to > get this data? Tricky. Setup an appropiate stencil function after you have your stencil, and then draw a large monocromatico Quad, read the contexts of the color buffer with glReadPixels.
Why not read the data directly using glReadPixels() and format set to GL_STENCIL_INDEX?
Cheers, Tim