Enum amethyst_renderer::Light [−][src]
pub enum Light { Area, Directional(DirectionalLight), Point(PointLight), Spot(SpotLight), Sun(SunLight), }
A light source.
Variants
Area
An 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 Light
fn clone(&self) -> Light
[src]
fn clone(&self) -> Light
Returns 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 Light
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Light
[src]
impl PartialEq for Light
fn eq(&self, other: &Light) -> bool
[src]
fn eq(&self, other: &Light) -> bool
This 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) -> bool
This method tests for !=
.
impl From<DirectionalLight> for Light
[src]
impl From<DirectionalLight> for Light
fn from(dir: DirectionalLight) -> Self
[src]
fn from(dir: DirectionalLight) -> Self
Performs the conversion.
impl From<PointLight> for Light
[src]
impl From<PointLight> for Light
fn from(pt: PointLight) -> Self
[src]
fn from(pt: PointLight) -> Self
Performs the conversion.
impl From<SpotLight> for Light
[src]
impl From<SpotLight> for Light
impl From<SunLight> for Light
[src]
impl From<SunLight> for Light
impl Component for Light
[src]
impl Component for Light
type Storage = DenseVecStorage<Self>
Associated storage type for this component.