pub enum M2LightType {
Directional = 0,
Point = 1,
Spot = 2,
Ambient = 3,
}Expand description
Light type enum
Variants§
Directional = 0
Directional light (like the sun)
Point = 1
Point light (emits light in all directions)
Spot = 2
Spot light (emits light in a cone)
Ambient = 3
Ambient light (global illumination)
Implementations§
Trait Implementations§
Source§impl Clone for M2LightType
impl Clone for M2LightType
Source§fn clone(&self) -> M2LightType
fn clone(&self) -> M2LightType
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 M2LightType
impl Debug for M2LightType
Source§impl PartialEq for M2LightType
impl PartialEq for M2LightType
impl Copy for M2LightType
impl Eq for M2LightType
impl StructuralPartialEq for M2LightType
Auto Trait Implementations§
impl Freeze for M2LightType
impl RefUnwindSafe for M2LightType
impl Send for M2LightType
impl Sync for M2LightType
impl Unpin for M2LightType
impl UnwindSafe for M2LightType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more