Class: LayerTextureCache

PIXI.layers.LayerTextureCache

This manages the render-texture a Layer renders into.

This is used internally by Layer#render.

Members

Methods

destroy () void

Destroy the texture-cache. Set Layer.textureCache to null after destroying it!

getRenderTexture () RenderTexture

See Layer#getRenderTexture.

Returns:
Type Description
RenderTexture

popTexture (renderer) void

Flushes the renderer and restores the old render-target.

Name Type Description
renderer Renderer

pushTexture (renderer) void

Prepares the layer's render-texture and set it as the render-target.

Name Type Description
renderer Renderer