Struct rin::scene::light::AreaLight [−][src]
pub struct AreaLight { /* fields omitted */ }
Implementations
impl AreaLight
[src]
impl AreaLight
[src]pub fn half_width(
&self,
trafo: &Node
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
[src]
&self,
trafo: &Node
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
pub fn half_height(
&self,
trafo: &Node
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
[src]
&self,
trafo: &Node
) -> Matrix<f32, U3, U1, <DefaultAllocator as Allocator<f32, U3, U1>>::Buffer>
pub fn color(&self) -> &Rgb<f32, LinearRgb>
[src]
pub fn strength(&self) -> f32
[src]
pub fn width(&self) -> f32
[src]
pub fn height(&self) -> f32
[src]
pub fn set_color<C>(&mut self, color: &C) where
C: ToRgb,
[src]
C: ToRgb,
pub fn set_width(&mut self, width: f32)
[src]
pub fn set_height(&mut self, height: f32)
[src]
pub fn set_strength(&mut self, strength: f32)
[src]
pub fn debug_geometry(&self) -> Mesh<Vertex3D>
[src]
pub fn debug_material<'a, C>(world: &mut C) -> MaterialRef where
C: CreationContext<'a>,
[src]
C: CreationContext<'a>,
Trait Implementations
impl Changes for AreaLight
[src]
impl Changes for AreaLight
[src]pub fn has_changed(&self) -> bool
[src]
pub fn reset_changed(&mut self)
[src]
impl Component for AreaLight
[src]
impl Component for AreaLight
[src]type Storage = AutoChanged<KeyedDenseVec<usize, AreaLight>, AreaLight>
type MutStorageCacheGuard = ()
pub fn type_name() -> &'static str
[src]
pub fn is_reference() -> bool
[src]
pub fn id() -> TypeId
[src]
pub fn references_other(
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
[src]
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
impl<'a> DebugParameter for AreaLight
[src]
impl<'a> DebugParameter for AreaLight
[src]pub fn debug<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
impl<'de> Deserialize<'de> for AreaLight
[src]
impl<'de> Deserialize<'de> for AreaLight
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<AreaLight, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<AreaLight, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for AreaLight
[src]
impl Serialize for AreaLight
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl Copy for AreaLight
[src]
Auto Trait Implementations
impl RefUnwindSafe for AreaLight
impl Send for AreaLight
impl Sync for AreaLight
impl Unpin for AreaLight
impl UnwindSafe for AreaLight
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<C> ComponentSend for C where
C: Component + Send,
[src]
C: Component + Send,
impl<C> ComponentThreadLocal for C where
C: Component,
[src]
C: Component,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,