diff options
author | HampusM <hampus@hampusmat.com> | 2023-10-26 20:37:05 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2023-10-26 20:37:05 +0200 |
commit | 87897e8d51b26c5c9f6c2fc1ab7d07d6d4a9d5e2 (patch) | |
tree | b2b0400a7ef5be91b99ccc6ab8d676ebdb53814b /engine | |
parent | 25ea58edff537bd06e7e771850d8ec84ff9df65b (diff) |
feat(engine): add non mutable camera getter to Engine
Diffstat (limited to 'engine')
-rw-r--r-- | engine/src/lib.rs | 8 |
1 files changed, 7 insertions, 1 deletions
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 } |