Struct MeshBasicMaterial
pub struct MeshBasicMaterial { /* private fields */ }Expand description
Write-access helper for a mesh basic material.
Implementations§
Methods from Deref<Target = MaterialWithTransparency>§
pub fn transparency(&self, value: f64) -> Result<Instruction>
pub fn transparency(&self, value: f64) -> Result<Instruction>
Writes the transparency property.
Returns Error::Value if value is not between 0.0 and 1.0.
Methods from Deref<Target = MaterialHelper>§
pub fn depth_test(&self, value: bool) -> Instruction
pub fn depth_test(&self, value: bool) -> Instruction
Writes the depth test property.
Trait Implementations§
§impl Clone for MeshBasicMaterial
impl Clone for MeshBasicMaterial
§fn clone(&self) -> MeshBasicMaterial
fn clone(&self) -> MeshBasicMaterial
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for MeshBasicMaterial
impl Debug for MeshBasicMaterial
§impl Deref for MeshBasicMaterial
impl Deref for MeshBasicMaterial
Auto Trait Implementations§
impl Freeze for MeshBasicMaterial
impl RefUnwindSafe for MeshBasicMaterial
impl Send for MeshBasicMaterial
impl Sync for MeshBasicMaterial
impl Unpin for MeshBasicMaterial
impl UnwindSafe for MeshBasicMaterial
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