Class: PIXI.WebGLFilterManager
Constructor
new WebGLFilterManager()
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 5)
Public Properties
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 11)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 17)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 23)
filterStack : Array
offsetX : number
offsetY : number
Public Methods
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 336)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 46)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 445)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 397)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 145)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 62)
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js (Line 32)
applyFilterPass(filter, filterArea, width, height)
Applies the filter to the specified area.
Parameters
Name | Type | Description |
---|---|---|
filter | PIXI.AbstractFilter | the filter that needs to be applied |
filterArea | PIXI.Texture | TODO - might need an update |
width | Number | the horizontal range of the filter |
height | Number | the vertical range of the filter |
begin(renderSession, buffer)
Parameters
Name | Type | Description |
---|---|---|
renderSession | RenderSession | - |
buffer | ArrayBuffer | - |
destroy()
Destroys the filter and removes it from the filter stack.
initShaderBuffers()
Initialises the shader buffers.
popFilter()
Removes the last filter from the filter stack and doesn't return it.
pushFilter(filterBlock)
Applies the filter and adds it to the current filter stack.
Parameters
Name | Type | Description |
---|---|---|
filterBlock | Object | the filter that will be pushed to the current filter stack |
setContext(gl)
Initialises the context and the properties.
Parameters
Name | Type | Description |
---|---|---|
gl | WebGLContext | the current WebGL drawing context |
© 2016 Richard Davey, Photon Storm Ltd.
Licensed under the MIT License.
http://phaser.io/docs/2.6.2/PIXI.WebGLFilterManager.html