pub struct SceneItem {
pub id: u64,
pub layer: u32,
pub bbox: Aabb,
pub flags: u8,
pub prims: Vec<Primitive>,
}Expand description
Everything drawn for one entity.
Fields§
§id: u64Entity ID.
layer: u32Index of the entity’s layer (bottom = 0).
bbox: AabbBounding box of all primitives (world).
flags: u8flags bit set.
prims: Vec<Primitive>Primitives in drawing order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SceneItem
impl<'de> Deserialize<'de> for SceneItem
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 SceneItem
Auto Trait Implementations§
impl Freeze for SceneItem
impl RefUnwindSafe for SceneItem
impl Send for SceneItem
impl Sync for SceneItem
impl Unpin for SceneItem
impl UnsafeUnpin for SceneItem
impl UnwindSafe for SceneItem
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