IVertexElementWriterStream

Description

interface Tinman.Terrain.Rendering.IVertexElementWriterStream

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

Public / Methods

BeginStream


public method BeginStream → (1)

stream in : IDataStream

[not-null]
The output stream.

Begins writing of vertex element data.

WriteVertexElementStream

2 overloads


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


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