Contents

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