#[repr(i32)]pub enum LightType {
Omni = 0,
Directional = 1,
Ambient = 2,
}Expand description
Type of light source
Variants§
Omni = 0
Point light (radiates in all directions)
Directional = 1
Directional light (like sunlight)
Ambient = 2
Ambient light (affects everything equally)
Trait Implementations§
impl Copy for LightType
impl Eq for LightType
impl StructuralPartialEq for LightType
Auto Trait Implementations§
impl Freeze for LightType
impl RefUnwindSafe for LightType
impl Send for LightType
impl Sync for LightType
impl Unpin for LightType
impl UnsafeUnpin for LightType
impl UnwindSafe for LightType
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