Instance Method


Releases the specified OpenGL pixel format object.


func releaseCGLPixelFormat(_ pf: CGLPixelFormatObj)



The pixel format object to release.


This method is called when the OpenGL pixel format that was previously returned by copyCGLContext(forPixelFormat:).

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

See Also

Managing Pixel Format

func copyCGLPixelFormat(forDisplayMask: UInt32) -> CGLPixelFormatObj

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


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