Class: FilterManager

PIXI. FilterManager

new PIXI.FilterManager(renderer)

Name Type Description
renderer PIXI.WebGLRenderer

The renderer this manager works for.

Extends

Members

currentFramePIXI.Rectangle

The current frame

filterStackArray.<object>

The renderer this manager works for.

texturePoolArray.<PIXI.RenderTarget>

textureSizePIXI.Rectangle

The size of the texture

Methods

Destroys the filter and removes it from the filter stack.

getRenderTarget(clear){RenderTarget}

Grabs an render target from the internal pool

Name Type Description
clear boolean

Whether or not we need to clear the RenderTarget

Returns:
Type Description
RenderTarget

Called when there is a WebGL context change.

Removes the last filter from the filter stack and returns it.

Applies the filter and adds it to the current filter stack.

Name Type Description
target PIXI.DisplayObject
filters Array.<PIXI.AbstractFiler>

the filters that will be pushed to the current filter stack

setFilterStack(renderer, buffer)

Name Type Description
renderer PIXI.WebGLRenderer
buffer ArrayBuffer