Struct gltf::Gltf[][src]

pub struct Gltf {
    pub document: Document,
    pub blob: Option<Vec<u8>>,
}

glTF JSON wrapper plus binary payload.

Fields

The glTF JSON wrapper.

The glTF binary payload in the case of binary glTF.

Methods

impl Gltf
[src]

Convenience function that loads glTF from the file system.

Loads glTF from a reader without performing validation checks.

Loads glTF from a reader.

Loads glTF from a slice of bytes without performing validation checks.

Loads glTF from a slice of bytes.

Methods from Deref<Target = Document>

Important traits for Accessors<'a>

Returns an Iterator that visits the accessors of the glTF asset.

Important traits for Animations<'a>

Returns an Iterator that visits the animations of the glTF asset.

Important traits for Buffers<'a>

Returns an Iterator that visits the pre-loaded buffers of the glTF asset.

Important traits for Cameras<'a>

Returns an Iterator that visits the cameras of the glTF asset.

Returns the default scene, if provided.

Important traits for ExtensionsUsed<'a>

Returns the extensions referenced in this .document file.

Important traits for ExtensionsRequired<'a>

Returns the extensions required to load and render this asset.

Important traits for Images<'a>

Returns an Iterator that visits the pre-loaded images of the glTF asset.

Important traits for Materials<'a>

Returns an Iterator that visits the materials of the glTF asset.

Important traits for Meshes<'a>

Returns an Iterator that visits the meshes of the glTF asset.

Important traits for Nodes<'a>

Returns an Iterator that visits the nodes of the glTF asset.

Important traits for Samplers<'a>

Returns an Iterator that visits the samplers of the glTF asset.

Important traits for Scenes<'a>

Returns an Iterator that visits the scenes of the glTF asset.

Important traits for Skins<'a>

Returns an Iterator that visits the skins of the glTF asset.

Important traits for Textures<'a>

Returns an Iterator that visits the textures of the glTF asset.

Important traits for Views<'a>

Returns an Iterator that visits the pre-loaded buffer views of the glTF asset.

Trait Implementations

impl Clone for Gltf
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Gltf
[src]

Formats the value using the given formatter. Read more

impl Deref for Gltf
[src]

The resulting type after dereferencing.

Dereferences the value.

impl DerefMut for Gltf
[src]

Mutably dereferences the value.

Auto Trait Implementations

impl Send for Gltf

impl Sync for Gltf