Struct rust_raylib::model::Material
source · pub struct Material { /* private fields */ }Expand description
Material, includes shader and maps
Implementations§
source§impl Material
impl Material
sourcepub fn set_texture(
&mut self,
map_type: MaterialMapIndex,
texture: Texture2D
) -> bool
pub fn set_texture( &mut self, map_type: MaterialMapIndex, texture: Texture2D ) -> bool
Set texture for a material map type
Returns true on success (if texture hasn’t been cloned or all of them have been dropped, i.e. if its the underlying Rc has only 1 strong reference)
Trait Implementations§
Auto Trait Implementations§
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