pub struct Material { /* private fields */ }
Expand description
A null material for now
Implementations§
Source§impl Material
impl Material
Sourcepub fn create<M, G: Gl>(
_context: &mut G,
_object: &Object<'_, M, G>,
material: &M,
) -> Result<Self, ()>where
M: Material,
pub fn create<M, G: Gl>(
_context: &mut G,
_object: &Object<'_, M, G>,
material: &M,
) -> Result<Self, ()>where
M: Material,
Create a GL material for a given context within the object
This is invoked when the object is being made instantiable;
pub fn base_data(&self) -> &ShaderMaterialBaseData
pub fn textures(&self) -> &[(TextureId, ShortIndex)]
Trait Implementations§
impl MaterialClient for Material
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more