LayerTextureCache
class LayerTextureCache
This manages the render-texture a Layer renders into.
This is used internally by Layer#render.
Summary
Methods from LayerTextureCache
| void |
Destroy the texture-cache. Set Layer.textureCache to |
| PIXI.RenderTexture |
|
| void |
Flushes the renderer and restores the old render-target. |
| void |
Prepares the layer's render-texture and set it as the render-target. |
Public Methods
destroy() → {void}
Destroy the texture-cache. Set Layer.textureCache to null after destroying it!
| Type | Description |
|---|---|
| void |
getRenderTexture() → {PIXI.RenderTexture}
| Type | Description |
|---|---|
| PIXI.RenderTexture |
popTexture(renderer: PIXI.Renderer) → {void}
Flushes the renderer and restores the old render-target.
| Name | Type | Description |
|---|---|---|
| renderer | PIXI.Renderer |
| Type | Description |
|---|---|
| void |
pushTexture(renderer: PIXI.Renderer) → {void}
Prepares the layer's render-texture and set it as the render-target.
| Name | Type | Description |
|---|---|---|
| renderer | PIXI.Renderer |
| Type | Description |
|---|---|
| void |