Struct caper::lighting::DirectionalLightBuilder
[−]
[src]
pub struct DirectionalLightBuilder { /* fields omitted */ }
Builder for DirectionalLight
.
Methods
impl DirectionalLightBuilder
[src]
fn name(&mut self, value: String) -> &mut Self
The name of the directional light
fn dir(&mut self, value: Vector3) -> &mut Self
The direction the light is facing
fn active(&mut self, value: bool) -> &mut Self
Whether the light is active
fn build(&self) -> Result<DirectionalLight, String>
Trait Implementations
impl Default for DirectionalLightBuilder
[src]
fn default() -> DirectionalLightBuilder
Returns the "default value" for a type. Read more
impl Clone for DirectionalLightBuilder
[src]
fn clone(&self) -> DirectionalLightBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more