Contents

init(eaglContext:options:)

Creates a Core Image context from an EAGL context using the specified options.

Declaration

init(eaglContext: EAGLContext, options: [CIContextOption : Any]? = nil)

Parameters

  • eaglContext:

    The EAGL context to render to.

  • options:

    A dictionary that contains options for creating a Cicontext object. You can pass any of the keys defined in Cicontextoption along with the appropriate value.

Return Value

A Core Image context that targets OpenGL ES.

Discussion

The OpenGL ES context must support OpenGL ES 2.0. All drawing performed using the methods listed in Drawing Images is rendered directly into the context.

See Also

Deprecated