Version: 1.0

Posted: 2008-06-06

Build Requirements: Xcode 3.x

Runtime Requirements: Leopard 10.5.x

View Source Code:

Download Sample (“”, 1.10M)
Download Sample (“QTCoreVideo102.dmg”, 1.09M)


QTCoreVideo102 is a Cocoa application demonstrating how to render a QuickTime Movie using OpenGL and the Core Video texture pipeline.

This application is the first in a series of applications demonstrating the synergy between QTKit, CoreVideo, and OpenGL.

QTCoreVideo102 advances the QTCoreVideo101 sample by introducing several reusable classes that make working with QuickTime Visual Context rendering and OpenGL Views easier and more flexible.

Base Classes:

• OpenGLViewKit - Allows you to work with OpenGLViews, interact with objects in 3D space.

• QTCoreVideoController - Request broker between the OpenGL models and the OpenGL views.

• MemObject - Memory container class.

• AlertPanelKit - Utility class for displaying alerts.

Derived Classes:

• QTCoreVideoOpenGLView - Derived from OpenGLViewKit, concrete view class.

• QTVisualContextKit - Utility class for maintaining Core Video PixelBuffer and Core Video OpenGL textures.

• OpenGLQuad - Allows you to instantiate a Quad object as a display list.

• OpenGLTeapot - Allows you to instantiate a Teapot object as a display list.

• OpenGLTeapotTextured - Derived from OpenGLTeapot maintains a texture associated with a Teapot surface.

These classes will be used throughout the series of samples - QTCoreVideo103, QTCoreVideo201, QTCoreVideo202, and QTCoreVideo301.

Document Revision History

Date Notes
2008-06-06An application demonstrating the use of QTKit, CoreVdeo, and OpenGL.

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.