Browse Source

Math: add more GLU search keywords.

pull/231/head
Vladimír Vondruš 8 years ago
parent
commit
f9dbaef465
  1. 1
      src/Magnum/Math/Matrix3.h
  2. 3
      src/Magnum/Math/Matrix4.h

1
src/Magnum/Math/Matrix3.h

@ -175,6 +175,7 @@ template<class T> class Matrix3: public Matrix3x3<T> {
* @f]
* @see @ref Matrix4::orthographicProjection(),
* @ref Matrix4::perspectiveProjection()
* @m_keywords{gluOrtho2D()}
*/
static Matrix3<T> projection(const Vector2<T>& size) {
return scaling(2.0f/size);

3
src/Magnum/Math/Matrix4.h

@ -272,6 +272,7 @@ template<class T> class Matrix4: public Matrix4x4<T> {
* \end{pmatrix}
* @f]
* @see @ref perspectiveProjection(), @ref Matrix3::projection()
* @m_keywords{gluOrtho()}
*/
static Matrix4<T> orthographicProjection(const Vector2<T>& size, T near, T far);
@ -300,6 +301,7 @@ template<class T> class Matrix4: public Matrix4x4<T> {
* @f]
* @see @ref orthographicProjection(), @ref Matrix3::projection(),
* @ref Constants::inf()
* @m_keywords{gluPerspective()}
*/
static Matrix4<T> perspectiveProjection(const Vector2<T>& size, T near, T far);
@ -329,6 +331,7 @@ template<class T> class Matrix4: public Matrix4x4<T> {
* @f]
* @see @ref orthographicProjection(), @ref Matrix3::projection(),
* @ref Constants::inf()
* @m_keywords{gluPerspective()}
*/
static Matrix4<T> perspectiveProjection(Rad<T> fov, T aspectRatio, T near, T far) {
const T xyScale = 2*std::tan(T(fov)/2)*near;

Loading…
Cancel
Save