pub struct Material {
pub object: OwnedObject,
pub shading_model: String,
pub multilayer: bool,
}Fields§
§object: OwnedObject§shading_model: String§multilayer: boolImplementations§
Source§impl Material
impl Material
pub fn inner(&self) -> &OwnedObject
pub fn into_inner(self) -> OwnedObject
pub fn properties(&self) -> &HashMap<String, Property>
pub fn property(&self, name: &str) -> Option<&Property>
Sourcepub fn get_textures<'a>(
&'a self,
document: &'a OwnedDocument,
) -> HashMap<&'a str, &'a Texture>
pub fn get_textures<'a>( &'a self, document: &'a OwnedDocument, ) -> HashMap<&'a str, &'a Texture>
Resolve incoming Texture -> Material OP links keyed by destination property name.
Sourcepub fn get_layered_textures<'a>(
&'a self,
document: &'a OwnedDocument,
) -> HashMap<&'a str, &'a LayeredTexture>
pub fn get_layered_textures<'a>( &'a self, document: &'a OwnedDocument, ) -> HashMap<&'a str, &'a LayeredTexture>
Resolve incoming LayeredTexture -> Material OP links keyed by destination property name.
Trait Implementations§
Source§impl TryFrom<OwnedObject> for Material
impl TryFrom<OwnedObject> for Material
Source§type Error = FbxTypeMismatch
type Error = FbxTypeMismatch
The type returned in the event of a conversion error.
impl StructuralPartialEq for Material
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnsafeUnpin for Material
impl UnwindSafe for Material
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