pub struct Scene {
pub meta: Option<Meta>,
pub meshes: Vec<Mesh>,
pub mesh_resources: Vec<usize>,
pub nodes: Vec<Node>,
pub subtrees: Vec<usize>,
pub roots: Vec<usize>,
}Expand description
A scene: the meshes, and the nodes that place them.
Fields§
§meta: Option<Meta>§meshes: Vec<Mesh>The meshes, one per mesh chunk, in file order.
mesh_resources: Vec<usize>The meshes the scene keeps as shared on purpose, as indices into
meshes: a program editing one changes every leaf that shows it.
nodes: Vec<Node>The nodes, children first.
subtrees: Vec<usize>The subtrees references copy, as the indices of their root nodes.
roots: Vec<usize>The top-level nodes, in order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Scene
Auto Trait Implementations§
impl Forget for Scene
impl Freeze for Scene
impl Move 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