pub struct TileMesh {
pub vertices: [TileVertex; 4],
pub indices: [u16; 6],
}Expand description
Generated mesh data for a single tile quad.
Fields§
§vertices: [TileVertex; 4]Four quad vertices in CCW order (bottom-left, bottom-right, top-right, top-left) in camera-relative world space.
indices: [u16; 6]Triangle-list indices for the quad (0,1,2 and 0,2,3).
Auto Trait Implementations§
impl Freeze for TileMesh
impl RefUnwindSafe for TileMesh
impl Send for TileMesh
impl Sync for TileMesh
impl Unpin for TileMesh
impl UnsafeUnpin for TileMesh
impl UnwindSafe for TileMesh
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