pub struct Light<'a> { /* private fields */ }Implementations§
Source§impl<'a> Light<'a>
impl<'a> Light<'a>
pub fn name(&self) -> Option<&'a str>
pub fn color(&self) -> [f32; 4]
pub fn constant_attenuation(&self) -> f32
pub fn linear_attenuation(&self) -> f32
pub fn quadratic_attenuation(&self) -> f32
pub fn distance(&self) -> f32
pub fn falloff_angle(&self) -> f32
pub fn falloff_exponent(&self) -> f32
pub fn kind(&self) -> Kind
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Light<'a>
impl<'a> RefUnwindSafe for Light<'a>
impl<'a> Send for Light<'a>
impl<'a> Sync for Light<'a>
impl<'a> Unpin for Light<'a>
impl<'a> UnwindSafe for Light<'a>
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