Contents

init(openGLContext:pixelFormat:file:)

Creates a renderer object with an NSOpenGLContext object and a composition file.

Declaration

init!(openGLContext context: NSOpenGLContext!, pixelFormat format: NSOpenGLPixelFormat!, file path: String!)

Parameters

  • context:

    An Nsopenglcontext object. The object that you supply must have both a color and a depth buffer.

  • format:

    An Nsopenglpixelformat object.

  • path:

    A string that specifies the location of a composition(.qtz) file.

Return Value

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

See Also

Creating and Initializing a Renderer