pub struct LensFlare { /* private fields */ }Expand description
LFLR — Lens flare material (v0–v3, 152 bytes)
Lens flare effect with animated intensity, color, HDR, size, sub-flare elements, and flipbook texture grid parameters.
Implementations§
Source§impl LensFlare
impl LensFlare
pub fn set_name(&mut self, value: &str)
Sourcepub fn sub_flares_len(&self) -> usize
pub fn sub_flares_len(&self) -> usize
Sub-flare elements (LFSB)
Sourcepub fn sub_flares(&self, index: usize) -> Option<Ref<'_, SubFlare>>
pub fn sub_flares(&self, index: usize) -> Option<Ref<'_, SubFlare>>
Borrows element index in place. None when out of range.
pub fn sub_flares_mut(&mut self, index: usize) -> Option<RefMut<'_, SubFlare>>
Sourcepub fn sub_flares_iter(
&self,
) -> impl ExactSizeIterator<Item = Ref<'_, SubFlare>>
pub fn sub_flares_iter( &self, ) -> impl ExactSizeIterator<Item = Ref<'_, SubFlare>>
Iterate the elements, borrowing each in turn.
pub fn resize_sub_flares(&mut self, count: usize)
pub fn set_columns(&mut self, value: u32)
pub fn set_rows(&mut self, value: u32)
Sourcepub fn distance_fade(&self) -> f32
pub fn distance_fade(&self) -> f32
Distance fade start
pub fn set_distance_fade(&mut self, value: f32)
pub fn set_lib_name(&mut self, value: &str)
Sourcepub fn intensity(&self) -> Ref<'_, AnimRefF32>
pub fn intensity(&self) -> Ref<'_, AnimRefF32>
Animated intensity Borrows the field in place — no copy, no allocation.
pub fn intensity_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn color(&self) -> Ref<'_, AnimRefM3ColorBGRA>
pub fn color(&self) -> Ref<'_, AnimRefM3ColorBGRA>
Animated color Borrows the field in place — no copy, no allocation.
pub fn color_mut(&mut self) -> RefMut<'_, AnimRefM3ColorBGRA>
Sourcepub fn hdr(&self) -> Ref<'_, AnimRefF32>
pub fn hdr(&self) -> Ref<'_, AnimRefF32>
Animated HDR multiplier Borrows the field in place — no copy, no allocation.
pub fn hdr_mut(&mut self) -> RefMut<'_, AnimRefF32>
Sourcepub fn size(&self) -> Ref<'_, AnimRefF32>
pub fn size(&self) -> Ref<'_, AnimRefF32>
Animated size Borrows the field in place — no copy, no allocation.
pub fn size_mut(&mut self) -> RefMut<'_, AnimRefF32>
Trait Implementations§
impl Send for LensFlare
Auto Trait Implementations§
impl !Sync for LensFlare
impl Freeze for LensFlare
impl RefUnwindSafe for LensFlare
impl Unpin for LensFlare
impl UnsafeUnpin for LensFlare
impl UnwindSafe for LensFlare
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more