Function three_d::core::prelude::ortho

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

Create an orthographic projection matrix.

This is the equivalent of the now deprecated glOrtho function.