Browse Source

Math: document why unpacking is done this way.

pull/190/head
Vladimír Vondruš 9 years ago
parent
commit
54c7b8d775
  1. 2
      src/Magnum/Math/Packing.h

2
src/Magnum/Math/Packing.h

@ -55,6 +55,8 @@ Float b = Math::unpack<Float, UnsignedByte>('\xFF');
@see @ref pack() @see @ref pack()
*/ */
/* Signed conversion with max(val, -1) according to
https://www.opengl.org/registry/specs/EXT/texture_snorm.txt */
#ifdef DOXYGEN_GENERATING_OUTPUT #ifdef DOXYGEN_GENERATING_OUTPUT
template<class FloatingPoint, class Integral> inline FloatingPoint unpack(const Integral& value); template<class FloatingPoint, class Integral> inline FloatingPoint unpack(const Integral& value);
#else #else

Loading…
Cancel
Save