Mac OS X Reference Library Apple Developer Connection spyglass button

Version: 1.0

Posted: 2007-08-30

Build Requirements: Mac OS X 10.4, Xcode 2.4

Runtime Requirements: Mac OS X 10.4, QuickTime 7

View Source Code:

Download Sample Code (“OpenGLScreenCapture.zip”, 97.0K)



Description

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.

Document Revision History

Date Notes
2007-08-30 How to capture the screen on Mac OS X using OpenGL and save to a QuickTime movie.
Did this document help you? Yes It's good, but... Not helpful...