From e58bd7b87820a3901882353d5b04bfaff8c846dd Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Wed, 11 Jul 2018 10:56:06 +0200 Subject: [PATCH] Fix links to OpenGL API in docs Those links were broken before, since the [] and () part were split into two different lines. This also caused warnings on nightly, which are now fixed. --- src/projection.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/projection.rs b/src/projection.rs index cd515f6..5219ee3 100644 --- a/src/projection.rs +++ b/src/projection.rs @@ -24,8 +24,9 @@ use num::BaseFloat; /// Create a perspective projection matrix. /// -/// This is the equivalent to the [gluPerspective] -/// (http://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml) function. +/// This is the equivalent to the [`gluPerspective`] function. +/// +/// [`gluPerspective`]: https://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml pub fn perspective>>( fovy: A, aspect: S, @@ -42,8 +43,9 @@ pub fn perspective>>( /// Create a perspective matrix from a view frustum. /// -/// This is the equivalent of the now deprecated [glFrustum] -/// (http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml) function. +/// This is the equivalent of the now deprecated [`glFrustum`] function. +/// +/// [`glFrustum`]: http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml pub fn frustum(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4 { Perspective { left: left, @@ -57,8 +59,9 @@ pub fn frustum(left: S, right: S, bottom: S, top: S, near: S, far: /// Create an orthographic projection matrix. /// -/// This is the equivalent of the now deprecated [glOrtho] -/// (http://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml) function. +/// This is the equivalent of the now deprecated [`glOrtho`] function. +/// +/// [`glOrtho`]: http://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml pub fn ortho(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4 { Ortho { left: left,