[][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

Fields

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 Default for GltfSceneOptions[src]

impl Clone for GltfSceneOptions[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for GltfSceneOptions[src]

impl Serialize for GltfSceneOptions[src]

impl<'de> Deserialize<'de> for GltfSceneOptions where
    GltfSceneOptions: Default
[src]

Auto Trait Implementations

impl Send for GltfSceneOptions

impl Sync for GltfSceneOptions

Blanket Implementations

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

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

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.

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

impl<T> Any for T where
    T: Any

impl<T> TryDefault for T where
    T: Default

fn unwrap_default() -> Self

Calls try_default and panics on an error case.

impl<T> Erased for T

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

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

impl<T> Supports<T> for T

impl<T> Config for T where
    T: Deserialize<'a> + Serialize + Default
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

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
[src]

fn adapt_into(self) -> D[src]

Convert the source color to the destination color using the bradford method by default Read more