TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

interface IVertexElementWriter in Tinman.Terrain.Rendering

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

interface IVertexElementWriter extends IVertexElementWriterBuffer
  IVertexElementWriterStream

See also:

VertexElements.Writer

Extensions

WriteVertexElementFloat2

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

[BeginEnd]
method WriteVertexElementFloat2 (Vec2F v)
params v The element value vector.

Remarks:

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

Exceptions:

WriteVertexElementFloat3

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

[BeginEnd]
method WriteVertexElementFloat3 (Vec3F v)
params v The element value vector.

Remarks:

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

Exceptions:

WriteVertexElementFloat4

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

[BeginEnd]
method WriteVertexElementFloat4 (Vec4F v)
params v The element value vector.

Remarks:

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

Exceptions:

WriteVertexElementInt2

Writes a vertex element with up to four integer components.

[BeginEnd]
method WriteVertexElementInt2 (Vec2I v)
params v The element value vector.

Remarks:

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

Exceptions:

WriteVertexElementInt3

Writes a vertex element with up to four integer components.

[BeginEnd]
method WriteVertexElementInt3 (Vec3I v)
params v The element value vector.

Remarks:

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

Exceptions:

WriteVertexElementInt4

Writes a vertex element with up to four integer components.

[BeginEnd]
method WriteVertexElementInt4 (Vec4I v)
params v The element value vector.

Remarks:

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

Exceptions:

Methods

BeginBuffer

Begins writing of vertex element data.

method BeginBuffer (ByteBuffer buffer)
params buffer [not-null] The output byte buffer.
inherited IVertexElementWriterBuffer.BeginBuffer

BeginStream

Begins writing of vertex element data.

method BeginStream (IDataStream stream)
params stream [not-null] The output stream.
inherited IVertexElementWriterStream.BeginStream

End

Ends writing of vertex element data.

method End ()
inherited IVertexElementWriterBase.End

WriteVertexElementBuffer

Writes a vertex element with up to four integer components.

[BeginEnd]
method WriteVertexElementBuffer (int32 x, int32 y = 0, int32 z = 0, int32 w = 0)
params x The first value.
  y The second value. Defaults to 0.
  z The third value. Defaults to 0.
  w The fourth value. Defaults to 0.
inherited IVertexElementWriterBuffer.WriteVertexElementBuffer

Remarks:

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


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

[BeginEnd]
method WriteVertexElementBuffer (float32 x, float32 y = 0, float32 z = 0, float32 w = 0)
params x The first value.
  y The second value. Defaults to 0.
  z The third value. Defaults to 0.
  w The fourth value. Defaults to 0.
inherited IVertexElementWriterBuffer.WriteVertexElementBuffer

Remarks:

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

WriteVertexElementFloat

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

[BeginEnd]
method WriteVertexElementFloat (float32 x, float32 y = 0, float32 z = 0, float32 w = 0)
params x The first value.
  y The second value. Defaults to 0.
  z The third value. Defaults to 0.
  w The fourth value. Defaults to 0.
inherited IVertexElementWriterBase.WriteVertexElementFloat

Remarks:

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

Exceptions:

WriteVertexElementInt

Writes a vertex element with up to four integer components.

[BeginEnd]
method WriteVertexElementInt (int32 x, int32 y = 0, int32 z = 0, int32 w = 0)
params x The first value.
  y The second value. Defaults to 0.
  z The third value. Defaults to 0.
  w The fourth value. Defaults to 0.
inherited IVertexElementWriterBase.WriteVertexElementInt

Remarks:

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

Exceptions:

WriteVertexElementStream

Writes a vertex element with up to four integer components.

[BeginEnd]
method WriteVertexElementStream (int32 x, int32 y = 0, int32 z = 0, int32 w = 0)
params x The first value.
  y The second value. Defaults to 0.
  z The third value. Defaults to 0.
  w The fourth value. Defaults to 0.
inherited IVertexElementWriterStream.WriteVertexElementStream

Remarks:

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

Exceptions:


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

[BeginEnd]
method WriteVertexElementStream (float32 x, float32 y = 0, float32 z = 0, float32 w = 0)
params x The first value.
  y The second value. Defaults to 0.
  z The third value. Defaults to 0.
  w The fourth value. Defaults to 0.
inherited IVertexElementWriterStream.WriteVertexElementStream

Remarks:

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

Exceptions: