WebGLFilterManager Class
Constructor
WebGLFilterManager
(
private
-
gl -
transparent
Parameters:
-
glWebGLContextthe current WebGL drawing context
-
transparentBooleanWhether or not the drawing context should be transparent
Item Index
Methods
applyFilterPass
(
-
filter -
filterArea -
width -
height
Applies the filter to the specified area
Parameters:
-
filterAbstractFilterthe filter that needs to be applied
-
filterAreaTextureTODO - might need an update
-
widthNumberthe horizontal range of the filter
-
heightNumberthe vertical range of the filter
begin
(
-
renderSession -
buffer
Parameters:
-
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:
-
filterBlockObjectthe filter that will be pushed to the current filter stack
setContext
(
-
gl
Initialises the context and the properties
Parameters:
-
glWebGLContextthe current WebGL drawing context
