CGGetDisplaysWithOpenGLDisplayMask(_:_:_:_:)
Provides a list of displays that corresponds to the bits set in an OpenGL display mask.
Declaration
func CGGetDisplaysWithOpenGLDisplayMask(_ mask: CGOpenGLDisplayMask, _ maxDisplays: UInt32, _ displays: UnsafeMutablePointer<CGDirectDisplayID>?, _ matchingDisplayCount: UnsafeMutablePointer<UInt32>?) -> CGErrorParameters
- mask:
An OpenGL display mask that identifies one or more displays.
- maxDisplays:
The size of the
displaysarray. This value determines the maximum number of displays the list includes. - displays:
A pointer to storage you provide for an array of display IDs. On return, the array contains a list of displays that corresponds to the bits set in the mask. If you pass
NULL, on return the display count contains the total number of displays specified in the mask. - matchingDisplayCount:
A pointer to a display count variable you provide. On return, the display count contains the actual number of displays the function added to the
displaysarray. This value is at mostmaxDisplays.
Return Value
A result code. To interpret the result code, see CGError.
See Also
Functions
CGAcquireDisplayFadeReservation(_:_:)CGAssociateMouseAndMouseCursorPosition(_:)CGBeginDisplayConfiguration(_:)CGCancelDisplayConfiguration(_:)CGCaptureAllDisplays()CGCaptureAllDisplaysWithOptions(_:)CGCompleteDisplayConfiguration(_:_:)CGConfigureDisplayFadeEffect(_:_:_:_:_:_:)CGConfigureDisplayMirrorOfDisplay(_:_:_:)CGConfigureDisplayMode(_:_:_:)CGConfigureDisplayOrigin(_:_:_:_:)CGConfigureDisplayStereoOperation(_:_:_:_:)CGConfigureDisplayWithDisplayMode(_:_:_:_:)CGCursorIsDrawnInFramebuffer()CGCursorIsVisible()