Companion

external object Companion : Packable<VertexFormat> (source)

Properties

Link copied to clipboard
external val ALL: VertexFormat

An immutable vertex format with well-known attributes: position, normal, st, tangent, and bitangent.

Link copied to clipboard
external val DEFAULT: VertexFormat

An immutable vertex format with position, normal, and st attributes. This is compatible with most appearances and materials; however normal and st attributes are not always required. When this is known in advance, another VertexFormat should be used.

Link copied to clipboard
open external override val packedLength: Int

The number of elements used to pack the object into an array.

Link copied to clipboard

An immutable vertex format with position and color attributes.

Link copied to clipboard

An immutable vertex format with position and normal attributes. This is compatible with per-instance color appearances like PerInstanceColorAppearance.

Link copied to clipboard

An immutable vertex format with position and st attributes. This is compatible with EllipsoidSurfaceAppearance.

Link copied to clipboard

An immutable vertex format with position, normal, and st attributes. This is compatible with MaterialAppearance when MaterialAppearance.materialSupport is TEXTURED/code>.

Link copied to clipboard

An immutable vertex format with only a position attribute.

Functions

Link copied to clipboard
external fun clone(vertexFormat: VertexFormat, result: VertexFormat? = definedExternally): VertexFormat

Duplicates a VertexFormat instance.

Link copied to clipboard
open external override fun pack(value: VertexFormat, array: ReadonlyArray<JsDouble>, startingIndex: Int? = definedExternally): ReadonlyArray<JsDouble>

Stores the provided instance into the provided array.

Link copied to clipboard
open external override fun unpack(array: ReadonlyArray<JsDouble>, startingIndex: Int? = definedExternally, result: VertexFormat? = definedExternally): VertexFormat

Retrieves an instance from a packed array.