A layer that provides a layer suitable for rendering OpenGL content.
SDKs
- macOS 10.5–10.14Deprecated
- Mac Catalyst 13.0–13.0Deprecated
Framework
- Core Animation
Declaration
@interface CAOpenGLLayer : CALayer
Overview
To provide OpenGL content you subclass CAOpen
and override draw
. You can specify that the OpenGL content is static by setting the asynchronous
property to NO
.