The OpenGL context that the view uses to render its contents.
SDK
- macOS 10.8–10.14Deprecated
Framework
- Scene
Kit
Declaration
var openGLContext: NSOpen GLContext? { get set }
Discussion
If you use OpenGL for custom rendering (see the SCNShadable
, SCNNode
, and SCNScene
protocols), you can use this property to share OpenGL resources between the context used for rendering the scene and other OpenGL contexts your app uses. For details on sharing OpenGL resources, see Sharing Rendering Context Resources. (SceneKit automatically shares its own OpenGL resources between multiple SCNView
instances in your app as needed.)