new WebGLFilterManager()
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 5
Public Properties
-
filterStack : Array
-
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 11
-
offsetX : number
-
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 17
-
offsetY : number
-
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 23
Public Methods
-
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
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 315
-
begin(renderSession, buffer)
-
Parameters
Name Type Description renderSession
RenderSession -
buffer
ArrayBuffer -
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 46
-
destroy()
-
Destroys the filter and removes it from the filter stack.
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 424
-
initShaderBuffers()
-
Initialises the shader buffers.
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 376
-
popFilter()
-
Removes the last filter from the filter stack and doesn't return it.
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 138
-
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
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 62
-
setContext(gl)
-
Initialises the context and the properties.
Parameters
Name Type Description gl
WebGLContext the current WebGL drawing context
- Source code: pixi/renderers/webgl/utils/WebGLFilterManager.js, line 32