Instance Method

openGLContext(for:)

Returns the OpenGL context to use for the requested pixel format.

Declaration

func openGLContext(for pixelFormat: NSOpenGLPixelFormat) -> NSOpenGLContext

Parameters

pixelFormat

The pixel format.

Return Value

An autoreleased NSOpenGLContext.

See Also

Managing the Rendering Context

var openGLContext: NSOpenGLContext?

The layer’s NSOpenGLContext.

Deprecated