From 20d95c80c6ab98477dc43109bb8c1b3ef5e3cf7a Mon Sep 17 00:00:00 2001 From: Victor Brekenfeld Date: Sat, 8 Jan 2022 21:23:43 +0100 Subject: [PATCH] gles2: Expose `Gles2Frame`s projection matrix --- src/backend/renderer/gles2/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backend/renderer/gles2/mod.rs b/src/backend/renderer/gles2/mod.rs index ee481e1..4b3d825 100644 --- a/src/backend/renderer/gles2/mod.rs +++ b/src/backend/renderer/gles2/mod.rs @@ -1428,4 +1428,9 @@ impl Gles2Frame { Ok(()) } + + /// Projection matrix for this frame + pub fn projection(&self) -> &[f32; 9] { + self.current_projection.as_ref() + } }