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 Ditap.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 Ditap.BufferPrimitiveMaterial.packedLength : number

color : Color

Color of fill.

outlineColor : Color

Color of outline.

outlineWidth : number

Width of outline, 0-255px.

Methods

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

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

static Ditap.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.

toJSON() → Object

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.