pub struct Scene { /* private fields */ }Implementations§
Source§impl Scene
impl Scene
pub fn new() -> Self
pub fn add_node(&mut self, node: SceneNode) -> NodeId
pub fn add_root(&mut self, id: NodeId)
pub fn add_child(&mut self, parent: NodeId, child: NodeId)
pub fn node(&self, id: NodeId) -> &SceneNode
pub fn node_mut(&mut self, id: NodeId) -> &mut SceneNode
pub fn roots(&self) -> &[NodeId] ⓘ
pub fn global_transform(&self, id: NodeId) -> Mat4
Sourcepub fn collect_render_items(&self) -> Vec<(NodeId, Mat4)>
pub fn collect_render_items(&self) -> Vec<(NodeId, Mat4)>
Collect all visible (node, global_matrix) pairs in DFS order.
Trait Implementations§
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