I'm rendering offscreen, and i'd like to get
the RGB buffer in an array, in order to read it
Am i obliged to allocate such as:
buffer = (GLvoid *) malloc(XRes * YRes *3);
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.---