A GLX Pixmap question

A GLX Pixmap question

Post by el_lla.. » Sat, 22 May 1999 04:00:00



I'm rendering offscreen, and i'd like to get
the RGB buffer in an array, in order to read it
later.

Am i obliged to allocate such as:

GLvoid *buffer;
buffer = (GLvoid *) malloc(XRes * YRes *3);

and then
glReadPixels(0, 0, XRes, YRes, GL_RGB,
GL_UNSIGNED_BYTE, (GLvoid *) buffer);

which is too slow, or is it possible to get the
color buffer grace to the pixmap ?

Any help would be greatly appreciated.

--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---