summaryrefslogtreecommitdiff
path: root/engine/src
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src')
-rw-r--r--engine/src/lib.rs8
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
}