Function cgmath::ortho

source ·
pub fn ortho<S: BaseFloat>(
    left: S,
    right: S,
    bottom: S,
    top: S,
    near: S,
    far: S
) -> Matrix4<S>
Expand description

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.