Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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 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
fun clone(vertexFormat: VertexFormat, result: VertexFormat? = definedExternally): VertexFormat

Duplicates a VertexFormat instance.

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

Stores the provided instance into the provided array.

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

Retrieves an instance from a packed array.