Construct a CachedContainer.
A PIXI.Sprite or SpriteMesh which is bound to this CachedContainer. The RenderTexture from this Container is associated with the Sprite which is automatically rendered.
A PIXI.Sprite or SpriteMesh which is bound to this CachedContainer. The RenderTexture from this Container is associated with the Sprite which is automatically rendered.
The primary render texture bound to this cached container.
Set the alpha mode of the cached container render texture.
An RGBA array used to define the clear color of the RenderTexture
Should our Container also be displayed on screen, in addition to being drawn to the cached RenderTexture?
A bound resize function which fires on the renderer resize event.
An map of render textures, linked to their render function and an optional RGBA clear color.
An object which stores a reference to the normal renderer target and source frame. We track this so we can restore them after rendering our cached texture.
Create a render texture, provide a render method and an optional clear color.
Optional parameters.
A reference to the created render texture.
Remove a previously created render texture.
The render texture to remove.
Clear the cached container, removing its current contents.
A reference to the cleared container for chaining.
Custom rendering for secondary render textures
The active canvas renderer.
Bind a render texture to this renderer. Must be called after bindPrimaryBuffer and before bindInitialBuffer.
The active canvas renderer.
The texture to bind.
Bind the primary render texture to the renderer, replacing and saving the original buffer and source frame.
The active canvas renderer.
Remove the render texture from the Renderer, re-binding the original buffer.
The active canvas renderer.
Resize bound render texture(s) when the dimensions or resolution of the Renderer have changed.
The active canvas renderer.
Resize a render texture passed as a parameter with the renderer.
The active canvas renderer.
The render texture to resize.
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.