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
bytes Of Key Value DataSearch playground for bytesOfKeyValueData
Gets the bytes of key value data
dataSearch playground for data
contents of the KTX container file
gl Base Internal FormatSearch playground for glBaseInternalFormat
Gets the base internal format
gl FormatSearch playground for glFormat
Gets the openGL format
gl Internal FormatSearch playground for glInternalFormat
Gets the openGL internal format
gl TypeSearch playground for glType
Gets the openGL type
gl Type SizeSearch playground for glTypeSize
Gets the openGL type size
is InvalidSearch playground for isInvalid
If the container has been made invalid (eg. constructor failed to correctly load array buffer)
load TypeSearch playground for loadType
Gets the load type
number Of Array ElementsSearch playground for numberOfArrayElements
Gets the number of array elements
number Of FacesSearch playground for numberOfFaces
Gets the number of faces
number Of Mipmap LevelsSearch playground for numberOfMipmapLevels
Gets the number of mipmap levels
pixel DepthSearch playground for pixelDepth
Gets image depth in pixels
pixel HeightSearch playground for pixelHeight
Gets image height in pixel
pixel WidthSearch playground for pixelWidth
Gets image width in pixel
Methods
Static Is ValidSearch playground for IsValid
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
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/