Struct mmd::pmx::material::Material[][src]

pub struct Material<C: Config> {
    pub local_name: String,
    pub universal_name: String,
    pub diffuse_color: C::Vec4,
    pub specular_color: C::Vec3,
    pub specular_strength: f32,
    pub ambient_color: C::Vec3,
    pub draw_flags: BitFlags<DrawingFlags>,
    pub edge_color: C::Vec4,
    pub edge_scale: f32,
    pub texture_index: C::TextureIndex,
    pub environment_index: C::TextureIndex,
    pub environment_blend_mode: EnvironmentBlendMode,
    pub toon: Toon<C>,
    pub metadata: String,
    pub surface_count: i32,
}

Fields

local_name: Stringuniversal_name: Stringdiffuse_color: C::Vec4specular_color: C::Vec3specular_strength: f32ambient_color: C::Vec3draw_flags: BitFlags<DrawingFlags>edge_color: C::Vec4edge_scale: f32texture_index: C::TextureIndexenvironment_index: C::TextureIndexenvironment_blend_mode: EnvironmentBlendModetoon: Toon<C>metadata: Stringsurface_count: i32

Trait Implementations

impl<C: Config> Display for Material<C> where
    C::Vec3: Display,
    C::Vec4: Display,
    C::TextureIndex: Display
[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for Material<C> where
    <C as Config>::TextureIndex: RefUnwindSafe,
    <C as Config>::Vec3: RefUnwindSafe,
    <C as Config>::Vec4: RefUnwindSafe
[src]

impl<C> Send for Material<C> where
    <C as Config>::TextureIndex: Send,
    <C as Config>::Vec3: Send,
    <C as Config>::Vec4: Send
[src]

impl<C> Sync for Material<C> where
    <C as Config>::TextureIndex: Sync,
    <C as Config>::Vec3: Sync,
    <C as Config>::Vec4: Sync
[src]

impl<C> Unpin for Material<C> where
    <C as Config>::TextureIndex: Unpin,
    <C as Config>::Vec3: Unpin,
    <C as Config>::Vec4: Unpin
[src]

impl<C> UnwindSafe for Material<C> where
    <C as Config>::TextureIndex: UnwindSafe,
    <C as Config>::Vec3: UnwindSafe,
    <C as Config>::Vec4: UnwindSafe
[src]

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> From<T> for T[src]

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

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

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.