KhronosTextureContainer

Hierarchy

  • KhronosTextureContainer

Index

Constructors

constructor

Find examples in Playground
  • new KhronosTextureContainer(arrayBuffer: any, facesExpected: number, threeDExpected?: boolean, textureArrayExpected?: boolean): KhronosTextureContainer
  • 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

    • Optional threeDExpected: boolean

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

    • Optional textureArrayExpected: boolean

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

    Returns KhronosTextureContainer

Properties

arrayBuffer

Find examples in Playground
arrayBuffer: any

contents of the KTX container file

bytesOfKeyValueData

Find examples in Playground
bytesOfKeyValueData: number

Gets the bytes of key value data

glBaseInternalFormat

Find examples in Playground
glBaseInternalFormat: number

Gets the base internal format

glFormat

Find examples in Playground
glFormat: number

Gets the openGL format

glInternalFormat

Find examples in Playground
glInternalFormat: number

Gets the openGL internal format

glType

Find examples in Playground
glType: number

Gets the openGL type

glTypeSize

Find examples in Playground
glTypeSize: number

Gets the openGL type size

isInvalid

Find examples in Playground
isInvalid: boolean

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

loadType

Find examples in Playground
loadType: number

Gets the load type

numberOfArrayElements

Find examples in Playground
numberOfArrayElements: number

Gets the number of array elements

numberOfFaces

Find examples in Playground
numberOfFaces: number

Gets the number of faces

numberOfMipmapLevels

Find examples in Playground
numberOfMipmapLevels: number

Gets the number of mipmap levels

pixelDepth

Find examples in Playground
pixelDepth: number

Gets image depth in pixels

pixelHeight

Find examples in Playground
pixelHeight: number

Gets image height in pixel

pixelWidth

Find examples in Playground
pixelWidth: number

Gets image width in pixel

Methods

switchEndianness

Find examples in Playground
  • switchEndianness(val: number): number
  • Revert the endianness of a value. Not as fast hardware based, but will probably never need to use

    Parameters

    • val: number

      defines the value to convert

    Returns number

    the new value

Generated using TypeDoc