Options
All
  • Public
  • Public/Protected
  • All
Menu

Loader plugin for handling KTX texture container files.

This KTX loader does not currently support the following features:

  • cube textures
  • 3D textures
  • vendor-specific key/value data parsing
  • endianness conversion for big-endian machines
  • embedded *.basis files

It does supports the following features:

  • multiple textures per file
  • mipmapping
memberof

PIXI

implements

PIXI.ILoaderPlugin

Hierarchy

  • KTXLoader

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Static Private parse

parse: any

Parses the KTX file header, generates base-textures, and puts them into the texture cache.

Static Private validate

validate: any

Checks whether the arrayBuffer contains a valid *.ktx file.

Methods

Static use

  • Called after a KTX file is loaded.

    This will parse the KTX file header and add a {@code BaseTexture} to the texture cache.

    see

    PIXI.Loader.loaderMiddleware

    Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns void

Generated using TypeDoc