[][src]Function wlroots::render::matrix::projection

pub fn projection(
    matrix: [f32; 9],
    width: i32,
    height: i32,
    transform: wl_output_transform
) -> [f32; 9]

Create a 2D orthographic projection matrix of (width, height) with a specified wl_output_transform