Struct dae_parser::Material
source · pub struct Material {
pub id: Option<String>,
pub name: Option<String>,
pub asset: Option<Box<Asset>>,
pub instance_effect: Instance<Effect>,
pub extra: Vec<Extra>,
}
Expand description
Describes the visual appearance of a geometric object.
Fields§
§id: Option<String>
A text string containing the unique identifier of the element.
name: Option<String>
The text string name of this element.
asset: Option<Box<Asset>>
Asset management information about this element.
instance_effect: Instance<Effect>
Instantiates a COLLADA material resource. See InstanceEffectData
for the additional instance effect data.
extra: Vec<Extra>
Provides arbitrary additional information about this element.
Implementations§
Trait Implementations§
source§impl HasId for Material
impl HasId for Material
source§impl ParseLibrary for Material
impl ParseLibrary for Material
source§fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
fn extract_element(e: &LibraryElement) -> Option<&Library<Self>>
Extract the library from a single
LibraryElement
.source§fn mk_element(lib: Library<Self>) -> LibraryElement
fn mk_element(lib: Library<Self>) -> LibraryElement
Make a
LibraryElement
from a Library
.