pub struct ColladaDocument {
pub root_element: Element,
}Fields§
§root_element: ElementImplementations§
Source§impl ColladaDocument
impl ColladaDocument
Sourcepub fn from_path(path: &Path) -> Result<ColladaDocument, &'static str>
pub fn from_path(path: &Path) -> Result<ColladaDocument, &'static str>
Construct a ColladaDocument for the XML document at the given path
Sourcepub fn from_str(xml_string: &str) -> Result<ColladaDocument, &'static str>
pub fn from_str(xml_string: &str) -> Result<ColladaDocument, &'static str>
Construct a ColladaDocument from an XML string
Sourcepub fn get_effect_library(&self) -> HashMap<String, MaterialEffect>
pub fn get_effect_library(&self) -> HashMap<String, MaterialEffect>
Returns the library of effects. Current only supports Phong shading.
pub fn get_material_to_effect(&self) -> HashMap<String, String>
Sourcepub fn get_images(&self) -> HashMap<String, String>
pub fn get_images(&self) -> HashMap<String, String>
Returns a hashmap of <imageid, filename>
Sourcepub fn get_animations(&self) -> Option<Vec<Animation>>
pub fn get_animations(&self) -> Option<Vec<Animation>>
Return a vector of all Animations in the Collada document
Sourcepub fn get_obj_set(&self) -> Option<ObjSet>
pub fn get_obj_set(&self) -> Option<ObjSet>
Populate and return an ObjSet for the meshes in the Collada document
Sourcepub fn get_bind_data_set(&self) -> Option<BindDataSet>
pub fn get_bind_data_set(&self) -> Option<BindDataSet>
Populate and return a BindDataSet from the Collada document
Sourcepub fn get_skeletons(&self) -> Option<Vec<Skeleton>>
pub fn get_skeletons(&self) -> Option<Vec<Skeleton>>
Auto Trait Implementations§
impl Freeze for ColladaDocument
impl RefUnwindSafe for ColladaDocument
impl Send for ColladaDocument
impl Sync for ColladaDocument
impl Unpin for ColladaDocument
impl UnwindSafe for ColladaDocument
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