<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.5.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CARenderer/init(cglContext:options:)-1l3m2",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CARenderer(cm)rendererWithCGLContext:options:"
  },
  "title" : "init(cglContext:options:)"
}
-->

# init(cglContext:options:)

Creates and returns a `CARenderer` instance with the render target specified by the Core OpenGL context.

```
init(cglContext ctx: UnsafeMutableRawPointer, options dict: [AnyHashable : Any]? = nil)
```

## Parameters

`ctx`

A Core OpenGL render context that is used as the render target.

`dict`

A dictionary of optional parameters.

## Return Value

A new instance of `CARenderer` that will use `ctx` as the render target.

---

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)