FloatBuffer

Description

abstract class Tinman.Terrain.Buffers.FloatBuffer

Derived from

SampleBufferFloat32 abstract

Extended by

DistanceBuffer sealed
NormalBuffer sealed
SlopeBuffer sealed
VectorBuffer sealed

A generic buffer for 32-bit floating-point values with a tuple size between one and four.

Depending on the tuple size N, tuple values are mapped to color channels as follows:

The pixel format flag PixelFormat.Precision is also present in each of the above cases. If the alpha channel is not mapped, it has the default value 1 (i.e., fully opaque). If the blue channel is not mapped, it has the default value 0. The intensity channel is replicated to the red, green and blue channels.

Protected / Constructors

Float​Buffer

2 overloads


protected constructor FloatBuffer1 → (3)

width in : int32

[>0]
Width of this sample buffer.

height in : int32

[>0]
Height of this sample buffer.

tupleSize in : int32

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

Creates a new instance of FloatBuffer.


protected constructor FloatBuffer2 → (6)

width in : int32

[>0]
Width of this sample buffer.

height in : int32

[>0]
Height of this sample buffer.

offset in : int32

[>=0]
Offset of the top-left sample of this sample buffer in the buffer array.

stride in : int32

[>0]
The stride of this sample buffer.

tupleSize in : int32

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

samples in : float32 [ ]

[not-null]
The buffer samples.

Creates a new instance of FloatBuffer.

This sample buffer will use the given data array.