Function cgmath::frustum

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

Create a perspective matrix from a view frustrum.

This is the equivalent of the now deprecated [glFrustrum] (http://www.opengl.org/sdk/docs/man2/xhtml/glFrustum.xml) function.