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 (“OpenGLScreenCapture.zip”, 97.0K)
Download Sample (“OpenGLScreenCapture.dmg”, 139.3K)



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: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.