pub struct LitMaterial;Expand description
Built-in faceted lighting material; no external GPU resources are required.
begin applies to subsequently recorded geometry until end or another
material begins. Recorded draw colors retain their material state.
Implementations§
Source§impl LitMaterial
impl LitMaterial
Sourcepub fn new() -> Result<LitMaterial, String>
pub fn new() -> Result<LitMaterial, String>
Kept fallible for source compatibility with games that load materials.
pub fn begin(&self, settings: LitSettings)
pub fn end(&self)
Trait Implementations§
Source§impl Clone for LitMaterial
impl Clone for LitMaterial
Source§fn clone(&self) -> LitMaterial
fn clone(&self) -> LitMaterial
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 moreSource§impl Debug for LitMaterial
impl Debug for LitMaterial
Source§impl Default for LitMaterial
impl Default for LitMaterial
Source§fn default() -> LitMaterial
fn default() -> LitMaterial
Returns the “default value” for a type. Read more
impl Copy for LitMaterial
Auto Trait Implementations§
impl Freeze for LitMaterial
impl RefUnwindSafe for LitMaterial
impl Send for LitMaterial
impl Sync for LitMaterial
impl Unpin for LitMaterial
impl UnwindSafe for LitMaterial
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