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

class VertexElement in Tinman.Terrain.Rendering

Describes a single element of a vertex format.

sealed class VertexElement implements IComparable<VertexElement>
  IEquatable<VertexElement>

Public / Attributes

Count

The number of data tuples in this vertex format element.

public readonly field Count
type int32

Offset

The offset to the first byte of this element in the vertex.

public readonly field Offset
type int32

Size

Size of this element in the vertex, in bytes.

public property Size { get }
type int32
value [>=0] The size in bytes or 0 if this is a placeholder for Usage.

Type

The data type of this vertex format element or Unknown if this is a placeholder for Usage.

public readonly field Type
type VertexElementType

Usage

The usage semantics of this vertex format element.

public readonly field Usage
type VertexElementUsage

Public / Constructors

VertexElement

Creates a new instance of VertexElement.

public constructor VertexElement (int32 offset, VertexElementUsage usage, VertexElementType type, int32 count)
params offset [>=0] The offset to the first byte of this element in the vertex.
  usage The usage semantics of the vertex format element.
  type The data type of the vertex format element. Set to Unknown to create an empty placeholder for usage.
  count [0..4] The number of data tuples in the vertex format element. Set to 0 to create an empty placeholder for usage.

Public / Methods

CompareTo

Compares this object with the given one.

[Pure]
public method CompareTo (VertexElement other)
type int32
params other The object to compare to.
returns < 0 : if this object is less than other,
= 0 : if this object is equal to other,
> 0 : if this object is greater than other.
implements IComparable.CompareTo

Equals

Compares this object with the given one.

[Pure]
public method Equals (VertexElement 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

Compares this object with the given one.

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

GetHashCode

[Pure]
public override method GetHashCode ()
type int32