pub enum Attn {
Norm,
Idle,
Static,
}Expand description
Quake’s attenuation classes, as the Curve constructors take them.
§Example
use psx_sfx::space::{Attn, Curve};
// A static ambient hears half as far as an idle one in Quake terms.
let c = Curve::quake(Attn::Static, 0x3FFF);
assert_eq!(c.level(0), 0x3FFF);Variants§
Norm
Quake ATTN_NORM (1.0): silent at 1000 units.
Idle
Quake ATTN_IDLE (2.0): silent at 500 units.
Static
Quake ATTN_STATIC (3.0): silent at 333 units.
Implementations§
Trait Implementations§
impl Copy for Attn
impl Eq for Attn
impl StructuralPartialEq for Attn
Auto Trait Implementations§
impl Freeze for Attn
impl RefUnwindSafe for Attn
impl Send for Attn
impl Sync for Attn
impl Unpin for Attn
impl UnsafeUnpin for Attn
impl UnwindSafe for Attn
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)