Struct gltf::gltf::Gltf
[−]
[src]
pub struct Gltf { /* fields omitted */ }
A loaded glTF complete with its data.
Methods
impl Gltf
[src]
fn from_json(json: Root) -> Self
Constructs the Gltf
wrapper from JSON.
fn loaded<'a>(&'a self, source: &'a Source) -> Loaded<'a, &'a Self>
Converts Gltf
into Loaded<Gltf>
.
fn accessors(&self) -> Accessors
Returns an Iterator
that visits the accessors of the glTF asset.
fn animations(&self) -> Animations
Returns an Iterator
that visits the animations of the glTF asset.
fn buffers(&self) -> Buffers
Returns an Iterator
that visits the pre-loaded buffers of the glTF asset.
fn views(&self) -> Views
Returns an Iterator
that visits the pre-loaded buffer views of the glTF
asset.
fn cameras(&self) -> Cameras
Returns an Iterator
that visits the cameras of the glTF asset.
fn images(&self) -> Images
Returns an Iterator
that visits the pre-loaded images of the glTF asset.
fn materials(&self) -> Materials
Returns an Iterator
that visits the materials of the glTF asset.
fn meshes(&self) -> Meshes
Returns an Iterator
that visits the meshes of the glTF asset.
fn nodes(&self) -> Nodes
Returns an Iterator
that visits the nodes of the glTF asset.
fn samplers(&self) -> Samplers
Returns an Iterator
that visits the scenes of the glTF asset.
fn scenes(&self) -> Scenes
Returns an Iterator
that visits the samplers of the glTF asset.
fn skins(&self) -> Skins
Returns an Iterator
that visits the skins of the glTF asset.
fn textures(&self) -> Textures
Returns an Iterator
that visits the textures of the glTF asset.
Methods from Deref<Target = Root>
fn as_json(&self) -> &Root
Returns the internal JSON item.
fn extensions_used(&self) -> Extensions
Returns the extensions referenced in this .gltf file.
fn extensions_required(&self) -> Extensions
Returns the extensions required to load and render this asset.