All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.CompressedTextureBuffer.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

@file:Suppress(
    "EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER",
)

package cesium

/**
 * Describes a compressed texture and contains a compressed texture buffer.
 * @see Online Documentation
 *
 * @constructor
 * @property [internalFormat] The pixel format of the compressed texture.
 * @property [pixelDatatype] The pixel datatype of the compressed texture.
 * @property [width] The width of the texture.
 * @property [height] The height of the texture.
 * @param [buffer] The compressed texture buffer.
 * @see Online Documentation
 */
@JsName("\$cesium__CompressedTextureBuffer")
external class CompressedTextureBuffer(
    val internalFormat: PixelFormat,
    val pixelDatatype: PixelDatatype,
    val width: Double,
    val height: Double,
    buffer: org.khronos.webgl.Uint8Array,
) {
    /**
     * The compressed texture buffer.
     * @see Online Documentation
     */
    val bufferView: org.khronos.webgl.Uint8Array

    /**
     * Creates a shallow clone of this compressed texture buffer.
     * @return A shallow clone of the compressed texture buffer.
     * @see Online Documentation
     */
    fun clone(): CompressedTextureBuffer

    companion object {
        /**
         * Creates a shallow clone of a compressed texture buffer.
         * @param [object] The compressed texture buffer to be cloned.
         * @return A shallow clone of the compressed texture buffer.
         * @see Online Documentation
         */
        fun clone(obj: CompressedTextureBuffer): CompressedTextureBuffer
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy