Options
All
  • Public
  • Public/Protected
  • All
Menu

PixiImageManager loads and stores textures that can be used by the Pixi.js renderers.

Hierarchy

  • PixiImageManager

Index

Constructors

Methods

  • getInvalidPIXITexture(): Texture<Resource>
  • getPIXITexture(resourceName: string): Texture<Resource>
  • Return the PIXI texture associated to the specified resource name. Returns a placeholder texture if not found.

    Parameters

    • resourceName: string

      The name of the resource

    Returns Texture<Resource>

    The requested texture, or a placeholder if not found.

  • getPIXIVideoTexture(resourceName: string): Texture<Resource>
  • Return the PIXI video texture associated to the specified resource name. Returns a placeholder texture if not found.

    Parameters

    • resourceName: string

      The name of the resource to get.

    Returns Texture<Resource>

  • loadTextures(onProgress: any, onComplete: any): any
  • Load the specified resources, so that textures are loaded and can then be used by calling getPIXITexture.

    Parameters

    • onProgress: any

      Callback called each time a new file is loaded.

    • onComplete: any

      Callback called when loading is done.

    Returns any

  • setResources(resources: ResourceData[]): void

Generated using TypeDoc