Struct gltf::gltf::Gltf
[−]
[src]
pub struct Gltf { /* fields omitted */ }
The primary data structure of this crate.
Methods
impl Gltf
[src]
fn from_glb(glb: &Glb) -> Result<Unvalidated, Error>
[src]
Constructs the Gltf
wrapper from binary glTF.
fn from_reader<R>(reader: R) -> Result<Unvalidated, Error> where
R: Read,
[src]
R: Read,
Constructs the Gltf
wrapper from a reader.
fn from_slice(slice: &[u8]) -> Result<Unvalidated, Error>
[src]
Constructs the Gltf
wrapper from a slice of bytes.
fn from_str(slice: &str) -> Result<Unvalidated, Error>
[src]
Constructs the Gltf
wrapper from a string slice.
fn from_value(value: Value) -> Result<Unvalidated, Error>
[src]
Constructs the Gltf
wrapper from a gltf_json::Value
.
fn accessors(&self) -> Accessors
[src]
Returns an Iterator
that visits the accessors of the glTF asset.
fn animations(&self) -> Animations
[src]
Returns an Iterator
that visits the animations of the glTF asset.
fn buffers(&self) -> Buffers
[src]
Returns an Iterator
that visits the pre-loaded buffers of the glTF asset.
fn cameras(&self) -> Cameras
[src]
Returns an Iterator
that visits the cameras of the glTF asset.
fn default_scene(&self) -> Option<Scene>
[src]
Returns the default scene, if provided.
fn extensions_used(&self) -> Extensions
[src]
Returns the extensions referenced in this .gltf file.
fn extensions_required(&self) -> Extensions
[src]
Returns the extensions required to load and render this asset.
fn images(&self) -> Images
[src]
Returns an Iterator
that visits the pre-loaded images of the glTF asset.
fn materials(&self) -> Materials
[src]
Returns an Iterator
that visits the materials of the glTF asset.
fn meshes(&self) -> Meshes
[src]
Returns an Iterator
that visits the meshes of the glTF asset.
fn nodes(&self) -> Nodes
[src]
Returns an Iterator
that visits the nodes of the glTF asset.
fn samplers(&self) -> Samplers
[src]
Returns an Iterator
that visits the scenes of the glTF asset.
fn scenes(&self) -> Scenes
[src]
Returns an Iterator
that visits the samplers of the glTF asset.
fn skins(&self) -> Skins
[src]
Returns an Iterator
that visits the skins of the glTF asset.
fn textures(&self) -> Textures
[src]
Returns an Iterator
that visits the textures of the glTF asset.
fn views(&self) -> Views
[src]
Returns an Iterator
that visits the pre-loaded buffer views of the glTF
asset.