new PIXI.BaseRenderTexture(width, height, scaleMode, resolution)
| Name | Type | Default | Description |
|---|---|---|---|
width |
number | 100 |
optional
The width of the base render texture |
height |
number | 100 |
optional
The height of the base render texture |
scaleMode |
number | PIXI.settings.SCALE_MODE |
optional
See PIXI.SCALE_MODES for possible values |
resolution |
number | 1 |
optional
The resolution / device pixel ratio of the texture being generated |
Extends
Members
-
filterStackArray.<PIXI.Graphics>
-
The data structure for the filters
-
stencilMaskStackArray.<PIXI.Graphics>
-
The data structure for the stencil masks
Methods
-
destroy()
-
Destroys this texture
-
resize(width, height)
-
Resizes the BaseRenderTexture.
Name Type Description widthnumber The width to resize to.
heightnumber The height to resize to.
Events
-
Fired when BaseTexture is destroyed.
Name Type Description baseTexturePIXI.BaseTexture Instance of texture being destroyed.
-
Fired when a not-immediately-available source fails to load.
Name Type Description baseTexturePIXI.BaseTexture Resource errored.
-
Fired when a not-immediately-available source finishes loading.
Name Type Description baseTexturePIXI.BaseTexture Resource loaded.
-
Fired when BaseTexture is updated.
Name Type Description baseTexturePIXI.BaseTexture Instance of texture being updated.