Struct collada::document::ColladaDocument
source · pub struct ColladaDocument {
pub root_element: Element,
}
Fields
root_element: Element
Implementations
sourceimpl 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 get_effect_library(&self) -> HashMap<String, PhongEffect>
pub fn get_effect_library(&self) -> HashMap<String, PhongEffect>
Returns the library of effects. Current only supports Phong shading.
pub fn get_material_to_effect(&self) -> HashMap<String, String>
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 RefUnwindSafe for ColladaDocument
impl Send for ColladaDocument
impl Sync for ColladaDocument
impl Unpin for ColladaDocument
impl UnwindSafe for ColladaDocument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more