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 63

Members

frameBuffer : Any

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

gl : WebGLContext

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

texture : Any

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

Methods

clear()

Clears the filter texture.

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

destroy()

Destroys the filter texture.

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

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 103

phaser-ce@2.8.8 is on GitHub and NPM

Documentation generated by JSDoc 3.5.4 on 2017-09-25 using Tomorrow.