Skip to main content

ss_runtime_crossfade

Function ss_runtime_crossfade 

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

Fade track to name over duration_ms — the same time unit as ss_runtime_update’s delta. A track that does not exist yet is created. Returns false with InvalidParameter for a duration_ms that is not positive, a NaN or a null name, and with AnimationNotFound for a name the pack does not have or before ss_runtime_setup_animation.

§Safety

name must be a valid null-terminated UTF-8 (or lossy-decodable) string.