Type Method

rendererWithContext:options:

Creates a renderer with the specified OpenGL context.

Declaration

iOS, tvOS
+ (instancetype)rendererWithContext:(EAGLContext *)context options:(NSDictionary *)options;
macOS
+ (instancetype)rendererWithContext:(CGLContextObj)context options:(NSDictionary *)options;

Parameters

context

An OpenGL rendering context: either a CGLContextObj reference (in macOS) or an EAGLContext object (in iOS).

options

An optional dictionary for future extensions.

Return Value

A new renderer object.

Discussion

Use this initializer to create a SceneKit renderer that draws into OpenGL context your app already uses to draw other content. To tell SceneKit to render your content, call the SCNRenderer or SCNRenderer method.

See Also

Creating a Renderer

+ rendererWithDevice:options:

Creates a renderer with the specified Metal device.