|
Tweeny 4.1.0
A Tweening library for modern C++
|
◆ keyframeLeave
Event triggered when leaving a keyframe segment. Fires when the tween transitions out of a keyframe section during playback. The callback receives both the tween reference and a keyframeLeave struct containing the keyframe index being exited. Common use cases:
.to(100).during(30U)
.build();
printf("Leaving keyframe %zu\n", evt.key_frame);
return tweeny::event::response::ok;
});
auto step(int32_t frames) -> tween_value_t Advances or rewinds the animation by a frame delta. auto on(detail::event::step_t, Callback &&cb) -> void Registers a callback for step() events. tweeny_builder< true, FirstValue, RemainingValues... > to(const FirstValue &firstComponent, const RemainingValues &... remainingComponents) & Adds a target keyframe to the tween. Definition tweeny.h:109 tweeny_builder & during(FrameCountsType... frame_counts) Specifies per-component frame durations for the last keyframe segment. Definition tweeny.h:245 tweeny_builder< false, FirstValue, RemainingValues... > from(FirstValue firstComponent, RemainingValues... remainingComponents) Creates a new tween builder starting from the specified value(s). Definition tweeny.h:347
|