Advertisement

grabbing openGL rendering buffer into a GWorld in Mac Carbon C

Started by June 30, 2003 09:30 AM
-1 comments, last by jbv 21 years, 8 months ago
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