BufferPrimitiveMaterial

Material description for a BufferPrimitive. Abstract.

BufferPrimitiveMaterial objects are packable, stored when calling BufferPrimitive#setMaterial. Subsequent changes to the material will not affect the primitive until setMaterial() is called again.

abstract new Cesium.BufferPrimitiveMaterial(options)

Name Type Description
options BufferPrimitiveMaterialOptions optional
Experimental

This feature is not final and is subject to change without Cesium's standard deprecation policy.

See:

Members

static Cesium.BufferPrimitiveMaterial.packedLength : number

Color of fill.
Color of outline.
Width of outline, 0-255px.

Methods

static Cesium.BufferPrimitiveMaterial.pack(material, view, byteOffset)

Stores the provided material into the provided array.
Name Type Description
material BufferPrimitiveMaterial
view DataView
byteOffset number

static Cesium.BufferPrimitiveMaterial.unpack(view, byteOffset, result)BufferPrimitiveMaterial

Retrieves a material from a packed array.
Name Type Description
view DataView The packed array.
byteOffset number Starting index of the element to be unpacked.
result BufferPrimitiveMaterial Material into which results are unpacked.
Returns:
Modified result material, with results unpacked.
Returns a JSON-serializable object representing the material. This encoding is not memory-efficient, and should generally be used for debugging and testing.
Returns:
JSON-serializable object.
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.