-->

PIXI. WebGLFilterManager

new WebGLFilterManager()

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 5

Members

filterStack :Array

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 11

offsetX :Number

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 17

offsetY :Number

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 23

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 - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 336

begin(renderSession, buffer)

Parameters:
Name Type Description
renderSession RenderSession

-

buffer ArrayBuffer

-

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 46

destroy()

Destroys the filter and removes it from the filter stack.

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 445

initShaderBuffers()

Initialises the shader buffers.

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 397

popFilter()

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

Source - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 145

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 - 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 - pixi/renderers/webgl/utils/WebGLFilterManager.js, line 32
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.0 on Fri Aug 26 2016 01:16:21 GMT+0100 (BST) using the DocStrap template.