pub struct DrawRange {
pub start_vertex: i32,
pub vertex_count: i32,
pub start_index: i32,
pub index_count: i32,
pub material_index: i32,
pub bone: i32,
}Expand description
A range of a mesh part that is drawn with one material.
Fields§
§start_vertex: i32Base vertex added to each range-local u16 index.
vertex_count: i32The number of vertices.
start_index: i32The first index.
index_count: i32The number of indices.
material_index: i32The material of the range, an index into the mesh’s material set.
bone: i32Rigid node transform, or -1 for weighted skinning.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DrawRange
impl RefUnwindSafe for DrawRange
impl Send for DrawRange
impl Sync for DrawRange
impl Unpin for DrawRange
impl UnsafeUnpin for DrawRange
impl UnwindSafe for DrawRange
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