TexelBufferBitPattern

Description

abstract class Tinman.Terrain.Rendering.TexelBufferBitPattern

Derived from

TexelBuffer abstract

Extended by

TexelBufferBitPattern16 abstract
TexelBufferBitPattern32 abstract
TexelBufferBitPattern64 abstract

Abstract base class for TexelBuffers that encode one texel in one machine word (8, 16 or 32 bits) using up to four channels (e.g. red, green, blue and alpha).

Protected / Constructors

TexelBufferBitPattern


protected constructor TexelBufferBitPattern → (12)

width in : int32

[>0]
The buffer width, in texels.

height in : int32

[>0]
The buffer height, in texels.

format in : TextureFormat

[not-null]
The texture format.

mipmap in : TexelBuffer

Texel buffer of next mipmap or null.

channel0Bits in : int32

[1..8]
Bit count of first channel (starting from least significant bit).

channel1Bits opt : int32 = 0

[0..8]
Bit count of second channel or 0 if not used.

channel2Bits opt : int32 = 0

[0..8]
Bit count of third channel or 0 if not used.

channel3Bits opt : int32 = 0

[0..8]
Bit count of fourth channel or 0 if not used.

channel4Bits opt : int32 = 0

[0..8]
Bit count of fifth channel or 0 if not used.

channel5Bits opt : int32 = 0

[0..8]
Bit count of sixth channel or 0 if not used.

channel6Bits opt : int32 = 0

[0..8]
Bit count of seventh channel or 0 if not used.

channel7Bits opt : int32 = 0

[0..8]
Bit count of eighth channel or 0 if not used.

Creates a new instance of TexelBufferBitPattern.

Protected / Attributes

channels


protected readonly attribute channels → (int32)

The number of channels.

mask


protected attribute mask → (int64 [ ])

Bitmask for extracting channel bit from texel machine word.

shift


protected attribute shift → (int32 [ ])

Number of left shifts from 1 to least significant bit of channel.