Struct gltf::Document [−][src]
pub struct Document(_);
Expand description
glTF JSON wrapper.
Implementations
Loads glTF from pre-deserialized JSON without performing validation checks.
Returns an Iterator
that visits the accessors of the glTF asset.
pub fn animations(&self) -> Animations<'_>ⓘNotable traits for Animations<'a>impl<'a> Iterator for Animations<'a> type Item = Animation<'a>;
pub fn animations(&self) -> Animations<'_>ⓘNotable traits for Animations<'a>impl<'a> Iterator for Animations<'a> type Item = Animation<'a>;
impl<'a> Iterator for Animations<'a> type Item = Animation<'a>;
Returns an Iterator
that visits the animations of the glTF asset.
Returns an Iterator
that visits the pre-loaded buffers of the glTF asset.
Returns an Iterator
that visits the cameras of the glTF asset.
Returns the default scene, if provided.
pub fn extensions_used(&self) -> ExtensionsUsed<'_>ⓘNotable traits for ExtensionsUsed<'a>impl<'a> Iterator for ExtensionsUsed<'a> type Item = &'a str;
pub fn extensions_used(&self) -> ExtensionsUsed<'_>ⓘNotable traits for ExtensionsUsed<'a>impl<'a> Iterator for ExtensionsUsed<'a> type Item = &'a str;
impl<'a> Iterator for ExtensionsUsed<'a> type Item = &'a str;
Returns the extensions referenced in this .document file.
pub fn extensions_required(&self) -> ExtensionsRequired<'_>ⓘNotable traits for ExtensionsRequired<'a>impl<'a> Iterator for ExtensionsRequired<'a> type Item = &'a str;
pub fn extensions_required(&self) -> ExtensionsRequired<'_>ⓘNotable traits for ExtensionsRequired<'a>impl<'a> Iterator for ExtensionsRequired<'a> type Item = &'a str;
impl<'a> Iterator for ExtensionsRequired<'a> type Item = &'a str;
Returns the extensions required to load and render this asset.
Returns an Iterator
that visits the pre-loaded images of the glTF asset.
Returns an Iterator
that visits the materials of the glTF asset.
Returns an Iterator
that visits the meshes of the glTF asset.
Returns an Iterator
that visits the nodes of the glTF asset.
Returns an Iterator
that visits the samplers of the glTF asset.
Returns an Iterator
that visits the scenes of the glTF asset.
Returns an Iterator
that visits the skins of the glTF asset.
Returns an Iterator
that visits the textures of the glTF asset.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Document
impl UnwindSafe for Document
Blanket Implementations
Mutably borrows from an owned value. Read more