Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompressedTextureLoader

Loader plugin for handling compressed textures for all platforms.

memberof

PIXI

implements

PIXI.ILoaderPlugin

Hierarchy

  • CompressedTextureLoader

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static textureExtensions

textureExtensions: Partial<CompressedTextureExtensions>

Map of available texture extensions.

Static textureFormats

textureFormats: { toExponential?: any; toFixed?: any; toLocaleString?: any; toPrecision?: any; toString?: any; valueOf?: any }

Map of available texture formats.

Type declaration

Methods

Static use

  • Called after a compressed-textures manifest is loaded.

    This will then load the correct compression format for the device. Your manifest should adhere to the following schema:

    import { INTERNAL_FORMATS } from '@pixi/constants';
    
    // The following should be present in a *.compressed-texture.json file!
    const manifest = JSON.stringify({
      COMPRESSED_RGBA_S3TC_DXT5_EXT: "asset.s3tc.ktx",
      COMPRESSED_RGBA8_ETC2_EAC: "asset.etc.ktx",
      RGBA_PVRTC_4BPPV1_IMG: "asset.pvrtc.ktx",
      textureID: "asset.png",
      fallback: "asset.png"
    });
    

    Parameters

    • resource: ILoaderResource
    • next: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

Generated using TypeDoc