CachedContainer

CachedContainer

A special type of PIXI.Container which draws its contents to a cached RenderTexture. This is accomplished by overriding the Container#render method to draw to our own special RenderTexture.

Constructor

new CachedContainer()

Extends

  • PIXI.Container

Members

clearColor :Array.<number>

An RGBA array used to define the clear color of the RenderTexture

Type:

displayed :boolean

Should our Container also be displayed on screen, in addition to being drawn to the cached RenderTexture?

Type:
  • boolean

sprite :PIXI.Sprite

A bound Sprite which uses this container's render texture

Type:
  • PIXI.Sprite

Methods

(protected) _resize(renderer)

Resize the cached RenderTexture when the dimensions or resolution of the Renderer have changed.

Parameters:
Name Type Description
renderer PIXI.Renderer

destroy()

render()