Struct rin::gl::BasicMaterial [−][src]
pub struct BasicMaterial<T = Texture> { /* fields omitted */ }
Material with a flat color and / or texture and gl properties
This material is not affected by lights or shadows
The texture can be a glin::Texture, a glin::TextureSampler or a reference or Rc to a texture
Implementations
impl<T> BasicMaterial<T>
[src]
impl<T> BasicMaterial<T>
[src]impl<T> BasicMaterial<T> where
T: Borrow<Texture>,
[src]
impl<T> BasicMaterial<T> where
T: Borrow<Texture>,
[src]impl<'a> BasicMaterial<TextureSampler<'a>>
[src]
impl<'a> BasicMaterial<TextureSampler<'a>>
[src]pub fn texture_sampler(&self) -> Option<TextureSampler<'a>>
[src]
Returns the material texture sample if it was setup with one or None if it was never set
Trait Implementations
impl Default for BasicMaterial<Texture>
[src]
impl Default for BasicMaterial<Texture>
[src]pub fn default() -> BasicMaterial<Texture>
[src]
impl<T> Material for BasicMaterial<T> where
T: TextureUniformValue,
[src]
impl<T> Material for BasicMaterial<T> where
T: TextureUniformValue,
[src]Auto Trait Implementations
impl<T = Texture> !RefUnwindSafe for BasicMaterial<T>
impl<T = Texture> !Send for BasicMaterial<T>
impl<T = Texture> !Sync for BasicMaterial<T>
impl<T> Unpin for BasicMaterial<T> where
T: Unpin,
T: Unpin,
impl<T = Texture> !UnwindSafe for BasicMaterial<T>
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]