OpenGLCaptureToMovie

Last Revision:
Version 1.0, 2007-08-30
How to capture the screen on Mac OS X using OpenGL and save to a QuickTime movie.
Build Requirements:
Mac OS X 10.4, Xcode 2.4
Runtime Requirements:
Mac OS X 10.4, QuickTime 7

Demonstrates how to capture the screen on Mac OS X using OpenGL. The sample shows how to grab frames using asynchronous texture fetching, a technique which is more complicated but offers better performance than synchronous capture using glReadPixels.

When performing asynchronous texture fetching, the resulting capture is saved to a movie file. Compression of the actual frames for the destination movie file is performed simultaneously with the capture but on a separate thread for better performance.