pub struct MDL {
pub model_data: ModelData,
pub lods: Vec<Lod>,
pub affected_bone_names: Vec<String>,
pub material_names: Vec<String>,
/* private fields */
}
Fields§
§model_data: ModelData
§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