Struct octoon::lights::point::PointLight
source · pub struct PointLight {
pub uuid: Uuid,
pub transform: Transform,
pub spectrum: Spectrum,
pub lumens: Lumens,
pub candela: Candela,
}
Fields
uuid: Uuid
transform: Transform
spectrum: Spectrum
lumens: Lumens
candela: Candela
Implementations
sourceimpl PointLight
impl PointLight
Trait Implementations
sourceimpl Debug for PointLight
impl Debug for PointLight
sourceimpl Default for PointLight
impl Default for PointLight
sourcefn default() -> PointLight
fn default() -> PointLight
Returns the “default value” for a type. Read more
sourceimpl Downcast for PointLight
impl Downcast for PointLight
sourceimpl From<PointLight> for Arc<RefCell<dyn Light + 'static>>
impl From<PointLight> for Arc<RefCell<dyn Light + 'static>>
sourcefn from(light: PointLight) -> Self
fn from(light: PointLight) -> Self
Converts to this type from the input type.
sourceimpl From<PointLight> for Arc<dyn Light + 'static>
impl From<PointLight> for Arc<dyn Light + 'static>
sourcefn from(light: PointLight) -> Self
fn from(light: PointLight) -> Self
Converts to this type from the input type.
sourceimpl From<PointLight> for Rc<RefCell<dyn Light + 'static>>
impl From<PointLight> for Rc<RefCell<dyn Light + 'static>>
sourcefn from(light: PointLight) -> Self
fn from(light: PointLight) -> Self
Converts to this type from the input type.
sourceimpl From<PointLight> for Rc<dyn Light + 'static>
impl From<PointLight> for Rc<dyn Light + 'static>
sourcefn from(light: PointLight) -> Self
fn from(light: PointLight) -> Self
Converts to this type from the input type.
sourceimpl Light for PointLight
impl Light for PointLight
fn kind(&self) -> LightType
fn color(&self) -> Spectrum
fn lumens(&self) -> Lumens
fn candela(&self) -> Candela
fn set_color(&mut self, spectrum: Spectrum)
fn set_lumens(&mut self, lm: Lumens)
fn intensity(&self) -> f32
fn set_intensity(&mut self, lm: Lumens)
sourceimpl Object for PointLight
impl Object for PointLight
fn translate(&self) -> &float3
fn scale(&self) -> &float3
fn rotation(&self) -> &float3
fn transform(&self) -> &float4x4
fn transform_inverse(&self) -> &float4x4
fn set_translate(&mut self, pos: float3)
fn set_scale(&mut self, sz: float3)
fn set_rotation(&mut self, rot: float3)
fn up(&self) -> float3
fn right(&self) -> float3
fn forward(&self) -> float3
fn set_up(&mut self, speed: float3)
fn set_right(&mut self, speed: float3)
fn set_forward(&mut self, speed: float3)
sourceimpl UpdateEvent for PointLight
impl UpdateEvent for PointLight
Auto Trait Implementations
impl RefUnwindSafe for PointLight
impl Send for PointLight
impl Sync for PointLight
impl Unpin for PointLight
impl UnwindSafe for PointLight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.