1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
pub mod image; // pub mod svg; pub mod buffer; pub mod shapes; #[inline] pub fn orthographic_projection(width: f32, height: f32) -> [f32; 16] { [ 2.0 / width, 0.0, 0.0, 0.0, 0.0, -2.0 / height, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -1.0, 1.0, 0.0, 1.0, ] }