Struct gltf::gltf::Gltf
[−]
[src]
pub struct Gltf { /* fields omitted */ }
A loaded glTF complete with its data.
Methods
impl Gltf
[src]
fn new(root: Root, buffer_data: Vec<Data>, image_data: Vec<Data>) -> Self
Constructor for a complete lazy-loaded glTF asset.
fn buffer_data(&self, index: usize) -> Data
fn image_data(&self, index: usize) -> Data
fn accessors<'a>(&'a self) -> Accessors<'a>
Returns an Iterator
that visits the accessors of the glTF asset.
fn animations<'a>(&'a self) -> Animations<'a>
Returns an Iterator
that visits the animations of the glTF asset.
fn buffers<'a>(&'a self) -> Buffers<'a>
Returns an Iterator
that visits the pre-loaded buffers of the glTF asset.
fn views<'a>(&'a self) -> Views<'a>
Returns an Iterator
that visits the pre-loaded buffer views of the glTF
asset.
fn cameras<'a>(&'a self) -> Cameras<'a>
Returns an Iterator
that visits the cameras of the glTF asset.
fn images<'a>(&'a self) -> Images<'a>
Returns an Iterator
that visits the pre-loaded images of the glTF asset.
fn materials<'a>(&'a self) -> Materials<'a>
Returns an Iterator
that visits the materials of the glTF asset.
fn meshes<'a>(&'a self) -> Meshes<'a>
Returns an Iterator
that visits the meshes of the glTF asset.
fn nodes<'a>(&'a self) -> Nodes<'a>
Returns an Iterator
that visits the nodes of the glTF asset.
fn samplers<'a>(&'a self) -> Samplers<'a>
Returns an Iterator
that visits the scenes of the glTF asset.
fn scenes<'a>(&'a self) -> Scenes<'a>
Returns an Iterator
that visits the samplers of the glTF asset.
fn skins<'a>(&'a self) -> Skins<'a>
Returns an Iterator
that visits the skins of the glTF asset.
fn textures<'a>(&'a self) -> Textures<'a>
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<'a>(&'a self) -> Extensions<'a>
Returns the extensions referenced in this .gltf file.
fn extensions_required<'a>(&'a self) -> Extensions<'a>
Returns the extensions required to load and render this asset.