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)

参数名称 类型 描述信息
options BufferPrimitiveMaterialOptions 可选
Experimental

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

参考:

成员(属性)

static Cesium.BufferPrimitiveMaterial.packedLength : number

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

方法

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

Stores the provided material into the provided array.
参数名称 类型 描述信息
material BufferPrimitiveMaterial
view DataView
byteOffset number

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

Retrieves a material from a packed array.
参数名称 类型 描述信息
view DataView The packed array.
byteOffset number Starting index of the element to be unpacked.
result BufferPrimitiveMaterial Material into which results are unpacked.
返回值:
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.
返回值:
JSON-serializable object.