Merge pull request #463 from LukasKalbertodt/fix-doc-links
Fix links to OpenGL API in docs
This commit is contained in:
commit
858d3ae8c8
1 changed files with 9 additions and 6 deletions
|
@ -24,8 +24,9 @@ use num::BaseFloat;
|
||||||
|
|
||||||
/// Create a perspective projection matrix.
|
/// Create a perspective projection matrix.
|
||||||
///
|
///
|
||||||
/// This is the equivalent to the [gluPerspective]
|
/// This is the equivalent to the [`gluPerspective`] function.
|
||||||
/// (http://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml) function.
|
///
|
||||||
|
/// [`gluPerspective`]: https://www.opengl.org/sdk/docs/man2/xhtml/gluPerspective.xml
|
||||||
pub fn perspective<S: BaseFloat, A: Into<Rad<S>>>(
|
pub fn perspective<S: BaseFloat, A: Into<Rad<S>>>(
|
||||||
fovy: A,
|
fovy: A,
|
||||||
aspect: S,
|
aspect: S,
|
||||||
|
@ -42,8 +43,9 @@ pub fn perspective<S: BaseFloat, A: Into<Rad<S>>>(
|
||||||
|
|
||||||
/// Create a perspective matrix from a view frustum.
|
/// Create a perspective matrix from a view frustum.
|
||||||
///
|
///
|
||||||
/// This is the equivalent of the now deprecated [glFrustum]
|
/// This is the equivalent of the now deprecated [`glFrustum`] function.
|
||||||
/// (http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml) function.
|
///
|
||||||
|
/// [`glFrustum`]: http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml
|
||||||
pub fn frustum<S: BaseFloat>(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4<S> {
|
pub fn frustum<S: BaseFloat>(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4<S> {
|
||||||
Perspective {
|
Perspective {
|
||||||
left: left,
|
left: left,
|
||||||
|
@ -57,8 +59,9 @@ pub fn frustum<S: BaseFloat>(left: S, right: S, bottom: S, top: S, near: S, far:
|
||||||
|
|
||||||
/// Create an orthographic projection matrix.
|
/// Create an orthographic projection matrix.
|
||||||
///
|
///
|
||||||
/// This is the equivalent of the now deprecated [glOrtho]
|
/// This is the equivalent of the now deprecated [`glOrtho`] function.
|
||||||
/// (http://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml) function.
|
///
|
||||||
|
/// [`glOrtho`]: http://www.opengl.org/sdk/docs/man2/xhtml/glOrtho.xml
|
||||||
pub fn ortho<S: BaseFloat>(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4<S> {
|
pub fn ortho<S: BaseFloat>(left: S, right: S, bottom: S, top: S, near: S, far: S) -> Matrix4<S> {
|
||||||
Ortho {
|
Ortho {
|
||||||
left: left,
|
left: left,
|
||||||
|
|
Loading…
Reference in a new issue