System plugin to the renderer to manage textures.

Memberof

PIXI

Implements

Constructors

  • Parameters

    • renderer: Renderer

      The renderer this system works for.

    Returns TextureSystem

Properties

Bound textures.

currentLocation: number

Current location.

emptyTextures: {
    [key: number]: GLTexture;
}

Type declaration

List of managed textures.

Methods

  • Bind a texture to a specific location

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

    Parameters

    Returns void

  • Sets up the renderer context and necessary buffers.

    Returns void

  • Generic destroy methods to be overridden by the subclass

    Returns void

  • Ensures that current boundTextures all have FLOAT sampler type, see PIXI.SAMPLER_TYPES for explanation.

    Parameters

    • maxTextures: number

      number of locations to check

    Returns void

  • Resets texture location and bound textures Actual bind(null, i) calls will be performed at next unbind() call

    Returns void

  • Unbind a texture.

    Parameters

    Returns void

Generated using TypeDoc