IVertexElementWriterBuffer

Description

interface Tinman.Terrain.Rendering.IVertexElementWriterBuffer

Base interface for classes that write vertex element data (see VertexElement) to an output buffer.

Public / Methods

Begin​Buffer


public method BeginBuffer → (1)

buffer in : ByteBuffer

[not-null]
The output byte buffer.

Begins writing of vertex element data.

Write​Vertex​Element​Buffer

2 overloads


[BeginEnd]
public method WriteVertexElementBuffer1 → (4)

in : int32

The first value.

opt : int32 = 0

The second value.

opt : int32 = 0

The third value.

opt : int32 = 0

The fourth value.

Writes a vertex element with up to four integer components.

When this method is called on a vertex element that has a floating-point type (see VertexElement.IsFloatType), the given values will be normalized, e.g. converted from [0..255] to [0..1] for VertexElementType.UInt8.


[BeginEnd]
public method WriteVertexElementBuffer2 → (4)

in : float32

The first value.

opt : float32 = 0

The second value.

opt : float32 = 0

The third value.

opt : float32 = 0

The fourth value.

Writes a vertex element with up to four floating-point components.

When this method is called on a vertex element that has an integer-based type (see VertexElement.IsIntegerType, the given values will be denormalized, e.g. converted from [0..1] to [0..255] for VertexElementType.UInt8.