[][src]Enum spritec::config::PoseModel

pub enum PoseModel {
    GltfFrame {
        gltf: UnresolvedPath,
        animation: Option<String>,
        time: Milliseconds,
    },
    Model(UnresolvedPath),
}

Variants

GltfFrame

Fields of GltfFrame

gltf: UnresolvedPath

The path to a glTF file

animation: Option<String>

The name of the animation to select. Can be omitted if there is only a single animation or if there is no animation.

time: Milliseconds

The specific time in ms in the animation to render. The default is to render the start of the animation, or the default pose of the model if there is no animation.

A single filename. An OBJ file will be used as is. For a glTF file, the model will be rendered as loaded regardless of the animations present in the file.

Trait Implementations

impl Clone for PoseModel[src]

impl Debug for PoseModel[src]

impl<'de> Deserialize<'de> for PoseModel[src]

impl Serialize for PoseModel[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.