diff --git a/src/AbstractImage.h b/src/AbstractImage.h index 3dea087db..815371bfe 100644 --- a/src/AbstractImage.h +++ b/src/AbstractImage.h @@ -44,6 +44,7 @@ class MAGNUM_EXPORT AbstractImage { */ /** @brief Color components */ + /** @todo Support *_INTEGER types */ enum class Components: GLenum { #ifndef MAGNUM_TARGET_GLES /** diff --git a/src/Color.h b/src/Color.h index 7dd384a1f..abfafa345 100644 --- a/src/Color.h +++ b/src/Color.h @@ -140,6 +140,8 @@ is always in range in range @f$ [0.0, 360.0] @f$, saturation and value in range @f$ [0.0, 1.0] @f$. @see Color4 + +@todo Signed normalization to [-1.0, 1.0] like in OpenGL? */ template class Color3: public Math::Vector3 { public: diff --git a/src/Math/Math.h b/src/Math/Math.h index 4f6d641a2..21191b360 100644 --- a/src/Math/Math.h +++ b/src/Math/Math.h @@ -104,6 +104,8 @@ float a = normalize('\127'); // b = 1.0f float b = normalize('\127'); @endcode + +@todo Signed normalization to [-1.0, 1.0] like in OpenGL? */ template inline constexpr typename std::enable_if::value && std::is_integral::value, FloatingPoint>::type normalize(Integral value) { return (FloatingPoint(value)-FloatingPoint(std::numeric_limits::min()))/ @@ -118,6 +120,8 @@ integral type. @note For best precision, `FloatingPoint` type should be always larger that resulting `Integral` type (e.g. `double` to `int`, `long double` to `long long`). + +@todo Signed normalization to [-1.0, 1.0] like in OpenGL? */ template inline constexpr typename std::enable_if::value && std::is_integral::value, Integral>::type denormalize(FloatingPoint value) { return std::numeric_limits::min() +