Struct mash::load::wavefront::Material[][src]

pub struct Material<'a> { /* fields omitted */ }

A material.

Implementations

impl<'a> Material<'a>[src]

pub fn name(&self) -> &str[src]

Gets the name of the material.

pub fn ambient_color(&self) -> Color[src]

Gets the ambient color.

pub fn diffuse_color(&self) -> Color[src]

Gets the diffuse color.

pub fn specular_color(&self) -> Color[src]

Gets the specular color.

pub fn shininess(&self) -> f32[src]

Gets the shininess factor.

pub fn alpha(&self) -> f32[src]

Gets the opacity factor.

pub fn optical_density(&self) -> f32[src]

Gets the optical density.

pub fn ambient_texture(&self) -> &str[src]

Gets the ambient texture image file.

pub fn diffuse_texture(&self) -> &str[src]

Gets the diffuse texture image file.

pub fn specular_texture(&self) -> &str[src]

Gets the specular texture image file.

pub fn normal_texture(&self) -> &str[src]

Gets the normal texture image file.

pub fn dissolve_texture(&self) -> &str[src]

Gets the dissolve texture image file.

Auto Trait Implementations

impl<'a> RefUnwindSafe for Material<'a>[src]

impl<'a> Send for Material<'a>[src]

impl<'a> Sync for Material<'a>[src]

impl<'a> Unpin for Material<'a>[src]

impl<'a> UnwindSafe for Material<'a>[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, 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.