Contents

openGLPixelFormat(forDisplayMask:)

Returns the OpenGL pixel format suitable for the specified displays.

Declaration

func openGLPixelFormat(forDisplayMask mask: UInt32) -> NSOpenGLPixelFormat

Parameters

Return Value

An autoreleased NSOpenGLPixelFormat object suitable for the displays.

Discussion

You must include an NSOpenGLPFAScreenMask specification in the pixel format attribute list that’s used to instantiate the NSOpenGLPixelFormat.

See Also

Managing the Pixel Format