diff options
author | 2020-08-17 18:11:11 +0200 | |
---|---|---|
committer | 2020-08-17 18:11:11 +0200 | |
commit | 02ca90a22d5c4235de4491f840dc9f55f9967618 (patch) | |
tree | 51f0f4f0e1636d4a8a918ad0a3081dfbf3a92217 /graphics | |
parent | b90e5c4e0560226695a35444732d646117658ce8 (diff) | |
download | iced-02ca90a22d5c4235de4491f840dc9f55f9967618.tar.gz iced-02ca90a22d5c4235de4491f840dc9f55f9967618.tar.bz2 iced-02ca90a22d5c4235de4491f840dc9f55f9967618.zip |
Invert Y axis in `Transformation::orthographic`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/transformation.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/src/transformation.rs b/graphics/src/transformation.rs index 2ae74134..2a19caed 100644 --- a/graphics/src/transformation.rs +++ b/graphics/src/transformation.rs @@ -14,7 +14,11 @@ impl Transformation { /// Creates an orthographic projection. #[rustfmt::skip] pub fn orthographic(width: u32, height: u32) -> Transformation { - Transformation(Mat4::orthographic_rh_gl(0.0, width as f32, 0.0, height as f32, -1.0, 1.0)) + Transformation(Mat4::orthographic_rh_gl( + 0.0, width as f32, + height as f32, 0.0, + -1.0, 1.0 + )) } /// Creates a translate transformation. |