diff options
| author | Micha White <botahamec@outlook.com> | 2022-10-17 23:06:51 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-10-17 23:06:51 -0400 |
| commit | 9359df753ef76fdeb40a0de19c67080329710067 (patch) | |
| tree | 40a6b32ce940830c680e3f6b0b7424b50c497dc3 /src/renderer.rs | |
| parent | bc859833a41aa581228a476c3fa81acac9730a2e (diff) | |
More docs
Diffstat (limited to 'src/renderer.rs')
| -rw-r--r-- | src/renderer.rs | 3 |
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 } |
