Contents

NSOpenGLContext

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

Declaration

class NSOpenGLContext

Overview

An OpenGL context is created using an NSOpenGLPixelFormatobject that specifies the context’s buffer types and other attributes. A context can be full-screen, offscreen, or associated with an NSView object. A context draws into its drawable object, which is the frame buffer that is the target of OpenGL drawing operations.

Every NSOpenGLContext object wraps a low-level, platform-specific Core OpenGL (CGL) context. Your application can retrieve the CGL context by calling the cglContextObj method. For more information on the underling CGL context, see CGL.

Topics

Creating Contexts

Managing the Current Context

Managing the Drawable Object

Flushing the Drawing Buffer

Context Parameter Handling

Working with Virtual Screens

Getting the CGL Context Object

Getting the Pixel Format

Getting the OpenGL Version

Constants

Initializers

See Also

Classes