#[repr(C)]pub struct SpotLight {Show 13 fields
pub instance_id: i32,
pub shadow: bool,
pub mode: LightMode,
pub position: Vector3,
pub orientation: Quaternion,
pub color: LinearColor,
pub indirect_color: LinearColor,
pub range: f32,
pub sphere_radius: f32,
pub cone_angle: f32,
pub inner_cone_angle: f32,
pub falloff: FalloffType,
pub angular_falloff: AngularFalloffType,
}Expand description
Fields§
§instance_id: i32§shadow: bool§mode: LightMode§position: Vector3§orientation: Quaternion§color: LinearColor§indirect_color: LinearColor§range: f32§sphere_radius: f32§cone_angle: f32§inner_cone_angle: f32§falloff: FalloffType§angular_falloff: AngularFalloffTypeTrait Implementations§
Source§impl ClassIdentity for SpotLight
impl ClassIdentity for SpotLight
impl Copy for SpotLight
Auto Trait Implementations§
impl Freeze for SpotLight
impl RefUnwindSafe for SpotLight
impl Send for SpotLight
impl Sync for SpotLight
impl Unpin for SpotLight
impl UnwindSafe for SpotLight
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)