Egret Engine R - v6.0.0
    Preparing search index...

    !!!!!!!!inspired by Babylon.js!!!!!!!!!!!!! for description see https://www.khronos.org/opengles/sdk/tools/KTX/ for file layout see https://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/ Current families are astc, dxt, pvrtc, etc2, & etc1.

    The extension selected.

    Index
    • Creates a new KhronosTextureContainer

      Parameters

      • arrayBuffer: any

        contents of the KTX container file

      • facesExpected: number

        should be either 1 or 6, based whether a cube texture or or

      • OptionalthreeDExpected: boolean

        provision for indicating that data should be a 3D texture, not implemented

      • OptionaltextureArrayExpected: boolean

        provision for indicating that data should be a texture array, not implemented

      Returns KTXContainer

    glType: number

    Gets the openGL type

    glTypeSize: number

    Gets the openGL type size

    glFormat: number

    Gets the openGL format

    glInternalFormat: number

    Gets the openGL internal format

    glBaseInternalFormat: number

    Gets the base internal format

    pixelWidth: number

    Gets image width in pixel

    pixelHeight: number

    Gets image height in pixel

    pixelDepth: number

    Gets image depth in pixels

    numberOfArrayElements: number

    Gets the number of array elements

    numberOfFaces: number

    Gets the number of faces

    numberOfMipmapLevels: number

    Gets the number of mipmap levels

    bytesOfKeyValueData: number

    Gets the bytes of key value data

    loadType: number

    Gets the load type

    isInvalid: boolean = false

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

    arrayBuffer: any

    contents of the KTX container file