Added GLSL man page link

This commit is contained in:
Christophe Riccio 2011-03-02 15:55:45 +00:00
parent 4a81db96e2
commit 06c18d08d7

View File

@ -249,21 +249,27 @@ namespace glm
//! Splits x into a floating-point significand in the range //! Splits x into a floating-point significand in the range
//! [0.5, 1.0) and an integral exponent of two, such that: //! [0.5, 1.0) and an integral exponent of two, such that:
//! x = significand * exp(2, exponent) //! x = significand * exp(2, exponent)
//!
//! The significand is returned by the function and the //! The significand is returned by the function and the
//! exponent is returned in the parameter exp. For a //! exponent is returned in the parameter exp. For a
//! floating-point value of zero, the significant and exponent //! floating-point value of zero, the significant and exponent
//! are both zero. For a floating-point value that is an //! are both zero. For a floating-point value that is an
//! infinity or is not a number, the results are undefined. //! infinity or is not a number, the results are undefined.
//! (From GLSL 4.00.08 specification, section 8.3) //!
//! \li <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/frexp.xml">GLSL frexp man page</a>
//! \li GLSL 4.00.08 specification, section 8.3
template <typename genType, typename genIType> template <typename genType, typename genIType>
genType frexp(genType const & x, genIType & exp); genType frexp(genType const & x, genIType & exp);
//! Builds a floating-point number from x and the //! Builds a floating-point number from x and the
//! corresponding integral exponent of two in exp, returning: //! corresponding integral exponent of two in exp, returning:
//! significand * exp(2, exponent) //! significand * exp(2, exponent)
//!
//! If this product is too large to be represented in the //! If this product is too large to be represented in the
//! floating-point type, the result is undefined. //! floating-point type, the result is undefined.
//! (From GLSL 4.00.08 specification, section 8.3) //!
//! \li <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/ldexp.xml">GLSL ldexp man page</a>;
//! \li GLSL 4.00.08 specification, section 8.3
template <typename genType, typename genIType> template <typename genType, typename genIType>
genType ldexp(genType const & x, genIType const & exp); genType ldexp(genType const & x, genIType const & exp);