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 5

Members

frameBuffer :Object

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

gl :WebGLContext

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

scaleMode :Number

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

texture :Object

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

Methods

clear()

Clears the filter texture.

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

destroy()

Destroys the filter texture.

Source - 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 - pixi/renderers/webgl/utils/FilterTexture.js, line 74
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.2 on Thu Feb 18 2016 14:41:10 GMT+0000 (GMT Standard Time) using the DocStrap template.

快捷菜单

注意:只有登录才能全文翻译,每个新用户赠送300会员币。
赚取方法:文章评论+1000,分享网站截图给站长+3000,另充10元+100万会员币
支持一下记得截图给站长!

VIP限时免费阅读!登录可得1万币尽情中文阅读!


记得CTRL+D收藏!
站长微信:
支持自学php网
如有问题,记得强刷一下.

  • frameBuffer :Object - 属性
  • gl :WebGLContext - 属性
  • scaleMode :Number - 属性
  • texture :Object - 属性
  • clear() - 方法
  • destroy() - 方法
  • resize(width, height) - 方法