Protocol

FxGenerator

The FxGenerator protocol defines the methods a generator plug-in must implement to render output.

Declaration

@protocol FxGenerator

Overview

A generator is a plug-in that generates its output without having an image as input. In Motion's Library, there is a category for generators. It contains options such as the Checkerboard generator, and the Clouds generator. When used, they aren't filtering an existing image, and they aren't transitioning between images. They're creating their output based solely on the values of their parameters.

Since the FxGenerator protocol derives from FxBaseEffect protocol, a generator plug-in must implement both protocols.

The FxGenerator protocol defines additional methods such as renderOutput:withInfo:, which is the method where a plug-in actually renders its output.

Topics

Creating and Rendering Frames

- frameSetup:hardware:software:

Determines the type of output image the plug-in requires.

Required.

- frameCleanup

Allows the plug-in to clean up after filter rendering.

Required.

- renderOutput:withInfo:

Renders the output image.

Required.

Relationships

Inherits From