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.
impl<'a> PrefabData<'a> for Light[src]
impl<'a> PrefabData<'a> for Lighttype SystemData = WriteStorage<'a, Light>
SystemData needed to perform the load
type Result = ()
The result type returned by the load operation
fn load_prefab(
&self,
entity: Entity,
storage: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>[src]
fn load_prefab(
&self,
entity: Entity,
storage: &mut Self::SystemData,
_: &[Entity]
) -> Result<(), PrefabError>Load the data for this prefab onto the given Entity Read more
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>[src]
fn trigger_sub_loading(
&mut self,
_progress: &mut ProgressCounter,
_system_data: &mut Self::SystemData
) -> Result<bool, Error>Trigger asset loading for any sub assets. Read more