Lamp

Struct Lamp 

Source
#[repr(C, packed(4))]
pub struct Lamp {
Show 64 fields pub id: ID, pub adt: Pointer<AnimData>, pub type_: i16, pub flag: i16, pub mode: i32, pub r: f32, pub g: f32, pub b: f32, pub k: f32, pub shdwr: f32, pub shdwg: f32, pub shdwb: f32, pub shdwpad: f32, pub energy: f32, pub dist: f32, pub spotsize: f32, pub spotblend: f32, pub att1: f32, pub att2: f32, pub coeff_const: f32, pub coeff_lin: f32, pub coeff_quad: f32, pub _pad0: [i8; 4], pub curfalloff: Pointer<CurveMapping>, pub falloff_type: i16, pub _pad2: [i8; 2], pub clipsta: f32, pub clipend: f32, pub bias: f32, pub soft: f32, pub bleedbias: f32, pub bleedexp: f32, pub bufsize: i16, pub samp: i16, pub buffers: i16, pub filtertype: i16, pub bufflag: i8, pub buftype: i8, pub area_shape: i16, pub area_size: f32, pub area_sizey: f32, pub area_sizez: f32, pub area_spread: f32, pub sun_angle: f32, pub texact: i16, pub shadhalostep: i16, pub ipo: Pointer<Ipo>, pub pr_texture: i16, pub use_nodes: i16, pub _pad6: [i8; 4], pub cascade_max_dist: f32, pub cascade_exponent: f32, pub cascade_fade: f32, pub cascade_count: i32, pub contact_dist: f32, pub contact_bias: f32, pub contact_spread: f32, pub contact_thickness: f32, pub diff_fac: f32, pub volume_fac: f32, pub spec_fac: f32, pub att_dist: f32, pub preview: Pointer<PreviewImage>, pub nodetree: Pointer<bNodeTree>,
}

Fields§

§id: ID§adt: Pointer<AnimData>§type_: i16§flag: i16§mode: i32§r: f32§g: f32§b: f32§k: f32§shdwr: f32§shdwg: f32§shdwb: f32§shdwpad: f32§energy: f32§dist: f32§spotsize: f32§spotblend: f32§att1: f32§att2: f32§coeff_const: f32§coeff_lin: f32§coeff_quad: f32§_pad0: [i8; 4]§curfalloff: Pointer<CurveMapping>§falloff_type: i16§_pad2: [i8; 2]§clipsta: f32§clipend: f32§bias: f32§soft: f32§bleedbias: f32§bleedexp: f32§bufsize: i16§samp: i16§buffers: i16§filtertype: i16§bufflag: i8§buftype: i8§area_shape: i16§area_size: f32§area_sizey: f32§area_sizez: f32§area_spread: f32§sun_angle: f32§texact: i16§shadhalostep: i16§ipo: Pointer<Ipo>§pr_texture: i16§use_nodes: i16§_pad6: [i8; 4]§cascade_max_dist: f32§cascade_exponent: f32§cascade_fade: f32§cascade_count: i32§contact_dist: f32§contact_bias: f32§contact_spread: f32§contact_thickness: f32§diff_fac: f32§volume_fac: f32§spec_fac: f32§att_dist: f32§preview: Pointer<PreviewImage>§nodetree: Pointer<bNodeTree>

Trait Implementations§

Auto Trait Implementations§

§

impl Freeze for Lamp

§

impl RefUnwindSafe for Lamp

§

impl Send for Lamp

§

impl Sync for Lamp

§

impl Unpin for Lamp

§

impl UnwindSafe for Lamp

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.