Contents

NSOpenGLView

A view that displays OpenGL content in a view.

Declaration

class NSOpenGLView

Overview

An NSOpenGLView object maintains an NSOpenGLPixelFormat and NSOpenGLContext object into which OpenGL calls can be rendered. The view provides methods for accessing and managing the NSOpenGLPixelFormat and NSOpenGLContext objects, as well as notifications of visible region changes.

An NSOpenGLView object cannot have subviews. You can, however, divide a single NSOpenGLView into multiple rendering areas using the glViewport function.

When creating an NSOpenGLView object in Interface Builder, you use the inspector window to specify the pixel format attributes you want for the view. Only those attributes listed in the Interface Builder inspector are set when the view is instantiated.

Topics

Initializing an NSOpenGLView

Managing the NSOpenGLPixelFormat

Managing the NSOpenGLContext

Managing the Visible Region

Extended Dynamic Range

Instance Properties

See Also

Classes