new FilterManager(renderer)
Parameters:
Name | Type | Description |
---|---|---|
renderer |
WebGLRenderer | The renderer this manager works for. |
Extends
Members
-
currentFrame :Rectangle
-
The current frame
Type:
-
filterStack :Array.<object>
-
Type:
- Array.<object>
-
renderer :WebGLRenderer
-
The renderer this manager works for.
Type:
- Inherited From:
- Source:
-
texturePool :Array.<RenderTarget>
-
Type:
- Array.<RenderTarget>
-
textureSize :Rectangle
-
The size of the texture
Type:
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
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.
-
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
-
setFilterStack(renderer, buffer)
-
Parameters:
Name Type Description renderer
WebGLRenderer buffer
ArrayBuffer