<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNRenderer/init(context:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNRenderer(cm)rendererWithContext:options:"
  },
  "title" : "init(context:options:)"
}
-->

# init(context:options:)

Creates a renderer with the specified OpenGL context.

```
convenience init(context: EAGLContext?, options: [AnyHashable : Any]? = nil)
```

## Parameters

`context`

An OpenGL rendering context: either a <doc://com.apple.documentation/documentation/AppKit/NSOpenGLContext/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`](/documentation/SceneKit/SCNRenderer) or [`SCNRenderer`](/documentation/SceneKit/SCNRenderer) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)