From f9dbaef46511248ee445149962bce08e4accdd10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 23 Feb 2018 10:45:46 +0100 Subject: [PATCH] Math: add more GLU search keywords. --- src/Magnum/Math/Matrix3.h | 1 + src/Magnum/Math/Matrix4.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Magnum/Math/Matrix3.h b/src/Magnum/Math/Matrix3.h index f28ad8461..8b976746e 100644 --- a/src/Magnum/Math/Matrix3.h +++ b/src/Magnum/Math/Matrix3.h @@ -175,6 +175,7 @@ template class Matrix3: public Matrix3x3 { * @f] * @see @ref Matrix4::orthographicProjection(), * @ref Matrix4::perspectiveProjection() + * @m_keywords{gluOrtho2D()} */ static Matrix3 projection(const Vector2& size) { return scaling(2.0f/size); diff --git a/src/Magnum/Math/Matrix4.h b/src/Magnum/Math/Matrix4.h index 2d21bc21a..c62b660a3 100644 --- a/src/Magnum/Math/Matrix4.h +++ b/src/Magnum/Math/Matrix4.h @@ -272,6 +272,7 @@ template class Matrix4: public Matrix4x4 { * \end{pmatrix} * @f] * @see @ref perspectiveProjection(), @ref Matrix3::projection() + * @m_keywords{gluOrtho()} */ static Matrix4 orthographicProjection(const Vector2& size, T near, T far); @@ -300,6 +301,7 @@ template class Matrix4: public Matrix4x4 { * @f] * @see @ref orthographicProjection(), @ref Matrix3::projection(), * @ref Constants::inf() + * @m_keywords{gluPerspective()} */ static Matrix4 perspectiveProjection(const Vector2& size, T near, T far); @@ -329,6 +331,7 @@ template class Matrix4: public Matrix4x4 { * @f] * @see @ref orthographicProjection(), @ref Matrix3::projection(), * @ref Constants::inf() + * @m_keywords{gluPerspective()} */ static Matrix4 perspectiveProjection(Rad fov, T aspectRatio, T near, T far) { const T xyScale = 2*std::tan(T(fov)/2)*near;