Instance Method

openGLContextForPixelFormat:

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

Declaration

- (NSOpenGLContext *)openGLContextForPixelFormat:(NSOpenGLPixelFormat *)pixelFormat;

Parameters

pixelFormat

The pixel format.

Return Value

An autoreleased NSOpenGLContext.

See Also

Managing the Rendering Context

openGLContext

The layer’s NSOpenGLContext.

Deprecated