Function cgmath::frustum [] [src]

pub fn frustum<S: BaseFloat>(
    left: S,
    right: S,
    bottom: S,
    top: S,
    near: S,
    far: S
) -> Matrix4<S>

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.