Class: TextureSystem

PIXI.systems.TextureSystem

System plugin to the renderer to manage textures.

new PIXI.systems.TextureSystem (renderer)

Name Type Description
renderer PIXI.Renderer

The renderer this System works for.

Extends

Members

boundTextures Array.<PIXI.BaseTexture> readonly

Bound textures

currentLocation number readonly

Current location

managedTextures Array.<PIXI.BaseTexture> readonly

List of managed textures

The renderer this manager works for.

Methods

bind (texture, location)

Bind a texture to a specific location

Name Type Default Description
texture PIXI.Texture | PIXI.BaseTexture

Texture to bind

location number 0 optional

Location to bind at

contextChange () overrides

Sets up the renderer context and necessary buffers.

destroy () inherited

Generic destroy methods to be overridden by the subclass

unbind (texture)

Unbind a texture

Name Type Description
texture PIXI.Texture | PIXI.BaseTexture

Texture to bind