Struct rin::blender::BlenderMaterials [−][src]
pub struct BlenderMaterials<'a> { /* fields omitted */ }
Implementations
impl<'a> BlenderMaterials<'a>
[src]
impl<'a> BlenderMaterials<'a>
[src]pub fn alpha_type(&mut self, alpha_type: AlphaType) -> &mut BlenderMaterials<'a>
[src]
pub fn post_fragment_materials(&mut self) -> &mut BlenderMaterials<'a>
[src]
pub fn from_scene_data<P>(
&mut self,
scene: &SceneData,
path: P
) -> Result<(HashMap<ObjectId, MaterialRef, RandomState>, HashMap<ObjectId, MaterialRef, RandomState>), Error> where
P: AsRef<Path>,
[src]
&mut self,
scene: &SceneData,
path: P
) -> Result<(HashMap<ObjectId, MaterialRef, RandomState>, HashMap<ObjectId, MaterialRef, RandomState>), Error> where
P: AsRef<Path>,
Loads all materials in the scene and returns an index of the original materials plus another with the same names but double sided if there’s any mesh in the scene that uses one material and has double sided enabled in it’s mesh
pub fn load<P>(
&mut self,
path: P
) -> Result<(HashMap<ObjectId, MaterialRef, RandomState>, HashMap<ObjectId, MaterialRef, RandomState>), Error> where
P: AsRef<Path>,
[src]
&mut self,
path: P
) -> Result<(HashMap<ObjectId, MaterialRef, RandomState>, HashMap<ObjectId, MaterialRef, RandomState>), Error> where
P: AsRef<Path>,
Loads all materials in the scene and returns an index of the original materials plus another with the same names but double sided if there’s any mesh in the scene that uses one material and has double sided enabled in it’s mesh
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BlenderMaterials<'a>
impl<'a> !Send for BlenderMaterials<'a>
impl<'a> !Sync for BlenderMaterials<'a>
impl<'a> Unpin for BlenderMaterials<'a>
impl<'a> !UnwindSafe for BlenderMaterials<'a>
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]