IVertexComponent

Description

interface Tinman.Terrain.Vertices.Formats.IVertexComponent

Derived from

IVertexArraysDependent

Extended by

VertexComponent abstract

Base interface for classes that write a single component of a vertex format, e.g. texture coordinates of tangent vectors.

Public / Methods

Begin


public method Begin → (1)

buffer in : ByteBuffer

[not-null]
The vertex buffer. The current buffer position must point to the vertex with index 0.

Begins to write vertex data to the given vertex buffer.

End


public method End → ()

Ends writing of vertex data.

WriteVertex


[BeginEnd]
public method WriteVertex → (1)

vertex in : int32

The vertex index.

Writes vertex data to the current position of the vertex buffer.

Public / Attributes

VertexLayout


public attribute VertexLayout → (get)

value : VertexElement

[not-null]
The vertex element.

Returns the element of this vertex component.