Instance Property

renderingAPI

The graphics technology SceneKit uses to render the scene.

Required.

Declaration

@property(nonatomic, readonly) SCNRenderingAPI renderingAPI;

Discussion

You choose a graphics technology when initializing a scene renderer:

  • When initializing a SCNView object, use the initWithFrame:options: initializer and the SCNPreferredRenderingAPIKey key. Alternatively, create a view in Interface Builder and use the Rendering API control in the inspector. During initialization, the view will attempt to use the preferred API, but will fall back to a different API if the preferred one is not supported on the current hardware.

  • To create a SCNRenderer object that renders into your own OpenGL contect, use the rendererWithContext:options: initializer. To create a renderer for use in your own Metal workflow, use the rendererWithDevice:options: initializer.

  • The rendering technology used by a SCNLayer object is determined by Core Animation.

After initializing a renderer, this property reflects the rendering technology in use.

See Also

Managing Scene Display

pointOfView

The node from which the scene’s contents are viewed for rendering.

Required.

autoenablesDefaultLighting

A Boolean value that determines whether SceneKit automatically adds lights to a scene.

Required.

jitteringEnabled

A Boolean value that determines whether SceneKit applies jittering to reduce aliasing artifacts.

Required.

showsStatistics

A Boolean value that determines whether SceneKit displays rendering performance statistics in an accessory view.

Required.

debugOptions

Options for drawing overlay content in a scene that can aid debugging.

Required.

SCNDebugOptions

Options for drawing overlays with SceneKit content that can aid in debugging, used with the debugOptions property.

SCNRenderingAPI

Options for choosing the graphics technology for an SCNView object (or other SceneKit renderer) to use for drawing its contents. Used by the renderingAPI property and the SCNPreferredRenderingAPIKey option when initializing an SCNView object.