Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • KhronosTextureContainer

Index

Constructors

  • Creates a new KhronosTextureContainer

    Parameters

    • data: ArrayBufferView

      contents of the KTX container file

    • facesExpected: number

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

    Returns KhronosTextureContainer

Properties

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

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

Methods

  • IsValid(data: ArrayBufferView): boolean
  • 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

Legend

  • Constructor
  • Property
  • Method
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Property
  • Method
  • Static method

Settings

Theme