From 9359df753ef76fdeb40a0de19c67080329710067 Mon Sep 17 00:00:00 2001 From: Micha White Date: Mon, 17 Oct 2022 23:06:51 -0400 Subject: More docs --- src/renderer.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/renderer.rs') 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 } -- cgit v1.2.3