Struct three::scene::Scene
[−]
[src]
pub struct Scene { pub background: Background, // some fields omitted }
The root node of a tree of game objects that may be rendered by a Camera
.
Fields
background: Background
See Background
.
Methods
impl Scene
[src]
pub fn add<P>(&mut self, child_base: P) where
P: AsRef<Base>,
[src]
P: AsRef<Base>,
Add new Base
to the scene.
pub fn remove<P>(&mut self, child_base: P) where
P: AsRef<Base>,
[src]
P: AsRef<Base>,
Remove a previously added Base
from the scene.
impl Scene
[src]
pub fn sync_guard(&mut self) -> SyncGuard
[src]
Create new SyncGuard
.
This is performance-costly operation, you should not use it many times per frame.