main.cesium.ComponentDatatype.kt Maven / Gradle / Ivy
The newest version!
// Automatically generated - do not modify!
@file:JsModule("cesium")
package cesium
/**
* WebGL component datatypes. Components are intrinsics,
* which form attributes, which form vertices.
* @see Online Documentation
*/
external enum class ComponentDatatype {
/**
* 8-bit signed byte corresponding to `gl.BYTE` and the type
* of an element in `Int8Array`.
*/
BYTE,
/**
* 8-bit unsigned byte corresponding to `UNSIGNED_BYTE` and the type
* of an element in `Uint8Array`.
*/
UNSIGNED_BYTE,
/**
* 16-bit signed short corresponding to `SHORT` and the type
* of an element in `Int16Array`.
*/
SHORT,
/**
* 16-bit unsigned short corresponding to `UNSIGNED_SHORT` and the type
* of an element in `Uint16Array`.
*/
UNSIGNED_SHORT,
/**
* 32-bit signed int corresponding to `INT` and the type
* of an element in `Int32Array`.
*/
INT,
/**
* 32-bit unsigned int corresponding to `UNSIGNED_INT` and the type
* of an element in `Uint32Array`.
*/
UNSIGNED_INT,
/**
* 32-bit floating-point corresponding to `FLOAT` and the type
* of an element in `Float32Array`.
*/
FLOAT,
/**
* 64-bit floating-point corresponding to `gl.DOUBLE` (in Desktop OpenGL;
* this is not supported in WebGL, and is emulated in Cesium via [GeometryPipeline.encodeAttribute])
* and the type of an element in `Float64Array`.
*/
DOUBLE,
;
}