Contents

CVDisplayLinkCreateWithCGDisplay(_:_:)

Creates a display link for a single display.

Declaration

func CVDisplayLinkCreateWithCGDisplay(_ displayID: CGDirectDisplayID, _ displayLinkOut: UnsafeMutablePointer<CVDisplayLink?>) -> CVReturn

Parameters

  • displayID:

    The Core Graphics ID of the target display.

  • 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

Use this call to create a display link for a single display. For more information on the display identifier type, see CGDirectDisplayID.

See Also

Creating Display Links