openGLPixelFormat(forDisplayMask:)
Returns the OpenGL pixel format suitable for the specified displays.
Declaration
func openGLPixelFormat(forDisplayMask mask: UInt32) -> NSOpenGLPixelFormatParameters
- mask:
A mask specifying the displays the returned Nsopenglpixelformat must be suitable for.
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.