IVertexElementWriterBase

Description

interface Tinman.Terrain.Rendering.IVertexElementWriterBase

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

Public / Methods

End


public method End → ()

Ends writing of vertex element data.

Write​Vertex​Element​Float


[BeginEnd]
public method WriteVertexElementFloat → (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.

IOException

If an I/O exception has occurred while writing to the output stream.

Write​Vertex​Element​Int


[BeginEnd]
public method WriteVertexElementInt → (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.

IOException

If an I/O exception has occurred while writing to the output stream.