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,