Class KhronosTextureContainer
Index
Constructors
constructor
-
new KhronosTextureContainer(
data: ArrayBufferView,
facesExpected: number,
): KhronosTextureContainerCreates 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
- data: ArrayBufferView
Properties
bytes Of Key Value Data
bytesOfKeyValueData: number
Gets the bytes of key value data
data
data: ArrayBufferView
contents of the KTX container file
gl Base Internal Format
glBaseInternalFormat: number
Gets the base internal format
gl Format
glFormat: number
Gets the openGL format
gl Internal Format
glInternalFormat: number
Gets the openGL internal format
gl Type
glType: number
Gets the openGL type
gl Type Size
glTypeSize: number
Gets the openGL type size
is Invalid
isInvalid: boolean = false
If the container has been made invalid (eg. constructor failed to correctly load array buffer)
load Type
loadType: number
Gets the load type
number Of Array Elements
numberOfArrayElements: number
Gets the number of array elements
number Of Faces
numberOfFaces: number
Gets the number of faces
number Of Mipmap Levels
numberOfMipmapLevels: number
Gets the number of mipmap levels
pixel Depth
pixelDepth: number
Gets image depth in pixels
pixel Height
pixelHeight: number
Gets image height in pixel
pixel Width
pixelWidth: number
Gets image width in pixel
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/