Instance Property

openGLContext

The OpenGL context that the view uses to render its contents.

Declaration

@property(nonatomic, retain) NSOpenGLContext *openGLContext;

Discussion

If you use OpenGL for custom rendering (see the SCNShadable, SCNNodeRendererDelegate, and SCNSceneRendererDelegate 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.)

See Also

Working with a View’s OpenGL Context

pixelFormat

The view’s OpenGL pixel format.

Deprecated