Skip to main content

ss_runtime_fade_track

Function ss_runtime_fade_track 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_runtime_fade_track( context: *mut c_void, track: u32, target_alpha: c_float, duration_ms: c_float, ) -> bool
Expand description

Drive the alpha of track to target_alpha over duration_ms, the same time unit as ss_runtime_update’s delta. Returns false with InvalidParameter for a duration_ms that is not positive, a NaN, or a track that does not exist.