pub struct Draw {
pub entity: EntityId,
pub mesh_entity: Option<EntityId>,
pub transform: Transform,
pub matrix: [f64; 16],
pub color: Color,
}Expand description
One deterministic scene-node result from Runtime::sample.
Fields§
§entity: EntityIdSource entity identifier.
mesh_entity: Option<EntityId>Identifier of the owned built-in mesh, or None for groups.
transform: TransformEvaluated local transform after enabled animations.
matrix: [f64; 16]Column-major local-to-world affine matrix.
color: ColorEvaluated runtime colour.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Draw
impl<'de> Deserialize<'de> for Draw
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Draw
Auto Trait Implementations§
impl Freeze for Draw
impl RefUnwindSafe for Draw
impl Send for Draw
impl Sync for Draw
impl Unpin for Draw
impl UnsafeUnpin for Draw
impl UnwindSafe for Draw
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