Enum amethyst_renderer::Light [−][src]
pub enum Light {
Area,
Directional(DirectionalLight),
Point(PointLight),
Spot(SpotLight),
Sun(SunLight),
}A light source.
Variants
AreaAn area light. FIXME: Missing implementation!
Directional(DirectionalLight)A directional light.
Point(PointLight)A point light.
Spot(SpotLight)A spot light.
Sun(SunLight)A sun light.
Trait Implementations
impl Clone for Light[src]
impl Clone for Lightfn clone(&self) -> Light[src]
fn clone(&self) -> LightReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Light[src]
impl Debug for Lightfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Light[src]
impl PartialEq for Lightfn eq(&self, other: &Light) -> bool[src]
fn eq(&self, other: &Light) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Light) -> bool[src]
fn ne(&self, other: &Light) -> boolThis method tests for !=.
impl From<DirectionalLight> for Light[src]
impl From<DirectionalLight> for Lightfn from(dir: DirectionalLight) -> Self[src]
fn from(dir: DirectionalLight) -> SelfPerforms the conversion.
impl From<PointLight> for Light[src]
impl From<PointLight> for Lightfn from(pt: PointLight) -> Self[src]
fn from(pt: PointLight) -> SelfPerforms the conversion.
impl From<SpotLight> for Light[src]
impl From<SpotLight> for Lightimpl From<SunLight> for Light[src]
impl From<SunLight> for Lightimpl Component for Light[src]
impl Component for Lighttype Storage = DenseVecStorage<Self>
Associated storage type for this component.