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

interface IVertexFormat in Tinman.Terrain.Vertices.Formats

Base interface for classes that convert vertex data stored in a one or more IVertexArray containers to GPU vertex data.

interface IVertexFormat extends IVertexArraysDependent
  IVertexElements
  base of VertexFormat

Remarks

An IVertexFormat always uses the byte endianess of the system when writing multi-byte values (e.g. float32, int32).

Attributes

VertexElements

Returns the vertex declaration elements.

property VertexElements { get }
type VertexElements
value [not-null] The vertex declaration elements.
inherited IVertexElements.VertexElements

Methods

Append

Appends the given vertex format to this vertex format.

[Pure]
method Append (IVertexFormat format)
type IVertexFormat
params format [not-null] The vertex format to append.
returns [not-null] The resulting vertex format.

SetVertexArrays

Sets the vertex data containers from which this vertex converter shall read vertex data.

method SetVertexArrays (VertexArrays vertexArrays)
params vertexArrays [not-null] The vertex data collection.
inherited IVertexArraysDependent.SetVertexArrays

WriteVertex

Writes vertex data to the given vertex buffer.

[Pure]
method WriteVertex (int32 vertex, ByteBuffer buffer)
params vertex [>=0] The vertex index.
  buffer [not-null] The target vertex buffer region.

Extensions

WriteVertices

Writes vertex data to the given vertex buffer.

method WriteVertices (int32 first, int32 count, ByteBuffer buffer)
params first [>=0] Index of first vertex to write.
  count [>=0] Number of vertices to write, starting at first.
  buffer [not-null] The output byte buffer.