Struct caper::lighting::DirectionalLight
[−]
[src]
pub struct DirectionalLight { pub name: String, pub dir: Vector3, pub active: bool, }
Struct for defining a directional light
Fields
name: String
The name of the directional light
dir: Vector3
The direction the light is facing
active: bool
Whether the light is active
Trait Implementations
impl Clone for DirectionalLight
[src]
fn clone(&self) -> DirectionalLight
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
impl PartialEq for DirectionalLight
[src]
fn eq(&self, __arg_0: &DirectionalLight) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DirectionalLight) -> bool
This method tests for !=
.