pub struct Mesh16 {
pub indices: Vec<u16>,
pub vertices: Vec<Vertex>,
pub texture_id: TextureId,
}Expand description
A version of Mesh that uses 16-bit indices.
This is produced by Mesh::split_to_u16 and is meant to be used for legacy render backends.
Fields§
§indices: Vec<u16>Draw as triangles (i.e. the length is always multiple of three).
egui is NOT consistent with what winding order it uses, so turn off backface culling.
vertices: Vec<Vertex>The vertex data indexed by indices.
texture_id: TextureIdThe texture to use when drawing these triangles.
Implementations§
Auto Trait Implementations§
impl Freeze for Mesh16
impl RefUnwindSafe for Mesh16
impl Send for Mesh16
impl Sync for Mesh16
impl Unpin for Mesh16
impl UnwindSafe for Mesh16
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