From 87897e8d51b26c5c9f6c2fc1ab7d07d6d4a9d5e2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 26 Oct 2023 20:37:05 +0200 Subject: feat(engine): add non mutable camera getter to Engine --- engine/src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/engine/src/lib.rs b/engine/src/lib.rs index cc629b2..d848112 100644 --- a/engine/src/lib.rs +++ b/engine/src/lib.rs @@ -123,7 +123,13 @@ impl Engine Ok(()) } - pub fn camera(&mut self) -> &mut Camera + #[must_use] + pub fn camera(&self) -> &Camera + { + &self.camera + } + + pub fn camera_mut(&mut self) -> &mut Camera { &mut self.camera } -- cgit v1.2.3-18-g5258