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.

unknownTexture PIXI.BaseTexture readonly

BaseTexture value that shows that we don't know what is bound

Methods

bind (texture, location)

Bind a texture to a specific location

If you want to unbind something, please use unbind(texture) instead of bind(null, textureLocation)

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

Texture to bind

location number 0 optional

Location to bind at

contextChange ()

Sets up the renderer context and necessary buffers.

destroy () inherited

Generic destroy methods to be overridden by the subclass

Resets texture location and bound textures

Actual bind(null, i) calls will be performed at next unbind() call

unbind (texture)

Unbind a texture

Name Type Description
texture PIXI.Texture | PIXI.BaseTexture

Texture to bind