pub struct MDL {
pub lods: Vec<Lod>,
pub affected_bone_names: Vec<String>,
pub material_names: Vec<String>,
/* private fields */
}
Fields§
§lods: Vec<Lod>
§affected_bone_names: Vec<String>
§material_names: Vec<String>
Implementations§
source§impl MDL
impl MDL
pub fn from_existing(buffer: ByteSpan<'_>) -> Option<MDL>
pub fn replace_vertices( &mut self, lod_index: usize, part_index: usize, vertices: &[Vertex], indices: &[u16], submeshes: &[SubMesh], )
pub fn remove_shape_meshes(&mut self)
pub fn add_shape_mesh( &mut self, lod_index: usize, shape_index: usize, shape_mesh_index: usize, part_index: usize, shape_values: &[NewShapeValue], )
pub fn write_to_buffer(&self) -> Option<ByteBuffer>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MDL
impl RefUnwindSafe for MDL
impl Send for MDL
impl Sync for MDL
impl Unpin for MDL
impl UnwindSafe for MDL
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)