pub struct Lighting3d { /* private fields */ }Expand description
Ready visual lighting state: ambient and at most one directional source.
Implementations§
Source§impl Lighting3d
impl Lighting3d
Sourcepub const fn new(ambient: AmbientLight3d) -> Self
pub const fn new(ambient: AmbientLight3d) -> Self
Starts with ambient illumination and no directional source.
Sourcepub const fn with_directional(self, light: Option<DirectionalLight3d>) -> Self
pub const fn with_directional(self, light: Option<DirectionalLight3d>) -> Self
Replaces or disables the single directional source.
Sourcepub const fn ambient(self) -> AmbientLight3d
pub const fn ambient(self) -> AmbientLight3d
Returns ambient illumination.
Sourcepub const fn directional(self) -> Option<DirectionalLight3d>
pub const fn directional(self) -> Option<DirectionalLight3d>
Returns the optional directional source.
Trait Implementations§
Source§impl Clone for Lighting3d
impl Clone for Lighting3d
Source§fn clone(&self) -> Lighting3d
fn clone(&self) -> Lighting3d
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Lighting3d
Source§impl Debug for Lighting3d
impl Debug for Lighting3d
Source§impl Default for Lighting3d
impl Default for Lighting3d
Source§impl PartialEq for Lighting3d
impl PartialEq for Lighting3d
impl StructuralPartialEq for Lighting3d
Auto Trait Implementations§
impl Freeze for Lighting3d
impl RefUnwindSafe for Lighting3d
impl Send for Lighting3d
impl Sync for Lighting3d
impl Unpin for Lighting3d
impl UnsafeUnpin for Lighting3d
impl UnwindSafe for Lighting3d
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