Shared view resource access

This commit is contained in:
hodasemi 2024-08-27 11:53:45 +02:00
parent ead7f792b3
commit 504efe4c07

View file

@ -237,6 +237,10 @@ impl Scene {
self.entity_mut(entity)?,
))
}
pub fn view_resource(&mut self) -> (&mut View, &mut Resources) {
Ok((self.renderer.view_mut(), &mut self.resources))
}
}
impl Scene {