pub struct EntityGeometry {
pub mesh: Arc<MeshData>,
pub color: [f32; 4],
pub transform: [f32; 16],
}Expand description
Entity geometry with mesh, color, and transform
Fields§
§mesh: Arc<MeshData>Processed mesh data (shared via Arc)
color: [f32; 4]RGBA color [r, g, b, a] where values are 0.0-1.0
transform: [f32; 16]4x4 transformation matrix (column-major order)
Implementations§
Source§impl EntityGeometry
impl EntityGeometry
Trait Implementations§
Source§impl Clone for EntityGeometry
impl Clone for EntityGeometry
Source§fn clone(&self) -> EntityGeometry
fn clone(&self) -> EntityGeometry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityGeometry
impl Debug for EntityGeometry
Auto Trait Implementations§
impl Freeze for EntityGeometry
impl RefUnwindSafe for EntityGeometry
impl Send for EntityGeometry
impl Sync for EntityGeometry
impl Unpin for EntityGeometry
impl UnsafeUnpin for EntityGeometry
impl UnwindSafe for EntityGeometry
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