pub struct LodProfile { /* private fields */ }Implementations§
Source§impl LodProfile
impl LodProfile
pub fn flags(&self) -> u16
pub fn set_flags(&mut self, value: u16)
pub fn num_lod_levels(&self) -> u16
pub fn set_num_lod_levels(&mut self, value: u16)
pub fn lod_distance(&self) -> f32
pub fn set_lod_distance(&mut self, value: f32)
Sourcepub const fn particle_bone_lod_len() -> usize
pub const fn particle_bone_lod_len() -> usize
Per-LOD particle bone mask index. Only four are stored, but the client drives up to eight LOD levels: it copies [0..3] into its first four slots and then replicates entry [3] into slots 4..7. Number of elements — a fixed-size C++ array.
Sourcepub fn particle_bone_lod(&self, index: usize) -> u8
pub fn particle_bone_lod(&self, index: usize) -> u8
§Panics
If index >= 4, matching Rust slice indexing.
Sourcepub fn set_particle_bone_lod(&mut self, index: usize, value: u8)
pub fn set_particle_bone_lod(&mut self, index: usize, value: u8)
§Panics
If index >= 4.
Sourcepub fn lod_scale_raw(&self) -> u16
pub fn lod_scale_raw(&self) -> u16
Fixed-point LOD scale, applied as lodScaleRaw / 2048.0 and only when flags & 0x08 is set (otherwise the client uses 1.0). This is the pair of bytes previously read as reserved0 + lodFlags; reading it as a u16 explains why the high byte looked like a mirror of flags bit 3, since 0x0800 / 2048 == 1.0.
pub fn set_lod_scale_raw(&mut self, value: u16)
pub fn lod_batch_count(&self) -> u8
pub fn set_lod_batch_count(&mut self, value: u8)
pub fn reserved_1(&self) -> u8
pub fn set_reserved_1(&mut self, value: u8)
Trait Implementations§
Source§impl Debug for LodProfile
impl Debug for LodProfile
Source§impl Default for LodProfile
impl Default for LodProfile
Source§impl Drop for LodProfile
impl Drop for LodProfile
impl Send for LodProfile
Auto Trait Implementations§
impl !Sync for LodProfile
impl Freeze for LodProfile
impl RefUnwindSafe for LodProfile
impl Unpin for LodProfile
impl UnsafeUnpin for LodProfile
impl UnwindSafe for LodProfile
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