To render with OpenGL into an
NSOpen, you must specify the context’s pixel format. An
NSOpen object specifies the types of buffers and other attributes of the
NSOpen. This class is similar to the
AGLPixel type, which is used in Carbon OpenGL applications.
- macOS 10.0+
NSOpen object wraps a low-level, platform-specific Core OpenGL (CGL) pixel format object. Your application can retrieve the CGL pixel format object by calling the
cgl method. For more information on the underling CGL pixel format object, see CGL.