pub struct Scene {
pub camera: Option<Camera>,
pub shapes: Option<World>,
}Expand description
Scene to render.
Usually parsed from a scene file.
Fields§
§camera: Option<Camera>§shapes: Option<World>Implementations§
source§impl Scene
impl Scene
sourcepub fn read_scene_file(path: &Path, cli: Cli) -> Result<Self, SceneErr>
pub fn read_scene_file(path: &Path, cli: Cli) -> Result<Self, SceneErr>
Build up scene from a scene file (yaml formatted).
Wrapper around parse_scene
method of InputStream.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin 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