WebGLFilterManager Class
Constructor
WebGLFilterManager
(
private
-
gl
Parameters:
-
gl
WebGLContextthe current WebGL drawing context
Item Index
Methods
applyFilterPass
(
-
filter
-
filterArea
-
width
-
height
Applies the filter to the specified area
Parameters:
-
filter
AbstractFilterthe filter that needs to be applied
-
filterArea
TextureTODO - might need an update
-
width
Numberthe horizontal range of the filter
-
height
Numberthe vertical range of the filter
begin
(
-
renderSession
-
buffer
Parameters:
-
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:
-
filterBlock
Objectthe filter that will be pushed to the current filter stack
setContext
(
-
gl
Initialises the context and the properties
Parameters:
-
gl
WebGLContextthe current WebGL drawing context