Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KhronosTextureContainer

Hierarchy

  • KhronosTextureContainer

Index

Constructors

constructor

  • 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

bytesOfKeyValueDataSearch playground for bytesOfKeyValueData

bytesOfKeyValueData: number

Gets the bytes of key value data

dataSearch playground for data

data: ArrayBufferView

contents of the KTX container file

glBaseInternalFormatSearch playground for glBaseInternalFormat

glBaseInternalFormat: number

Gets the base internal format

glFormatSearch playground for glFormat

glFormat: number

Gets the openGL format

glInternalFormatSearch playground for glInternalFormat

glInternalFormat: number

Gets the openGL internal format

glTypeSearch playground for glType

glType: number

Gets the openGL type

glTypeSizeSearch playground for glTypeSize

glTypeSize: number

Gets the openGL type size

isInvalidSearch playground for isInvalid

isInvalid: boolean

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

loadTypeSearch playground for loadType

loadType: number

Gets the load type

numberOfArrayElementsSearch playground for numberOfArrayElements

numberOfArrayElements: number

Gets the number of array elements

numberOfFacesSearch playground for numberOfFaces

numberOfFaces: number

Gets the number of faces

numberOfMipmapLevelsSearch playground for numberOfMipmapLevels

numberOfMipmapLevels: number

Gets the number of mipmap levels

pixelDepthSearch playground for pixelDepth

pixelDepth: number

Gets image depth in pixels

pixelHeightSearch playground for pixelHeight

pixelHeight: number

Gets image height in pixel

pixelWidthSearch playground for pixelWidth

pixelWidth: number

Gets image width in pixel

Methods

Static IsValidSearch playground for IsValid

  • 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
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property
  • Static method