From 80bf16785f9ed9ad6a72673d70cb8703e3ac5b34 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Fri, 4 Jul 2025 22:18:50 +0200 Subject: [PATCH] [cpp] 4.3 porting WIP --- spine-cpp/spine-cpp/include/spine/SequenceTimeline.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spine-cpp/spine-cpp/include/spine/SequenceTimeline.h b/spine-cpp/spine-cpp/include/spine/SequenceTimeline.h index 79d907da6..9390d3e63 100644 --- a/spine-cpp/spine-cpp/include/spine/SequenceTimeline.h +++ b/spine-cpp/spine-cpp/include/spine/SequenceTimeline.h @@ -38,6 +38,7 @@ namespace spine { class Attachment; class HasTextureRegion; + /// Changes a slot's SlotPose::getSequenceIndex() for an attachment's Sequence. class SP_API SequenceTimeline : public Timeline, public SlotTimeline { friend class SkeletonBinary; @@ -54,6 +55,9 @@ namespace spine { apply(Skeleton &skeleton, float lastTime, float time, Vector *pEvents, float alpha, MixBlend blend, MixDirection direction, bool appliedPose) override; + /// Sets the time, mode, index, and frame time for the specified frame. + /// @param frame Between 0 and frameCount, inclusive. + /// @param delay Seconds between frames. void setFrame(int frame, float time, SequenceMode mode, int index, float delay); Attachment *getAttachment() { return (Attachment*)_attachment; }