[−][src]Struct gltf::Document
glTF JSON wrapper.
Methods
impl Document
[src]
pub fn from_json(json: Root) -> Result<Self>
[src]
Loads glTF from pre-deserialized JSON.
pub fn from_json_without_validation(json: Root) -> Self
[src]
Loads glTF from pre-deserialized JSON without performing validation checks.
pub fn into_json(self) -> Root
[src]
Unwraps the glTF document.
pub fn accessors(&self) -> Accessors
[src]
Returns an Iterator
that visits the accessors of the glTF asset.
pub fn animations(&self) -> Animations
[src]
Returns an Iterator
that visits the animations of the glTF asset.
pub fn buffers(&self) -> Buffers
[src]
Returns an Iterator
that visits the pre-loaded buffers of the glTF asset.
pub fn cameras(&self) -> Cameras
[src]
Returns an Iterator
that visits the cameras of the glTF asset.
pub fn default_scene(&self) -> Option<Scene>
[src]
Returns the default scene, if provided.
pub fn extensions_used(&self) -> ExtensionsUsed
[src]
Returns the extensions referenced in this .document file.
pub fn extensions_required(&self) -> ExtensionsRequired
[src]
Returns the extensions required to load and render this asset.
pub fn images(&self) -> Images
[src]
Returns an Iterator
that visits the pre-loaded images of the glTF asset.
pub fn lights(&self) -> Option<Lights>
[src]
feature="KHR_lights_punctual"
only.Returns an Iterator
that visits the lights of the glTF asset as defined by the
KHR_lights_punctual
extension.
pub fn materials(&self) -> Materials
[src]
Returns an Iterator
that visits the materials of the glTF asset.
pub fn meshes(&self) -> Meshes
[src]
Returns an Iterator
that visits the meshes of the glTF asset.
pub fn nodes(&self) -> Nodes
[src]
Returns an Iterator
that visits the nodes of the glTF asset.
pub fn samplers(&self) -> Samplers
[src]
Returns an Iterator
that visits the samplers of the glTF asset.
pub fn scenes(&self) -> Scenes
[src]
Returns an Iterator
that visits the scenes of the glTF asset.
pub fn skins(&self) -> Skins
[src]
Returns an Iterator
that visits the skins of the glTF asset.
pub fn textures(&self) -> Textures
[src]
Returns an Iterator
that visits the textures of the glTF asset.
pub fn views(&self) -> Views
[src]
Returns an Iterator
that visits the pre-loaded buffer views of the glTF
asset.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,