Contents

CGDisplayUsesOpenGLAcceleration(_:)

Returns a Boolean value indicating whether Quartz is using OpenGL-based window acceleration (Quartz Extreme) to render in a display.

Declaration

func CGDisplayUsesOpenGLAcceleration(_ display: CGDirectDisplayID) -> boolean_t

Parameters

  • display:

    The identifier of the display to be accessed.

Return Value

If true, Quartz Extreme is used to render in the specified display; otherwise, false.

Discussion

Quartz Extreme is an OpenGL-based, hardware-accelerated window compositor available in macOS 10.2 and later. Quartz Extreme requires a minimum hardware configuration to operate.

The information this function provides is typically used to adjust the demands of drawing operations to the capabilities of the display hardware. For example, an application running on an unaccelerated system could disable live window-resizing.

See Also

Functions