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
[src]
The name of the directional light
fn dir(&mut self, value: Vector3) -> &mut Self
[src]
The direction the light is facing
fn active(&mut self, value: bool) -> &mut Self
[src]
Whether the light is active
fn build(&self) -> Result<DirectionalLight, String>
[src]
Trait Implementations
impl Default for DirectionalLightBuilder
[src]
fn default() -> DirectionalLightBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for DirectionalLightBuilder
[src]
fn clone(&self) -> DirectionalLightBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more