API

Class KhronosTextureContainer

Index
bytesOfKeyValueData: number

Gets the bytes of key value data

data: ArrayBufferView

contents of the KTX container file

glBaseInternalFormat: number

Gets the base internal format

glFormat: number

Gets the openGL format

glInternalFormat: number

Gets the openGL internal format

glType: number

Gets the openGL type

glTypeSize: number

Gets the openGL type size

isInvalid: boolean = false

If the container has been made invalid (eg. constructor failed to correctly load array buffer)

loadType: number

Gets the load type

numberOfArrayElements: number

Gets the number of array elements

numberOfFaces: number

Gets the number of faces

numberOfMipmapLevels: number

Gets the number of mipmap levels

pixelDepth: number

Gets image depth in pixels

pixelHeight: number

Gets image height in pixel

pixelWidth: number

Gets image width in pixel

  • Checks if the given data starts with a KTX file identifier.

    Parameters

    • data: ArrayBufferView

      the data to check

    Returns boolean

    true if the data is a KTX file or false otherwise