This is the documentation for Enlighten.

class Enlighten Alpha8Normalised

class Enlighten::Alpha8Normalised

Class to store a normalised single channel value in 1 byte.

Typedefs

Name Description
float ExpandedType

The expanded type.

Variables

Name Description
const ExpandedType MaxValue

Gets the maximum representable value, represented in the expanded type.

Functions

Name Description
Alpha8Normalised(const ExpandedType &)

Construct a compressed Alpha8Normalised object from a float.

ByteSwap()

Byte swaps the value.

operator ExpandedType()

Uncompress the Alpha8Normalised object to a float value.

Zero()

Gets a zero value, represented in the expanded type.


GEO_FORCE_INLINE Enlighten::Alpha8Normalised::Alpha8Normalised


public: GEO_FORCE_INLINE Alpha8Normalised
(
    const ExpandedType & value
)


Construct a compressed Alpha8Normalised object from a float.


void Enlighten::Alpha8Normalised::ByteSwap


public: void ByteSwap()


Byte swaps the value.


GEO_FORCE_INLINE Enlighten::Alpha8Normalised::operator ExpandedType


public: GEO_FORCE_INLINE operator ExpandedType() const


Uncompress the Alpha8Normalised object to a float value.


static ExpandedType Enlighten::Alpha8Normalised::Zero


public: ExpandedType Zero()


Gets a zero value, represented in the expanded type.