Contents

init(cglContext:pixelFormat:colorSpace:composition:)

Creates a renderer object with a CGLContextObj object, a pixel format, a color space, and a composition object.

Declaration

init!(cglContext context: CGLContextObj!, pixelFormat format: CGLPixelFormatObj!, colorSpace: CGColorSpace!, composition: QCComposition!)

Parameters

  • context:

    A CGLContextObj object. The object that you supply must have both a color and a depth buffer.

  • format:

    A CGLPixelFormatObj object.

  • colorSpace:

    A Quartz color space object. This must be an RGB color space. Pass NULL to use the default RGB color space. For more information on Quartz color spaces, see TP30001066.

  • composition:

    A Qccomposition object.

Return Value

The initialized QCRenderer object or nil if initialization is not successful.

See Also

Creating and Initializing a Renderer