[][src]Struct amethyst_gltf::GltfSceneOptions

pub struct GltfSceneOptions {
    pub generate_tex_coords: (f32, f32),
    pub load_normals: bool,
    pub load_colors: bool,
    pub load_texcoords: bool,
    pub load_tangents: bool,
    pub load_animations: bool,
    pub flip_v_coord: bool,
    pub scene_index: Option<usize>,

Options used when loading a GLTF file


generate_tex_coords: (f32, f32)

Generate texture coordinates if none exist in the Gltf file

load_normals: bool

Load vertex normal data from the Gltf file

load_colors: bool

Load vertex color data from the Gltf file

load_texcoords: bool

Load texture coordinates data from the Gltf file

load_tangents: bool

Load vertex tangent data from the Gltf file

load_animations: bool

Load animation data from the Gltf file

flip_v_coord: bool

Flip the v coordinate for all texture coordinates

scene_index: Option<usize>

Load the given scene index, if not supplied will either load the default scene (if set), or the first scene (only if there is only one scene, otherwise an Error will be returned).

Trait Implementations

impl Clone for GltfSceneOptions[src]

impl Debug for GltfSceneOptions[src]

impl Default for GltfSceneOptions[src]

impl<'de> Deserialize<'de> for GltfSceneOptions where
    GltfSceneOptions: Default

impl Serialize for GltfSceneOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for GltfSceneOptions

impl Send for GltfSceneOptions

impl Sync for GltfSceneOptions

impl Unpin for GltfSceneOptions

impl UnwindSafe for GltfSceneOptions

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float

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

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Clone for T where
    T: Clone

impl<T> Config for T where
    T: Deserialize<'a> + Serialize

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

impl<T> Event for T where
    T: Send + Sync + 'static, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Resource for T where
    T: Any + Send + Sync

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

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized

impl<T> SetParameter for T[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryDefault for T where
    T: Default

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,