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 Scenewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Mesh>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Node>: Freeze,
impl Move for Scene
impl RefUnwindSafe for Scene
impl Send for Scenewhere
RawVecInner: Send,
impl Sync for Scenewhere
RawVecInner: Sync,
impl Unpin for Scene
impl UnsafeUnpin for Scenewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Mesh>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
impl UnwindSafe for Scenewhere
RawVecInner: UnwindSafe,
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