init(cglContext:options:)
Creates and returns a CARenderer instance with the render target specified by the Core OpenGL context.
Declaration
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.