pub struct MaterialMap { /* private fields */ }Expand description
MATM — Material map entry (v0, 8 bytes)
Maps a material type enum to an index into the corresponding material array. The MODL root references an array of these; the renderer uses materialType to dispatch to the correct material vector.
Implementations§
Source§impl MaterialMap
impl MaterialMap
Sourcepub fn material_type(&self) -> MaterialType
pub fn material_type(&self) -> MaterialType
Material type (1=standard, 2=displacement, etc.)
pub fn set_material_type(&mut self, value: MaterialType)
Sourcepub fn material_index(&self) -> u32
pub fn material_index(&self) -> u32
Index into the typed material array
pub fn set_material_index(&mut self, value: u32)
Trait Implementations§
Source§impl Debug for MaterialMap
impl Debug for MaterialMap
Source§impl Default for MaterialMap
impl Default for MaterialMap
Source§impl Drop for MaterialMap
impl Drop for MaterialMap
impl Send for MaterialMap
Auto Trait Implementations§
impl !Sync for MaterialMap
impl Freeze for MaterialMap
impl RefUnwindSafe for MaterialMap
impl Unpin for MaterialMap
impl UnsafeUnpin for MaterialMap
impl UnwindSafe for MaterialMap
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