Function zng::layout::slerp_enabled

source ยท
pub fn slerp_enabled<R>(enabled: bool, f: impl FnOnce() -> R) -> R
Expand description

Calls f with is_slerp_enabled set to enabled.

See slerp_sampler for a way to enable in animations.