ViewportQuad

open external class ViewportQuad(var rectangle: BoundingRectangle = definedExternally, var material: Material = definedExternally)(source)

A viewport aligned quad.

const viewportQuad = new ViewportQuad(new BoundingRectangle(0, 0, 80, 40));
viewportQuad.material.uniforms.color = new Color(1.0, 0.0, 0.0, 1.0);

See also

Constructors

Link copied to clipboard
constructor(rectangle: BoundingRectangle = definedExternally, material: Material = definedExternally)

Properties

Link copied to clipboard
external var material: Material

The Material defining the surface appearance of the viewport quad.

Link copied to clipboard

The BoundingRectangle defining the quad's position within the viewport.

Link copied to clipboard
external var show: Boolean

Determines if the viewport quad primitive will be shown.

Functions

Link copied to clipboard
external fun destroy()

Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object.

Link copied to clipboard
external fun isDestroyed(): Boolean

Returns true if this object was destroyed; otherwise, false.

Link copied to clipboard
external fun update()

Called when Viewer or CesiumWidget render the scene to get the draw commands needed to render this primitive.