IVertexElementWriter

Description

interface Tinman.Terrain.Rendering.IVertexElementWriter

Base interface for classes that write vertex element data (see VertexElement).

Extensions

Write​Vertex​Element​Float2


[BeginEnd]
public static method WriteVertexElementFloat2 → (1)

in : Vec2F

The element value vector.

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​Float3


[BeginEnd]
public static method WriteVertexElementFloat3 → (1)

in : Vec3F

The element value vector.

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​Float4


[BeginEnd]
public static method WriteVertexElementFloat4 → (1)

in : Vec4F

The element value vector.

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​Int2


[BeginEnd]
public static method WriteVertexElementInt2 → (1)

in : Vec2I

The element value vector.

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.

Write​Vertex​Element​Int3


[BeginEnd]
public static method WriteVertexElementInt3 → (1)

in : Vec3I

The element value vector.

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.

Write​Vertex​Element​Int4


[BeginEnd]
public static method WriteVertexElementInt4 → (1)

in : Vec4I

The element value vector.

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.