[cpp] 4.3 porting WIP

This commit is contained in:
Mario Zechner 2025-07-04 20:40:22 +02:00
parent 5b90c94926
commit 708a73bcee
2 changed files with 1 additions and 17 deletions

View File

@ -35,6 +35,7 @@
namespace spine {
class VertexAttachment;
/// Changes a slot's SlotPose::getDeform() to deform a VertexAttachment.
class SP_API DeformTimeline : public SlotCurveTimeline {
friend class SkeletonBinary;
@ -45,10 +46,6 @@ namespace spine {
public:
explicit DeformTimeline(size_t frameCount, size_t bezierCount, int slotIndex, VertexAttachment *attachment);
virtual void
apply(Skeleton &skeleton, float lastTime, float time, Vector<Event *> *pEvents, float alpha, MixBlend blend,
MixDirection direction, bool appliedPose) override;
/// Sets the time and vertices for the specified frame.
void setFrame(int frameIndex, float time, Vector<float> &vertices);

View File

@ -55,19 +55,6 @@ DeformTimeline::DeformTimeline(size_t frameCount, size_t bezierCount, int slotIn
}
}
void DeformTimeline::apply(Skeleton &skeleton, float lastTime, float time, Vector<Event *> *pEvents, float alpha,
MixBlend blend, MixDirection direction, bool appliedPose) {
SP_UNUSED(lastTime);
SP_UNUSED(pEvents);
SP_UNUSED(direction);
Slot *slotP = skeleton._slots[_slotIndex];
Slot &slot = *slotP;
if (!slot._bone.isActive()) return;
SlotPose &pose = appliedPose ? *slot._applied : slot._pose;
apply(slot, pose, time, alpha, blend);
}
void DeformTimeline::apply(Slot &slot, SlotPose &pose, float time, float alpha, MixBlend blend) {
Attachment *slotAttachment = pose._attachment;