pub struct Light { /* private fields */ }Implementations§
Source§impl Light
impl Light
pub fn new() -> Result<Self>
pub fn info(&self) -> Result<LightInfo>
pub fn set_light_type(&self, light_type: LightType)
pub fn set_color_space(&self, color_space: &str) -> Result<()>
pub fn irradiance_at_point(&self, point: [f32; 3]) -> [f32; 4]
pub fn as_object(&self) -> Object
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Light
impl RefUnwindSafe for Light
impl !Send for Light
impl !Sync for Light
impl Unpin for Light
impl UnsafeUnpin for Light
impl UnwindSafe for Light
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