TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class VertexElements in Tinman.Terrain.Rendering

An immutable list of vertex elements.

sealed class VertexElements implements IEquatable<VertexElements>

Public / Constants

Empty

An empty list of vertex elements.

public static readonly field Empty
type VertexElements

Public / Attributes

Count

The number of vertex format elements.

public property Count { get }
type int32
value [>=0] The element count.

Size

Returns the size of this vertex element declaration.

public property Size { get }
type int32
value [>=0] The vertex size, in bytes.

Public / Constructors

VertexElements

Creates a new instance of VertexElements.

public constructor VertexElements (VertexElementUsage usage, VertexElementType type, int32 count)
params usage Usage of first vertex format element.
  type Data type of first vertex format element.
  count [0..4] Number of data values in first vertex format element.

Public / Methods

Add

Appends the given vertex element using Size as Offset and returns the resulting VertexElements object.

public method Add (VertexElement element)
type VertexElements
params element [not-null] The vertex format element to append.
returns [not-null] The resulting vertex elements.

Appends the given vertex elements using Size as respective Offset and returns the resulting VertexElements object.

public method Add (VertexElements elements)
type VertexElements
params elements [not-null] The vertex format elements to append.
returns [not-null] The resulting vertex elements.

Appends the given vertex element using Size as Offset and returns the resulting VertexElements object.

public method Add (VertexElementUsage usage, VertexElementType type, int32 count)
type VertexElements
params usage Usage of vertex format element.
  type Data type of vertex format element.
  count [0..4] Number of data values in vertex format element.
returns [not-null] The resulting vertex elements.

Equals

Compares this object with the given one.

[Pure]
public method Equals (VertexElements other)
type bool
params other The object to compare to.
returns true if this object is equal to other, false if not.
implements IEquatable.Equals

Get

Returns the index-th vertex format element.

public method Get (int32 index)
type VertexElement
params index [0..Count-1] Index of vertex format element.
returns [not-null] The vertex format element.

Remarks:

The vertex format elements are sorted by their byte offset (see Offset) in ascending order.

GetHashCode

[Pure]
public override method GetHashCode ()
type int32