Magnum/Math/Packing.h file

Functions Magnum::Math::pack(), Magnum::Math::unpack(), Magnum::Math::packHalf(), Magnum::Math::unpackHalf()

Contents

Namespaces

namespace Magnum
Root namespace.
namespace Magnum::Math
Math library.

Functions

template<class FloatingPoint, class Integral>
auto unpack(const Integral& value) -> FloatingPoint
Unpack integral value into a floating-point representation.
template<class FloatingPoint, class Integral, UnsignedInt bits>
auto unpack(const Integral& value) -> FloatingPoint
Unpack integer bits into a floating-point representation.
template<class FloatingPoint, class Integral>
auto normalize(const Integral& value) -> FloatingPoint deprecated
Unpack integral value into a floating-point representation.
template<class Integral, class FloatingPoint>
auto pack(const FloatingPoint& value) -> Integral
Pack floating-point value into an integer representation.
template<class Integral, UnsignedInt bits, class FloatingPoint>
auto pack(FloatingPoint value) -> Integral
Pack floating-point value into integer bits.
template<class Integral, class FloatingPoint>
auto denormalize(const FloatingPoint& value) -> Integral deprecated
Pack floating-point value into an integer representation.
auto packHalf(Float value) -> UnsignedShort
Pack 32-bit float value into 16-bit half-float representation.
auto unpackHalf(UnsignedShort value) -> Float
Unpack 16-bit half-float value into 32-bit float representation.