Instance Property

openGLPixelFormat

Provides access to the layer's associated NSOpenGLPixelFormat.

Declaration

var openGLPixelFormat: NSOpenGLPixelFormat? { get set }

Discussion

Subclasses shouldn't invoke setOpenGLPixelFormat:, but can override it if desired to intercept assignment of the layer's pixel format.

See Also

Managing the Pixel Format

func openGLPixelFormat(forDisplayMask: UInt32) -> NSOpenGLPixelFormat

Returns the OpenGL pixel format suitable for the specified displays.

Deprecated