summaryrefslogtreecommitdiff
path: root/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer.rs')
-rw-r--r--src/renderer.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 4ac521f..55333f4 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -342,6 +342,16 @@ impl Renderer {
self.instances.clear();
}
+ /// Get the camera information
+ pub const fn camera(&self) -> &Camera {
+ &self.camera
+ }
+
+ /// Get a mutable reference to the camera
+ pub fn camera_mut(&mut self) -> &mut Camera {
+ &mut self.camera
+ }
+
fn refresh_camera_buffer(&mut self) {
self.queue.write_buffer(
&self.camera_buffer,