Shared view resource access
This commit is contained in:
parent
ead7f792b3
commit
504efe4c07
1 changed files with 4 additions and 0 deletions
|
@ -237,6 +237,10 @@ impl Scene {
|
||||||
self.entity_mut(entity)?,
|
self.entity_mut(entity)?,
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn view_resource(&mut self) -> (&mut View, &mut Resources) {
|
||||||
|
Ok((self.renderer.view_mut(), &mut self.resources))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Scene {
|
impl Scene {
|
||||||
|
|
Loading…
Reference in a new issue