grabbing openGL rendering buffer into a GWorld in Mac Carbon C
Hi,
In carbon C, I''m trying to grab a rendered image in openGL into a Gworld using glReadPixels.
I know how to create the Gworld, draw into it with Quickdraw, make in current, etc.
The only thing I''m missing is how to copy the pixels from the openGL buffer into the Gworld, and therefore need the small portion of code to achieve this. Intense google search didn''t bring any useable example...
I managed to do it under Windows (with glReadPixels and a DIB) and would like to achieve the same in MacOS.
Thanks in advance,
jbv
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement