Type Method

contextWithEAGLContext:options:

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

Declaration

+ (CIContext *)contextWithEAGLContext:(EAGLContext *)eaglContext options:(NSDictionary<CIContextOption, id> *)options;

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 Context Options 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

Creating a Context for GPU-Based Rendering with OpenGL

+ contextWithCGLContext:pixelFormat:colorSpace:options:

Creates a Core Image context from a CGL context, using the specified options, color space, and pixel format object.

Deprecated
+ contextWithCGLContext:pixelFormat:options:

Creates a Core Image context from a CGL context, using the specified options and pixel format object.

Deprecated
+ contextWithEAGLContext:

Creates a Core Image context from an EAGL context.

Deprecated
+ contextForOfflineGPUAtIndex:

Creates an OpenGL-based Core Image context using a GPU that is not currently driving a display.

Deprecated
+ contextForOfflineGPUAtIndex:colorSpace:options:sharedContext:

Creates an OpenGL-based Core Image context using a GPU that is not currently driving a display, with the specified options.

Deprecated