Class: FilterManager

FilterManager


new FilterManager(renderer)

Parameters:
Name Type Description
renderer WebGLRenderer

The renderer this manager works for.

Source:

Extends

Members


currentFrame :Rectangle

The current frame

Type:
Source:

filterStack :Array.<object>

Type:
  • Array.<object>
Source:

renderer :WebGLRenderer

The renderer this manager works for.

Type:
Inherited From:
Source:

texturePool :Array.<RenderTarget>

Type:
Source:

textureSize :Rectangle

The size of the texture

Type:
Source:

Methods


destroy()

Destroys the filter and removes it from the filter stack.

Overrides:
Source:

getRenderTarget(clear)

Grabs an render target from the internal pool

Parameters:
Name Type Description
clear boolean

Whether or not we need to clear the RenderTarget

Source:
Returns:
Type
RenderTarget

onContextChange()

Called when there is a WebGL context change.

Overrides:
Source:

popFilter()

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

Source:

pushFilter(target, filters)

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

Parameters:
Name Type Description
target DisplayObject
filters Array.<AbstractFiler>

the filters that will be pushed to the current filter stack

Source:

setFilterStack(renderer, buffer)

Parameters:
Name Type Description
renderer WebGLRenderer
buffer ArrayBuffer
Source: