VectorBuffer

Description

sealed class Tinman.Terrain.Buffers.VectorBuffer

Derived from

FloatBuffer abstract

An implementation of the ISampleBuffer interface that stores vectors with 32-bit floating-point components.

Each vector buffer sample is a tuple of one to four floating-point values which represent the vector components along the X, Y, Z and W-axis.

Public / Constants

Scanline​Range​Default


public static readonly attribute ScanlineRangeDefault → (PixelRange)

The default value of ISampleBuffer.ScanlineRange: [0..1]

Public / Constructors

Create


public static method Create → (3)

width in : int32

[>0]
Width of the elevation buffer.

height in : int32

[>0]
Height of the elevation buffer.

tupleSize in : int32

[1..4]
The tuple size of each buffer sample.

returns → VectorBuffer

The created VectorBuffer object.

Creates a new instance of VectorBuffer.

Instances of VectorBuffer can be pooled by calling IDeletable.Delete.