Instance Method


Returns the OpenGL pixel format suitable for rendering to the set of displays specified by the display mask.


func copyCGLPixelFormat(forDisplayMask mask: UInt32) -> CGLPixelFormatObj



The display mask the OpenGL content will be rendered on.


This method is called when a pixel format object is needed for the receiver. The default implementation returns a 32bpp fixed point pixelf format, with the NoRecovery and Accelerated flags set.

You should not call this method directly, it is intended to be overridden by subclasses.

See Also

Managing Pixel Format

func releaseCGLPixelFormat(CGLPixelFormatObj)

Releases the specified OpenGL pixel format object.


Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software