init(context:options:)
Creates a renderer with the specified OpenGL context.
Declaration
convenience init(context: EAGLContext?, options: [AnyHashable : Any]? = nil)convenience init(context: CGLContextObj?, options: [AnyHashable : Any]? = nil)Parameters
- context:
An OpenGL rendering context: either a Cglcontextobj reference (in macOS) or an doc://com.apple.documentation/documentation/opengles/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.