Struct rin_scene::light::AmbientLight [−][src]
pub struct AmbientLight { /* fields omitted */ }
Implementations
impl AmbientLight
[src]
impl AmbientLight
[src]pub fn new<'a, C: EntitiesCreationExt<'a>>(
world: &mut C,
diffuse: Rgb<f32, LinearRgb>,
specular: Rgb<f32, LinearRgb>
) -> Entity
[src]
world: &mut C,
diffuse: Rgb<f32, LinearRgb>,
specular: Rgb<f32, LinearRgb>
) -> Entity
pub fn diffuse(&self) -> &Rgb<f32, LinearRgb>
[src]
pub fn specular(&self) -> &Rgb<f32, LinearRgb>
[src]
pub fn set_diffuse<C: ToRgb>(&mut self, diffuse: C)
[src]
pub fn set_specular<C: ToRgb>(&mut self, specular: C)
[src]
pub fn has_changed(&self) -> bool
[src]
pub fn reset_changed(&mut self)
[src]
Trait Implementations
impl Clone for AmbientLight
[src]
impl Clone for AmbientLight
[src]fn clone(&self) -> AmbientLight
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Component for AmbientLight
[src]
impl Component for AmbientLight
[src]impl<'a> DebugParameter for AmbientLight
[src]
impl<'a> DebugParameter for AmbientLight
[src]fn debug<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
impl<'de> Deserialize<'de> for AmbientLight
[src]
impl<'de> Deserialize<'de> for AmbientLight
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for AmbientLight
[src]
impl Serialize for AmbientLight
[src]impl Copy for AmbientLight
[src]
Auto Trait Implementations
impl RefUnwindSafe for AmbientLight
impl Send for AmbientLight
impl Sync for AmbientLight
impl Unpin for AmbientLight
impl UnwindSafe for AmbientLight
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,