Class

SCNRenderer

A renderer for displaying a SceneKit scene in an existing Metal workflow or OpenGL context.

Declaration

@interface SCNRenderer : NSObject

Overview

Use this class when you want to add content rendered by SceneKit to an app that already renders other content by using Metal, OpenGL, or OpenGL ES directly. To provide content for a SceneKit renderer, assign a SCNScene object to its scene property.

For additional important methods and properties for working with SceneKit renderers, see SCNSceneRenderer.

Topics

Creating a Renderer

+ rendererWithDevice:options:

Creates a renderer with the specified Metal device.

+ rendererWithContext:options:

Creates a renderer with the specified OpenGL context.

Specifying a Scene

scene

The scene to be rendered.

Managing Animation Timing

nextFrameTime

The timestamp for the next frame to be rendered.

Rendering a Scene Using Metal

- renderAtTime:viewport:commandBuffer:passDescriptor:

Renders the scene’s contents at the specified system time in the specified Metal command buffer.

Rendering a Scene Using OpenGL

- render

Renders the scene’s contents in the renderer’s OpenGL context.

Deprecated
- renderAtTime:

Renders the scene’s contents at the specified system time in the renderer’s OpenGL context.

Capturing a Snapshot

- snapshotAtTime:withSize:antialiasingMode:

Creates an image by drawing the renderer’s content at the specified system time.

Relationships

Inherits From

See Also

Display and Interactivity

SCNSceneRenderer

Methods and properties common to the SCNView, SCNLayer, and SCNRenderer classes.

SCNSceneRendererDelegate

Methods your app can implement to participate in SceneKit’s animation loop or perform additional rendering.

SCNLayer

A Core Animation layer that renders a SceneKit scene as its content.

Deprecated
SCNHitTestResult

Information about a the result of a scene-space or view-space search for scene elements.