Function

CVDisplayLinkCreateWithOpenGLDisplayMask(_:_:)

Creates a display link from an OpenGL display mask.

Declaration

func CVDisplayLinkCreateWithOpenGLDisplayMask(_ mask: CGOpenGLDisplayMask, _ displayLinkOut: UnsafeMutablePointer<CVDisplayLink?>) -> CVReturn

Parameters

mask

The OpenGL display mask describing the available displays.

displayLinkOut

On output, displayLinkOut points to the newly created display link.

Return Value

A Core Video result code. See Core Video Constants for possible values.

Discussion

Using this function avoids having to call the Core Graphics function CGOpenGLDisplayMaskToDisplayID.