Class

NSOpenGLLayer

A subclass of CAOpenGLLayer that is suitable for rendering OpenGL into layers.

Declaration

@interface NSOpenGLLayer : CAOpenGLLayer

Overview

Unlike CAOpenGLLayer, NSOpenGLLayer uses AppKit types.

Topics

Drawing the Content

- canDrawInOpenGLContext:pixelFormat:forLayerTime:displayTime:

Invoked to ask the layer whether it can (or should) draw.

- drawInOpenGLContext:pixelFormat:forLayerTime:displayTime:

Draws the OpenGL content for the specified time.

Managing the Pixel Format

openGLPixelFormat

Provides access to the layer's associated NSOpenGLPixelFormat.

- openGLPixelFormatForDisplayMask:

Returns the OpenGL pixel format suitable for the specified displays.

Managing the Rendering Context

openGLContext

The layer’s NSOpenGLContext.

- openGLContextForPixelFormat:

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

Accessing the Associated View

view

Returns the view associated with the layer.

Relationships

Inherits From

See Also

OpenGL

NSOpenGLContext

An object that represents an OpenGL graphics context, into which all OpenGL calls are rendered.

Deprecated
NSOpenGLPixelBuffer

An object that provides access to accelerated offscreen rendering.

Deprecated
NSOpenGLPixelFormat

An object that specifies the types of buffers and other attributes of the NSOpenGLContext.

Deprecated
NSOpenGLGlobalOption

These constants are option names for NSOpenGLSetOption and NSOpenGLGetOption.

Deprecated
NSOpenGLGetOption

Returns global OpenGL options.

Deprecated
NSOpenGLGetVersion

Returns the NSOpenGL version numbers.

Deprecated
NSOpenGLSetOption

Sets global OpenGL options.

Deprecated