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 code: pixi/renderers/webgl/utils/FilterTexture.js (Line 5)
Public Properties
-
frameBuffer : Object
-
- Source code: pixi/renderers/webgl/utils/FilterTexture.js (Line 23)
-
gl :WebGLContext
-
- Source code: pixi/renderers/webgl/utils/FilterTexture.js (Line 15)
-
scaleMode : number
-
- Source code: pixi/renderers/webgl/utils/FilterTexture.js (Line 35)
-
texture : Object
-
- Source code: pixi/renderers/webgl/utils/FilterTexture.js (Line 29)
Public Methods
-
clear()
-
Clears the filter texture.
- Source code: pixi/renderers/webgl/utils/FilterTexture.js (Line 61)
-
destroy()
-
Destroys the filter texture.
- Source code: pixi/renderers/webgl/utils/FilterTexture.js (Line 97)
-
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 code: pixi/renderers/webgl/utils/FilterTexture.js (Line 74)