Class: FilterTexture

PIXI. FilterTexture

new FilterTexture(gl, width, height, scaleMode)

Parameters:
Name Type Description
gl WebGLContext

the current WebGL drawing context

width Number

the horizontal range of the filter

height Number

the vertical range of the filter

scaleMode Number

See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values

Source:
src/pixi/renderers/webgl/utils/FilterTexture.js line 66

Members

frameBuffer : Any

Type:
  • Any
Source:
src/pixi/renderers/webgl/utils/FilterTexture.js line 82

gl : WebGLContext

Type:
  • WebGLContext
Source:
src/pixi/renderers/webgl/utils/FilterTexture.js line 74

texture : Any

Type:
  • Any
Source:
src/pixi/renderers/webgl/utils/FilterTexture.js line 88

Methods

clear()

Clears the filter texture.

Source:
src/pixi/renderers/webgl/utils/FilterTexture.js line 96

destroy()

Destroys the filter texture.

Source:
src/pixi/renderers/webgl/utils/FilterTexture.js line 132

resize(width, height)

Resizes the texture to the specified width and height

Parameters:
Name Type Description
width Number

the new width of the texture

height Number

the new height of the texture

Source:
src/pixi/renderers/webgl/utils/FilterTexture.js line 109

phaser-ce@2.10.6 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2018-06-01 using Tomorrow.