fn extent_to_proj(extent: &Extent2D, znear: f32, zfar: f32) -> Mat4f {
    let left = -(extent.width() as f32) / 2.0;
    let right = (extent.width() as f32) / 2.0;
    let top = (extent.height() as f32) / 2.0;
    let bottom = -(extent.height() as f32) / 2.0;

    view_proj::orthographic(left, right, top, bottom, znear, zfar)
}
/// Helper function to make an orthographic projection matrix.
Helper function to make an orthographic projection matrix.
Helper function to make an orthographic projection matrix .
fn extent_to_proj(extent: &Extent2D, znear: f32, zfar: f32) -> Mat4f {
    let left = -(extent.width() as f32) / 2.0;
    let right = (extent.width() as f32) / 2.0;
    let top = (extent.height() as f32) / 2.0;
    let bottom = -(extent.height() as f32) / 2.0;
    view_proj::orthographic(left, right, top, bottom, znear, zfar)
}
fn extent_to_proj ( extent : & Extent2D , znear : f32 , zfar : f32 ) -> Mat4f { let left = - ( extent . width ( ) as f32 ) / 2.0 ; let right = ( extent . width ( ) as f32 ) / 2.0 ; let top = ( extent . height ( ) as f32 ) / 2.0 ; let bottom = - ( extent . height ( ) as f32 ) / 2.0 ; view_proj :: orthographic ( left , right , top , bottom , znear , zfar ) }
Helper function to make an orthographic projection matrix.
Helper function to make an orthographic projection matrix .
extent
&Extent2D
znear
f32
zfar
f32
extent
&Extent2D
znear
f32
zfar
f32