pub struct PhysicallyPlausibleLight { /* private fields */ }Implementations§
Source§impl PhysicallyPlausibleLight
impl PhysicallyPlausibleLight
pub fn new() -> Result<Self>
pub fn info(&self) -> Result<PhysicallyPlausibleLightInfo>
pub fn set_color_temperature(&self, temperature: f32)
pub fn set_color(&self, color: [f32; 4])
pub fn set_lumens(&self, lumens: f32)
pub fn set_inner_cone_angle(&self, angle: f32)
pub fn set_outer_cone_angle(&self, angle: f32)
pub fn set_attenuation_start_distance(&self, distance: f32)
pub fn set_attenuation_end_distance(&self, distance: f32)
pub fn as_light(&self) -> Light
pub fn as_object(&self) -> Object
Trait Implementations§
Source§impl Clone for PhysicallyPlausibleLight
impl Clone for PhysicallyPlausibleLight
Source§fn clone(&self) -> PhysicallyPlausibleLight
fn clone(&self) -> PhysicallyPlausibleLight
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 moreAuto Trait Implementations§
impl Freeze for PhysicallyPlausibleLight
impl RefUnwindSafe for PhysicallyPlausibleLight
impl !Send for PhysicallyPlausibleLight
impl !Sync for PhysicallyPlausibleLight
impl Unpin for PhysicallyPlausibleLight
impl UnsafeUnpin for PhysicallyPlausibleLight
impl UnwindSafe for PhysicallyPlausibleLight
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