LayerTextureCache

class LayerTextureCache

This manages the render-texture a Layer renders into.

This is used internally by Layer#render.

Summary


Properties from LayerTextureCache

Methods from LayerTextureCache

void
destroy()

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

PIXI.RenderTexture
getRenderTexture()

See Layer#getRenderTexture.

void
popTexture(renderer: PIXI.Renderer)

Flushes the renderer and restores the old render-target.

void
pushTexture(renderer: PIXI.Renderer)

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

Public Properties


layer Layer.ts:22
layer: Layer

Public Methods


destroy Layer.ts:175
destroy() → {void}

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

Returns:
Type Description
void
getRenderTexture Layer.ts:48
getRenderTexture() → {PIXI.RenderTexture}
Returns:
Type Description
PIXI.RenderTexture
popTexture Layer.ts:143
popTexture(renderer: PIXI.Renderer) → {void}

Flushes the renderer and restores the old render-target.

Parameters:
Name Type Description
renderer PIXI.Renderer
Returns:
Type Description
void
pushTexture Layer.ts:59
pushTexture(renderer: PIXI.Renderer) → {void}

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

Parameters:
Name Type Description
renderer PIXI.Renderer
Returns:
Type Description
void

Powered by webdoc!