Struct nif::collectors::gltf::Gltf
source · pub struct Gltf { /* private fields */ }
Implementations§
source§impl Gltf
impl Gltf
pub fn new() -> Self
pub fn write_to_files(&self, gltf_path: PathBuf) -> Result<()>
pub fn clone_node( &mut self, node_index: Index<Node>, position: Option<[f32; 3]>, rotation: Option<[f32; 9]>, scale: Option<f32> ) -> Index<Node>
pub fn get_or_create_scene( &mut self, name: &str, nodes: Option<Vec<Index<Node>>> ) -> Index<Scene>
pub fn visit_nif( &mut self, nif: &Nif, scene_name: Option<&str>, name: &str ) -> Index<Node>
pub fn visit_ni_lod_node( &mut self, nif: &Nif, ni_lod_node: &NiLODNode, name: &str ) -> Option<Index<Node>>
pub fn visit_ni_node( &mut self, nif: &Nif, ni_node: &NiNode, name: &str, single_child_ref: Option<BlockRef> ) -> Index<Node>
pub fn visit_tri_shape( &mut self, nif: &Nif, tri_shape: &NiTriShape, name: &str ) -> Option<Index<Node>>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Gltf
impl Send for Gltf
impl Sync for Gltf
impl Unpin for Gltf
impl UnwindSafe for Gltf
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