pub struct MeshInstance {
pub name: Option<String>,
pub mesh: Mesh,
pub transform: Option<Transform>,
}Available on crate feature
scene only.Expand description
One mesh instance attached to a scene node.
The mesh data is owned by the instance for now; transform is the optional
local transform applied to this specific instance when it cannot be folded
into the containing node.
Fields§
§name: Option<String>Optional instance name.
mesh: MeshMesh data for this instance.
transform: Option<Transform>Optional local transform for this instance.
Trait Implementations§
Source§impl Clone for MeshInstance
impl Clone for MeshInstance
Source§fn clone(&self) -> MeshInstance
fn clone(&self) -> MeshInstance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MeshInstance
impl RefUnwindSafe for MeshInstance
impl Send for MeshInstance
impl Sync for MeshInstance
impl Unpin for MeshInstance
impl UnsafeUnpin for MeshInstance
impl UnwindSafe for MeshInstance
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