Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Relevant replacement documents include:
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.
Copyright © 2007 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2007-08-30