summaryrefslogtreecommitdiff
path: root/src/renderer.rs
diff options
context:
space:
mode:
authorMicha White <botahamec@outlook.com>2022-10-17 23:06:51 -0400
committerMicha White <botahamec@outlook.com>2022-10-17 23:06:51 -0400
commit9359df753ef76fdeb40a0de19c67080329710067 (patch)
tree40a6b32ce940830c680e3f6b0b7424b50c497dc3 /src/renderer.rs
parentbc859833a41aa581228a476c3fa81acac9730a2e (diff)
More docs
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
}