summaryrefslogtreecommitdiff
path: root/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer.rs')
-rw-r--r--src/renderer.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index e97b0fd..4768615 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -230,6 +230,7 @@ impl Renderer {
})
}
+ /// Reconfigure the surface
fn reconfigure(&mut self) {
self.surface.configure(&self.device, &self.surface_config);
}
@@ -286,10 +287,12 @@ impl Renderer {
&mut self.camera
}
+ /// Get a reference to the texture atlas
pub const fn textures(&self) -> &TextureAtlas {
&self.textures
}
+ /// Get a mutable reference to the texture atlas
pub fn textures_mut(&mut self) -> &mut TextureAtlas {
&mut self.textures
}