Contents

CGDisplayIDToOpenGLDisplayMask(_:)

Maps a display ID to an OpenGL display mask.

Declaration

func CGDisplayIDToOpenGLDisplayMask(_ display: CGDirectDisplayID) -> CGOpenGLDisplayMask

Parameters

  • display:

    The display ID to be converted.

Return Value

The OpenGL display mask that corresponds to the specified display.

Discussion

OpenGL sometimes identifies a display using a bitmask with one bit set. This function maps a display ID to the corresponding OpenGL display mask.

See Also

Functions