QCRenderer class is designed for low-level rendering of Quartz Composer compositions. This is the class to use if you want to be in charge of rendering a composition to a specific OpenGL context—either using the
NSOpen class or a CGLContextObj object.
QCRenderer also allows you to load, play, and control a composition.
- macOS 10.4–10.15Deprecated
To render a composition to a specific OpenGL context:
Create an instance of
QCRendererusing one of the initialization methods, such as
GLContext: pixel Format: file:)
Render frames by calling the method
If you use double buffering in OpenGL, you must swap the OpenGL buffers.
Release the renderer when you no longer need it.
This code snippet shows how to implement these tasks: