Instance Method

releaseCGLContext(_:)

Releases the specified rendering context.

Declaration

func releaseCGLContext(_ ctx: CGLContextObj)

Parameters

glContext

The rendering context to release.

Discussion

This method is called when the OpenGL context that was previously returned by copyCGLContext(forPixelFormat:) is no longer needed.

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

See Also

Managing the Rendering Context

func copyCGLContext(forPixelFormat: CGLPixelFormatObj) -> CGLContextObj

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

Deprecated

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