[][src]Struct kiss3d::loader::mtl::MtlMaterial

pub struct MtlMaterial {
    pub name: String,
    pub ambiant_texture: Option<String>,
    pub diffuse_texture: Option<String>,
    pub specular_texture: Option<String>,
    pub opacity_map: Option<String>,
    pub ambiant: Vector3<f32>,
    pub diffuse: Vector3<f32>,
    pub specular: Vector3<f32>,
    pub shininess: f32,
    pub alpha: f32,
}

Material informations read from a .mtl file.

Fields

name: String

Name of the material.

ambiant_texture: Option<String>

Path to the ambiant texture.

diffuse_texture: Option<String>

Path to the diffuse texture.

specular_texture: Option<String>

Path to the specular texture.

opacity_map: Option<String>

Path to the opacity map.

ambiant: Vector3<f32>

The ambiant color.

diffuse: Vector3<f32>

The diffuse color.

specular: Vector3<f32>

The specular color.

shininess: f32

The shininess.

alpha: f32

Alpha blending.

Methods

impl MtlMaterial[src]

pub fn new_default(name: String) -> MtlMaterial[src]

Creates a new mtl material with a name and default values.

pub fn new(
    name: String,
    shininess: f32,
    alpha: f32,
    ambiant: Vector3<f32>,
    diffuse: Vector3<f32>,
    specular: Vector3<f32>,
    ambiant_texture: Option<String>,
    diffuse_texture: Option<String>,
    specular_texture: Option<String>,
    opacity_map: Option<String>
) -> MtlMaterial
[src]

Creates a new mtl material.

Trait Implementations

impl Clone for MtlMaterial[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for MtlMaterial

impl Sync for MtlMaterial

Blanket Implementations

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

impl<T> From for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[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<T> Same for T

type Output = T

Should always be Self

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

impl<T> Downcast for T where
    T: Any