Class: WebGLFilterManager

PIXI. WebGLFilterManager

Members

filterStack : Array

Type:
  • Array
Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 15

offsetX : Number

Type:
  • Number
Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 21

offsetY : Number

Type:
  • Number
Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 27

Methods

applyFilterPass(filter, filterArea, width, height)

Applies the filter to the specified area.

Parameters:
Name Type Description
filter Phaser.Filter

the filter that needs to be applied

filterArea Texture

TODO - might need an update

width Number

the horizontal range of the filter

height Number

the vertical range of the filter

Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 352

begin(renderSession, buffer)

Parameters:
Name Type Description
renderSession RenderSession
buffer ArrayBuffer
Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 46

destroy()

Destroys the filter and removes it from the filter stack.

Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 462

initShaderBuffers()

Initialises the shader buffers.

Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 413

popFilter()

Removes the last filter from the filter stack and doesn't return it.

Source:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 149

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:
src/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:
src/pixi/renderers/webgl/utils/WebGLFilterManager.js line 32

phaser-ce@2.20.1 is on GitHub and NPM

Documentation generated by JSDoc 3.6.11 on 2024-10-05 using Tomorrow.