Instance Method

copyCGLContextForPixelFormat:

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

Declaration

- (CGLContextObj)copyCGLContextForPixelFormat:(CGLPixelFormatObj)pf;

Parameters

pixelFormat

The pixel format for the rendering context.

Return Value

A new CGLContext with renderers for pixelFormat.

Discussion

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

- releaseCGLContext:

Releases the specified rendering context.

Deprecated