NSOpenGL
classes and Core OpenGL (CGL) API also provide some additional controls for how OpenGL operates on that context. See OpenGL APIs Specific to OS X for more information. Finally, this layer also includes the OpenGL libraries—GL, GLU, and GLUT. (See Apple-Implemented OpenGL Libraries for details.)NSOpenGL
classes and the CGL API. Throughout this document, these APIs are referred to as the Apple-specific OpenGL APIs.NSOpenGLContext
class implements a standard OpenGL rendering context.NSOpenGLPixelFormat
class is used by an application to specify the parameters used to create the OpenGL context.NSOpenGLView
class is a subclass of NSView
that uses NSOpenGLContext
and NSOpenGLPixelFormat
to display OpenGL content in a view. Applications that subclass NSOpenGLView
do not need to directly subclass NSOpenGLPixelFormat
or NSOpenGLContext
. Applications that need customization or flexibility, can subclass NSView
and create NSOpenGLPixelFormat
and NSOpenGLContext
objects manually.NSOpenGLLayer
class allows your application to integrate OpenGL drawing with Core Animation.NSOpenGLPixelBuffer
class provides hardware-accelerated offscreen drawing.NSOpenGL
classes. CGL offers the most direct access to system functionality and provides the highest level of graphics performance and control for drawing to the full screen. CGL Reference provides a complete description of this API.glReadPixels
, glCopyPixels
, and glCopyTexImage2D
.