Wilfried Zeise (zeise++at++uni-wuppertal.de)
Thu, 2 Apr 1998 09:16:09 +0200
First you have to select the color buffer source for the pixels with
glReadBuffer (GL_FRONT_LEFT, GL_FRONT_BACK, etc.).
With glReadPixels you can read the buffer values, with glDrawPixels you can
draw new values and with glCopyPixels you can copy a pixel rectangle to
another position.
The pixel formats you can use are e.g.:
- GL_RGB for the rgb values
- GL_RGBA for the rgba values
- GL_STENCIL_INDEX for the stencil buffer
- GL_DEPTH_COMPONENT for the depth buffer
etc.
Hope this helps.
Wilfried
Wilfried Zeise
University of Wuppertal
>Hi,
>
> Does anyone know how to modify the buffers (frame, z, stencil, etc) of
>a Performer channel/window. I want to do some post draw processing to the
frame
>buffer using OpenGL and I don't know how to access the buffers.
>
>--
>------------------------------------------------------------------------
>Alejandro Saez
>Software Engineer
>Silicon Chile S.A.
> Avda. Andres Bello 2777, Of. 602
>E-mail: asaez++at++silicon.cl Providencia
>Phone: +56 (2) 203 3371 Ext. 105 Santiago
>Fax: +56 (2) 203 3370 Chile
>------------------------------------------------------------------------
>=======================================================================
>List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:11 PDT