pub struct MaterialHandle<'a> { /* private fields */ }Expand description
Material node handle.
Implementations§
Source§impl<'a> MaterialHandle<'a>
impl<'a> MaterialHandle<'a>
Sourcepub fn meshes(&self) -> impl Iterator<Item = MeshHandle<'a>>
pub fn meshes(&self) -> impl Iterator<Item = MeshHandle<'a>>
Returns an iterator of parent model mesh objects.
Sourcepub fn diffuse_texture(&self) -> Option<TextureHandle<'a>>
pub fn diffuse_texture(&self) -> Option<TextureHandle<'a>>
Returns a diffuse color texture object if available.
Sourcepub fn transparent_texture(&self) -> Option<TextureHandle<'a>>
pub fn transparent_texture(&self) -> Option<TextureHandle<'a>>
Returns a transparent color texture object if available.
Sourcepub fn normal_map_texture(&self) -> Option<TextureHandle<'a>>
pub fn normal_map_texture(&self) -> Option<TextureHandle<'a>>
Returns the normal map of this material if available.
Sourcepub fn specular_texture(&self) -> Option<TextureHandle<'a>>
pub fn specular_texture(&self) -> Option<TextureHandle<'a>>
Returns the specular color texture of this material if available.
Sourcepub fn emissive_texture(&self) -> Option<TextureHandle<'a>>
pub fn emissive_texture(&self) -> Option<TextureHandle<'a>>
Returns the emissive color texture of this material if available.
Sourcepub fn properties(&self) -> MaterialProperties<'a>
pub fn properties(&self) -> MaterialProperties<'a>
Returns properties.
Methods from Deref<Target = ObjectHandle<'a>>§
Sourcepub fn object_node_id(&self) -> ObjectNodeId
pub fn object_node_id(&self) -> ObjectNodeId
Returns object node ID.
Sourcepub fn node(&self) -> NodeHandle<'a>
pub fn node(&self) -> NodeHandle<'a>
Returns the node handle.
Sourcepub fn get_typed(&self) -> TypedObjectHandle<'a>
pub fn get_typed(&self) -> TypedObjectHandle<'a>
Returns the object type.
Sourcepub fn destination_objects(
&self,
) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
pub fn destination_objects( &self, ) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
Returns an iterator of destination objects and connection labels.
Sourcepub fn source_objects(&self) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
pub fn source_objects(&self) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
Returns an iterator of source objects and connection labels.
Sourcepub fn direct_properties(&self) -> Option<PropertiesHandle<'a>>
pub fn direct_properties(&self) -> Option<PropertiesHandle<'a>>
Returns a handle of the directly associated properties node.
Sourcepub fn properties_by_native_typename(
&self,
native_typename: &str,
) -> ObjectProperties<'a>
pub fn properties_by_native_typename( &self, native_typename: &str, ) -> ObjectProperties<'a>
Returns a proxy to object properties using the given native typename.
native_typename should be the value of the first attribute of
the PropertyTemplate node to be used.
Trait Implementations§
Source§impl<'a> Clone for MaterialHandle<'a>
impl<'a> Clone for MaterialHandle<'a>
Source§fn clone(&self) -> MaterialHandle<'a>
fn clone(&self) -> MaterialHandle<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more