Re: [GtkGLExt] stencil buffer



yeh, i am doing it that way now but i wondered if i could do it in
just one pass. this way could be described as "set stencil, draw quad,
get pixels, draw image", id like to jump the draw quad step.

anyway this is just curiosity, it works fine now :)


On Wed, 15 Sep 2004 12:25:25 -0600, Marcelo E. Magallon
<mmagallo debian org> 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.
> 
>  HTH,
> 
>  Marcelo
> _______________________________________________
> gtkglext-list mailing list
> gtkglext-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkglext-list
>



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