pub struct RanimScene {
pub root: AnimStack,
pub(crate) time_marks: Vec<(f64, TimeMark)>,
}Expand description
Animation definition builder passed to scene constructors.
The public RanimScene::root stack is the scene’s animation composition
root. Calling RanimScene::play is a convenience alias for pushing into
that stack.
Fields§
§root: AnimStackRoot animation stack. Modules pushed here share the same local origin.
Audio leaves (Sound) compose in the same tree beside visual
animations; RanimScene::seal bakes them through the same cell
remaps the visuals experience.
time_marks: Vec<(f64, TimeMark)>Implementations§
Source§impl RanimScene
impl RanimScene
Sourcepub fn play<A: IntoAnimNode + 'static>(&mut self, animation: A) -> &mut Self
pub fn play<A: IntoAnimNode + 'static>(&mut self, animation: A) -> &mut Self
Push an animation module into the root stack.
Sourcepub fn insert_time_mark(&mut self, sec: f64, time_mark: TimeMark)
pub fn insert_time_mark(&mut self, sec: f64, time_mark: TimeMark)
Insert a time mark.
Sourcepub fn seal(self) -> SealedRanimScene
pub fn seal(self) -> SealedRanimScene
Finish the definition and produce an immutable, evaluable recipe.
The tree is the only animation representation: visual cells are
point-walked per frame by SceneEvaluator::sample_at, and sound
leaves are baked here — see bake_audio — both
experiencing the same cell remaps along the path.
Trait Implementations§
Source§impl Debug for RanimScene
impl Debug for RanimScene
Source§impl Default for RanimScene
impl Default for RanimScene
Source§fn default() -> RanimScene
fn default() -> RanimScene
Auto Trait Implementations§
impl !RefUnwindSafe for RanimScene
impl !Send for RanimScene
impl !Sync for RanimScene
impl !UnwindSafe for RanimScene
impl Freeze for RanimScene
impl Unpin for RanimScene
impl UnsafeUnpin for RanimScene
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
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> TransformedExt for T
impl<T> TransformedExt for T
Source§fn transformed<G>(self, transform: G) -> Transformed<Self, G>
fn transformed<G>(self, transform: G) -> Transformed<Self, G>
self wrapped with transform stored exactly as G.