Re: [GtkGLExt] stencil buffer



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.

 HTH,

 Marcelo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]