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

Members

frameBuffer :Object

Source - pixi/renderers/webgl/utils/FilterTexture.js, line 64

gl :WebGLContext

Source - pixi/renderers/webgl/utils/FilterTexture.js, line 57

texture :Object

Source - pixi/renderers/webgl/utils/FilterTexture.js, line 69

Methods

clear()

Clears the filter texture.

Source - pixi/renderers/webgl/utils/FilterTexture.js, line 81

destroy()

Destroys the filter texture.

Source - pixi/renderers/webgl/utils/FilterTexture.js, line 116

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 - pixi/renderers/webgl/utils/FilterTexture.js, line 94
Phaser Copyright © 2012-2016 Photon Storm Ltd.
Documentation generated by JSDoc 3.4.3 on Thu Apr 13 2017 12:05:15 GMT-0700 (PDT) using the DocStrap template.