Struct gltf::Document [−][src]
pub struct Document(_);
glTF JSON wrapper.
Methods
impl Document[src]
impl Documentpub fn from_json(json: Root) -> Result<Self>[src]
pub fn from_json(json: Root) -> Result<Self>Loads glTF from pre-deserialized JSON.
pub fn from_json_without_validation(json: Root) -> Self[src]
pub fn from_json_without_validation(json: Root) -> SelfLoads glTF from pre-deserialized JSON without performing validation checks.
pub fn into_json(self) -> Root[src]
pub fn into_json(self) -> RootUnwraps the glTF document.
ⓘImportant traits for Accessors<'a>pub fn accessors(&self) -> Accessors[src]
pub fn accessors(&self) -> AccessorsReturns an Iterator that visits the accessors of the glTF asset.
ⓘImportant traits for Animations<'a>pub fn animations(&self) -> Animations[src]
pub fn animations(&self) -> AnimationsReturns an Iterator that visits the animations of the glTF asset.
ⓘImportant traits for Buffers<'a>pub fn buffers(&self) -> Buffers[src]
pub fn buffers(&self) -> BuffersReturns an Iterator that visits the pre-loaded buffers of the glTF asset.
ⓘImportant traits for Cameras<'a>pub fn cameras(&self) -> Cameras[src]
pub fn cameras(&self) -> CamerasReturns an Iterator that visits the cameras of the glTF asset.
pub fn default_scene(&self) -> Option<Scene>[src]
pub fn default_scene(&self) -> Option<Scene>Returns the default scene, if provided.
ⓘImportant traits for ExtensionsUsed<'a>pub fn extensions_used(&self) -> ExtensionsUsed[src]
pub fn extensions_used(&self) -> ExtensionsUsedReturns the extensions referenced in this .document file.
ⓘImportant traits for ExtensionsRequired<'a>pub fn extensions_required(&self) -> ExtensionsRequired[src]
pub fn extensions_required(&self) -> ExtensionsRequiredReturns the extensions required to load and render this asset.
ⓘImportant traits for Images<'a>pub fn images(&self) -> Images[src]
pub fn images(&self) -> ImagesReturns an Iterator that visits the pre-loaded images of the glTF asset.
ⓘImportant traits for Materials<'a>pub fn materials(&self) -> Materials[src]
pub fn materials(&self) -> MaterialsReturns an Iterator that visits the materials of the glTF asset.
ⓘImportant traits for Meshes<'a>pub fn meshes(&self) -> Meshes[src]
pub fn meshes(&self) -> MeshesReturns an Iterator that visits the meshes of the glTF asset.
ⓘImportant traits for Nodes<'a>pub fn nodes(&self) -> Nodes[src]
pub fn nodes(&self) -> NodesReturns an Iterator that visits the nodes of the glTF asset.
ⓘImportant traits for Samplers<'a>pub fn samplers(&self) -> Samplers[src]
pub fn samplers(&self) -> SamplersReturns an Iterator that visits the samplers of the glTF asset.
ⓘImportant traits for Scenes<'a>pub fn scenes(&self) -> Scenes[src]
pub fn scenes(&self) -> ScenesReturns an Iterator that visits the scenes of the glTF asset.
ⓘImportant traits for Skins<'a>pub fn skins(&self) -> Skins[src]
pub fn skins(&self) -> SkinsReturns an Iterator that visits the skins of the glTF asset.
ⓘImportant traits for Textures<'a>pub fn textures(&self) -> Textures[src]
pub fn textures(&self) -> TexturesReturns an Iterator that visits the textures of the glTF asset.
ⓘImportant traits for Views<'a>pub fn views(&self) -> Views[src]
pub fn views(&self) -> ViewsReturns an Iterator that visits the pre-loaded buffer views of the glTF
asset.
Trait Implementations
impl Clone for Document[src]
impl Clone for Documentfn clone(&self) -> Document[src]
fn clone(&self) -> DocumentReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Document[src]
impl Debug for Document