pub struct Mesh16 {
pub indices: Vec<u16, Global>,
pub vertices: Vec<Vertex, Global>,
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, Global>
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, Global>
The vertex data indexed by indices
.
texture_id: TextureId
The texture to use when drawing these triangles.
Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mesh16
impl Send for Mesh16
impl Sync for Mesh16
impl Unpin for Mesh16
impl UnwindSafe for Mesh16
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more