Struct gltf::json::root::Root [] [src]

pub struct Root {
    pub accessors: Vec<Accessor>,
    pub animations: Vec<Animation>,
    pub asset: Asset,
    pub buffers: Vec<Buffer>,
    pub buffer_views: Vec<View>,
    pub scene: Option<Index<Scene>>,
    pub extensions: Root,
    pub extras: Extras,
    pub extensions_used: Vec<String>,
    pub extensions_required: Vec<String>,
    pub cameras: Vec<Camera>,
    pub images: Vec<Image>,
    pub materials: Vec<Material>,
    pub meshes: Vec<Mesh>,
    pub nodes: Vec<Node>,
    pub samplers: Vec<Sampler>,
    pub scenes: Vec<Scene>,
    pub skins: Vec<Skin>,
    pub textures: Vec<Texture>,
}

The root object of a glTF 2.0 asset.

Fields

An array of accessors.

An array of keyframe animations.

Metadata about the glTF asset.

An array of buffers.

An array of buffer views.

The default scene.

Extension specific data.

Optional application specific data.

Names of glTF extensions used somewhere in this asset.

Names of glTF extensions required to properly load this asset.

An array of cameras.

An array of images.

An array of materials.

An array of meshes.

An array of nodes.

An array of samplers.

An array of scenes.

An array of skins.

An array of textures.

Methods

impl Root
[src]

Returns the accessor at the given index.

Returns all accessors as a slice.

Returns the animation at the given index.

Returns all animations as a slice.

Returns the metadata included with this asset.

Returns the buffer at the given index.

Returns all buffers as a slice.

Returns the buffer view at the given index.

Returns all buffer views as a slice.

Returns the camera at the given index.

Returns all cameras as a slice.

Returns the extensions referenced in this .gltf file.

Returns the extensions required to load and render this asset.

Returns a single item from the root object.

Returns the image at the given index.

Returns all images as a slice.

Returns the material at the given index.

Returns all materials as a slice.

Returns the mesh at the given index.

Returns all meshes as a slice.

Returns the node at the given index.

Returns all nodes as a slice.

Returns the sampler at the given index.

Returns all samplers as a slice.

Returns the scene at the given index.

Returns all scenes as a slice.

Returns the skin at the given index.

Returns all skins as a slice.

Returns the texture at the given index.

Returns all textures as a slice.

Trait Implementations

impl Clone for Root
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Root
[src]

Formats the value using the given formatter.

impl Default for Root
[src]

Returns the "default value" for a type. Read more

impl Validate for Root
[src]

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification.

impl<'a> Get<Accessor> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Animation> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Buffer> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<View> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Camera> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Image> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Material> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Mesh> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Node> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Sampler> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Scene> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Skin> for Root
[src]

Retrieves a single value at the given index.

impl<'a> Get<Texture> for Root
[src]

Retrieves a single value at the given index.