pub struct Scene {Show 26 fields
pub path: PathBuf,
pub files: Vec<PathBuf>,
pub materials: Vec<Entry<Material>>,
pub fallback: Option<String>,
pub meshes: Vec<Entry<Mesh>>,
pub objects: Vec<Entry<Object>>,
pub lights: Vec<Entry<Light>>,
pub emitters: Vec<Entry<Emitter>>,
pub movers: Vec<Entry<Mover>>,
pub contents: Vec<Entry<Content>>,
pub texts: Vec<Entry<Text>>,
pub sounds: Vec<Entry<Sound>>,
pub rigs: Vec<Entry<Rig>>,
pub tiles: Vec<Entry<Tiles>>,
pub sun: Option<Sun>,
pub sky: Option<Sky>,
pub haze: Option<Haze>,
pub camera: Option<Camera>,
pub finish: Option<Finish>,
pub finish_file: Option<FinishKeys>,
pub trace: Option<Trace>,
pub plates: Option<Plates>,
pub proxies: Vec<Entry<Proxy>>,
pub physics: Option<Physics>,
pub layers: BTreeMap<String, Vec<String>>,
pub warnings: Vec<Diagnostic>,
}Fields§
§path: PathBuf§files: Vec<PathBuf>§materials: Vec<Entry<Material>>§fallback: Option<String>§meshes: Vec<Entry<Mesh>>§objects: Vec<Entry<Object>>§lights: Vec<Entry<Light>>§emitters: Vec<Entry<Emitter>>§movers: Vec<Entry<Mover>>§contents: Vec<Entry<Content>>§texts: Vec<Entry<Text>>§sounds: Vec<Entry<Sound>>§rigs: Vec<Entry<Rig>>§tiles: Vec<Entry<Tiles>>§sun: Option<Sun>§sky: Option<Sky>§haze: Option<Haze>§camera: Option<Camera>§finish: Option<Finish>§finish_file: Option<FinishKeys>§trace: Option<Trace>§plates: Option<Plates>§proxies: Vec<Entry<Proxy>>§physics: Option<Physics>§layers: BTreeMap<String, Vec<String>>§warnings: Vec<Diagnostic>Implementations§
Source§impl Scene
impl Scene
pub fn material(&self, key: &str) -> Option<&Entry<Material>>
pub fn mesh(&self, key: &str) -> Option<&Entry<Mesh>>
pub fn object(&self, key: &str) -> Option<&Entry<Object>>
pub fn light(&self, key: &str) -> Option<&Entry<Light>>
pub fn emitter(&self, key: &str) -> Option<&Entry<Emitter>>
pub fn mover(&self, key: &str) -> Option<&Entry<Mover>>
pub fn content(&self, key: &str) -> Option<&Entry<Content>>
pub fn text(&self, key: &str) -> Option<&Entry<Text>>
pub fn sound(&self, key: &str) -> Option<&Entry<Sound>>
pub fn rig(&self, key: &str) -> Option<&Entry<Rig>>
pub fn tile_layer(&self, key: &str) -> Option<&Entry<Tiles>>
Trait Implementations§
impl StructuralPartialEq for Scene
Auto Trait Implementations§
impl Freeze for Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnsafeUnpin for Scene
impl UnwindSafe for Scene
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more