Instance Method


Returns the rendering context the receiver requires for the specified pixel format.


func copyCGLContext(forPixelFormat pf: CGLPixelFormatObj) -> CGLContextObj



The pixel format for the rendering context.

Return Value

A new CGLContext with renderers for pixelFormat.


This method is called when a rendering context is needed by the receiver. The default implementation allocates a new context with a null share context.

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

See Also

Managing the Rendering Context

func releaseCGLContext(CGLContextObj)

Releases the specified rendering context.


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