new WebGLFilterManager()
Members
-
filterStack : Array
-
Type:
- Array
-
offsetX : Number
-
Type:
- Number
-
offsetY : Number
-
Type:
- Number
Methods
-
applyFilterPass(filter, filterArea, width, height)
-
Applies the filter to the specified area.
Parameters:
Name Type Description filterPhaser.Filter the filter that needs to be applied
filterAreaTexture TODO - might need an update
widthNumber the horizontal range of the filter
heightNumber the vertical range of the filter
-
begin(renderSession, buffer)
-
Parameters:
Name Type Description renderSessionRenderSession bufferArrayBuffer -
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 filterBlockObject the filter that will be pushed to the current filter stack
-
setContext(gl)
-
Initialises the context and the properties.
Parameters:
Name Type Description glWebGLContext the current WebGL drawing context