From 27c6770708b2881bcd68814e007dd197d5fc8497 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 11 Jun 2025 20:55:12 +0200 Subject: [PATCH] [cpp] 4.3 porting WIP --- .../spine-cpp/include/spine/FromProperty.h | 60 ---------------- .../spine-cpp/include/spine/FromRotate.h | 49 ------------- .../spine-cpp/include/spine/FromScaleX.h | 49 ------------- .../spine-cpp/include/spine/FromScaleY.h | 49 ------------- .../spine-cpp/include/spine/FromShearY.h | 49 ------------- spine-cpp/spine-cpp/include/spine/FromX.h | 49 ------------- spine-cpp/spine-cpp/include/spine/FromY.h | 49 ------------- .../spine-cpp/include/spine/ToProperty.h | 66 ----------------- spine-cpp/spine-cpp/include/spine/ToRotate.h | 56 --------------- spine-cpp/spine-cpp/include/spine/ToScaleX.h | 52 -------------- spine-cpp/spine-cpp/include/spine/ToScaleY.h | 56 --------------- spine-cpp/spine-cpp/include/spine/ToShearY.h | 56 --------------- spine-cpp/spine-cpp/include/spine/ToX.h | 56 --------------- spine-cpp/spine-cpp/include/spine/ToY.h | 56 --------------- .../spine-cpp/src/spine/FromProperty.cpp | 40 ----------- spine-cpp/spine-cpp/src/spine/FromRotate.cpp | 47 ------------- spine-cpp/spine-cpp/src/spine/FromScaleX.cpp | 43 ------------ spine-cpp/spine-cpp/src/spine/FromScaleY.cpp | 43 ------------ spine-cpp/spine-cpp/src/spine/FromShearY.cpp | 43 ------------ spine-cpp/spine-cpp/src/spine/FromX.cpp | 42 ----------- spine-cpp/spine-cpp/src/spine/FromY.cpp | 42 ----------- spine-cpp/spine-cpp/src/spine/ToProperty.cpp | 40 ----------- spine-cpp/spine-cpp/src/spine/ToRotate.cpp | 68 ------------------ spine-cpp/spine-cpp/src/spine/ToScaleX.cpp | 66 ----------------- spine-cpp/spine-cpp/src/spine/ToScaleY.cpp | 66 ----------------- spine-cpp/spine-cpp/src/spine/ToShearY.cpp | 70 ------------------- spine-cpp/spine-cpp/src/spine/ToX.cpp | 56 --------------- spine-cpp/spine-cpp/src/spine/ToY.cpp | 56 --------------- 28 files changed, 1474 deletions(-) delete mode 100644 spine-cpp/spine-cpp/include/spine/FromProperty.h delete mode 100644 spine-cpp/spine-cpp/include/spine/FromRotate.h delete mode 100644 spine-cpp/spine-cpp/include/spine/FromScaleX.h delete mode 100644 spine-cpp/spine-cpp/include/spine/FromScaleY.h delete mode 100644 spine-cpp/spine-cpp/include/spine/FromShearY.h delete mode 100644 spine-cpp/spine-cpp/include/spine/FromX.h delete mode 100644 spine-cpp/spine-cpp/include/spine/FromY.h delete mode 100644 spine-cpp/spine-cpp/include/spine/ToProperty.h delete mode 100644 spine-cpp/spine-cpp/include/spine/ToRotate.h delete mode 100644 spine-cpp/spine-cpp/include/spine/ToScaleX.h delete mode 100644 spine-cpp/spine-cpp/include/spine/ToScaleY.h delete mode 100644 spine-cpp/spine-cpp/include/spine/ToShearY.h delete mode 100644 spine-cpp/spine-cpp/include/spine/ToX.h delete mode 100644 spine-cpp/spine-cpp/include/spine/ToY.h delete mode 100644 spine-cpp/spine-cpp/src/spine/FromProperty.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/FromRotate.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/FromScaleX.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/FromScaleY.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/FromShearY.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/FromX.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/FromY.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/ToProperty.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/ToRotate.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/ToScaleX.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/ToScaleY.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/ToShearY.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/ToX.cpp delete mode 100644 spine-cpp/spine-cpp/src/spine/ToY.cpp diff --git a/spine-cpp/spine-cpp/include/spine/FromProperty.h b/spine-cpp/spine-cpp/include/spine/FromProperty.h deleted file mode 100644 index acb64a8cf..000000000 --- a/spine-cpp/spine-cpp/include/spine/FromProperty.h +++ /dev/null @@ -1,60 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software or - * otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_FROMPROPERTY_H_ -#define SPINE_FROMPROPERTY_H_ - -#include -#include -#include -#include - -namespace spine { - class ToProperty; - class BonePose; - - /// Source property for a TransformConstraint. - class SP_API FromProperty : public SpineObject { - RTTI_DECL - public: - FromProperty(); - virtual ~FromProperty(); - - /// The value of this property that corresponds to ToProperty::offset. - float offset; - - /// Constrained properties. - Vector to; - - /// Reads this property from the specified bone. - virtual float value(BonePose& source, bool local, Vector& offsets) = 0; - }; -} - -#endif /* SPINE_FROMPROPERTY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/FromRotate.h b/spine-cpp/spine-cpp/include/spine/FromRotate.h deleted file mode 100644 index 779f5d1e3..000000000 --- a/spine-cpp/spine-cpp/include/spine/FromRotate.h +++ /dev/null @@ -1,49 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_FROMROTATE_H_ -#define SPINE_FROMROTATE_H_ - -#include -#include -#include - -namespace spine { - class BonePose; - - class SP_API FromRotate : public FromProperty { - RTTI_DECL - public: - FromRotate(); - - virtual float value(BonePose& source, bool local, Vector& offsets) override; - }; -} - -#endif /* SPINE_FROMROTATE_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/FromScaleX.h b/spine-cpp/spine-cpp/include/spine/FromScaleX.h deleted file mode 100644 index 98444d888..000000000 --- a/spine-cpp/spine-cpp/include/spine/FromScaleX.h +++ /dev/null @@ -1,49 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_FROMSCALEX_H_ -#define SPINE_FROMSCALEX_H_ - -#include -#include -#include - -namespace spine { - class BonePose; - - class SP_API FromScaleX : public FromProperty { - RTTI_DECL - public: - FromScaleX(); - - virtual float value(BonePose& source, bool local, Vector& offsets) override; - }; -} - -#endif /* SPINE_FROMSCALEX_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/FromScaleY.h b/spine-cpp/spine-cpp/include/spine/FromScaleY.h deleted file mode 100644 index d37f0802e..000000000 --- a/spine-cpp/spine-cpp/include/spine/FromScaleY.h +++ /dev/null @@ -1,49 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_FROMSCALEY_H_ -#define SPINE_FROMSCALEY_H_ - -#include -#include -#include - -namespace spine { - class BonePose; - - class SP_API FromScaleY : public FromProperty { - RTTI_DECL - public: - FromScaleY(); - - virtual float value(BonePose& source, bool local, Vector& offsets) override; - }; -} - -#endif /* SPINE_FROMSCALEY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/FromShearY.h b/spine-cpp/spine-cpp/include/spine/FromShearY.h deleted file mode 100644 index 071c6351c..000000000 --- a/spine-cpp/spine-cpp/include/spine/FromShearY.h +++ /dev/null @@ -1,49 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_FROMSHEARY_H_ -#define SPINE_FROMSHEARY_H_ - -#include -#include -#include - -namespace spine { - class BonePose; - - class SP_API FromShearY : public FromProperty { - RTTI_DECL - public: - FromShearY(); - - virtual float value(BonePose& source, bool local, Vector& offsets) override; - }; -} - -#endif /* SPINE_FROMSHEARY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/FromX.h b/spine-cpp/spine-cpp/include/spine/FromX.h deleted file mode 100644 index 941761d27..000000000 --- a/spine-cpp/spine-cpp/include/spine/FromX.h +++ /dev/null @@ -1,49 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_FROMX_H_ -#define SPINE_FROMX_H_ - -#include -#include -#include - -namespace spine { - class BonePose; - - class SP_API FromX : public FromProperty { - RTTI_DECL - public: - FromX(); - - virtual float value(BonePose& source, bool local, Vector& offsets) override; - }; -} - -#endif /* SPINE_FROMX_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/FromY.h b/spine-cpp/spine-cpp/include/spine/FromY.h deleted file mode 100644 index 6454ba95b..000000000 --- a/spine-cpp/spine-cpp/include/spine/FromY.h +++ /dev/null @@ -1,49 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_FROMY_H_ -#define SPINE_FROMY_H_ - -#include -#include -#include - -namespace spine { - class BonePose; - - class SP_API FromY : public FromProperty { - RTTI_DECL - public: - FromY(); - - virtual float value(BonePose& source, bool local, Vector& offsets) override; - }; -} - -#endif /* SPINE_FROMY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/ToProperty.h b/spine-cpp/spine-cpp/include/spine/ToProperty.h deleted file mode 100644 index 95973ac56..000000000 --- a/spine-cpp/spine-cpp/include/spine/ToProperty.h +++ /dev/null @@ -1,66 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_TOPROPERTY_H_ -#define SPINE_TOPROPERTY_H_ - -#include -#include - -namespace spine { - class TransformConstraintPose; - class BonePose; - - /// Constrained property for a TransformConstraint. - class SP_API ToProperty { - RTTI_DECL - public: - ToProperty(); - virtual ~ToProperty(); - - protected: - /// The value of this property that corresponds to FromProperty::offset. - float offset; - - /// The maximum value of this property when TransformConstraintData::clamp clamped. - float max; - - /// The scale of the FromProperty value in relation to this property. - float scale; - - public: - /// Reads the mix for this property from the specified pose. - virtual float mix(TransformConstraintPose& pose) = 0; - - /// Applies the value to this property. - virtual void apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) = 0; - }; -} - -#endif /* SPINE_TOPROPERTY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/ToRotate.h b/spine-cpp/spine-cpp/include/spine/ToRotate.h deleted file mode 100644 index 8be64cf3c..000000000 --- a/spine-cpp/spine-cpp/include/spine/ToRotate.h +++ /dev/null @@ -1,56 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_TOROTATE_H_ -#define SPINE_TOROTATE_H_ - -#include -#include -#include - -namespace spine { - class TransformConstraintPose; - class BonePose; - - class SP_API ToRotate : public ToProperty { - RTTI_DECL - - public: - ToRotate(); - virtual ~ToRotate(); - - /// Returns the mix rotation value from the pose. - virtual float mix(TransformConstraintPose& pose) override; - - /// Applies the rotation value to the bone. - virtual void apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) override; - }; -} - -#endif /* SPINE_TOROTATE_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/ToScaleX.h b/spine-cpp/spine-cpp/include/spine/ToScaleX.h deleted file mode 100644 index eff89d270..000000000 --- a/spine-cpp/spine-cpp/include/spine/ToScaleX.h +++ /dev/null @@ -1,52 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_TOSCALEX_H_ -#define SPINE_TOSCALEX_H_ - -#include -#include - -namespace spine { - class TransformConstraintPose; - class BonePose; - - class SP_API ToScaleX : public ToProperty { - RTTI_DECL - public: - ToScaleX(); - virtual ~ToScaleX(); - - virtual float mix(TransformConstraintPose& pose) override; - - virtual void apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) override; - }; -} - -#endif /* SPINE_TOSCALEX_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/ToScaleY.h b/spine-cpp/spine-cpp/include/spine/ToScaleY.h deleted file mode 100644 index d7b795184..000000000 --- a/spine-cpp/spine-cpp/include/spine/ToScaleY.h +++ /dev/null @@ -1,56 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_TOSCALEY_H_ -#define SPINE_TOSCALEY_H_ - -#include -#include -#include - -namespace spine { - class TransformConstraintPose; - class BonePose; - - class SP_API ToScaleY : public ToProperty { - RTTI_DECL - - public: - ToScaleY(); - virtual ~ToScaleY(); - - /// Returns the mix scale Y value from the pose. - virtual float mix(TransformConstraintPose& pose) override; - - /// Applies the scale Y value to the bone. - virtual void apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) override; - }; -} - -#endif /* SPINE_TOSCALEY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/ToShearY.h b/spine-cpp/spine-cpp/include/spine/ToShearY.h deleted file mode 100644 index e8c3e67a7..000000000 --- a/spine-cpp/spine-cpp/include/spine/ToShearY.h +++ /dev/null @@ -1,56 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_TOSHEARY_H_ -#define SPINE_TOSHEARY_H_ - -#include -#include -#include - -namespace spine { - class TransformConstraintPose; - class BonePose; - - class SP_API ToShearY : public ToProperty { - RTTI_DECL - - public: - ToShearY(); - virtual ~ToShearY(); - - /// Returns the mix shear Y value from the pose. - virtual float mix(TransformConstraintPose& pose) override; - - /// Applies the shear Y value to the bone. - virtual void apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) override; - }; -} - -#endif /* SPINE_TOSHEARY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/ToX.h b/spine-cpp/spine-cpp/include/spine/ToX.h deleted file mode 100644 index 63e4135c8..000000000 --- a/spine-cpp/spine-cpp/include/spine/ToX.h +++ /dev/null @@ -1,56 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_TOX_H_ -#define SPINE_TOX_H_ - -#include -#include -#include - -namespace spine { - class TransformConstraintPose; - class BonePose; - - class SP_API ToX : public ToProperty { - RTTI_DECL - - public: - ToX(); - virtual ~ToX(); - - /// Returns the mix X value from the pose. - virtual float mix(TransformConstraintPose& pose) override; - - /// Applies the X value to the bone. - virtual void apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) override; - }; -} - -#endif /* SPINE_TOX_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/include/spine/ToY.h b/spine-cpp/spine-cpp/include/spine/ToY.h deleted file mode 100644 index 9792b6ad0..000000000 --- a/spine-cpp/spine-cpp/include/spine/ToY.h +++ /dev/null @@ -1,56 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#ifndef SPINE_TOY_H_ -#define SPINE_TOY_H_ - -#include -#include -#include - -namespace spine { - class TransformConstraintPose; - class BonePose; - - class SP_API ToY : public ToProperty { - RTTI_DECL - - public: - ToY(); - virtual ~ToY(); - - /// Returns the mix Y value from the pose. - virtual float mix(TransformConstraintPose& pose) override; - - /// Applies the Y value to the bone. - virtual void apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) override; - }; -} - -#endif /* SPINE_TOY_H_ */ \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/FromProperty.cpp b/spine-cpp/spine-cpp/src/spine/FromProperty.cpp deleted file mode 100644 index b0aa19164..000000000 --- a/spine-cpp/spine-cpp/src/spine/FromProperty.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include - -using namespace spine; - -RTTI_IMPL_NOPARENT(FromProperty) - -FromProperty::FromProperty() : SpineObject(), offset(0) { -} - -FromProperty::~FromProperty() { -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/FromRotate.cpp b/spine-cpp/spine-cpp/src/spine/FromRotate.cpp deleted file mode 100644 index dede04d5c..000000000 --- a/spine-cpp/spine-cpp/src/spine/FromRotate.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(FromRotate, FromProperty) - -FromRotate::FromRotate() : FromProperty() { -} - -float FromRotate::value(BonePose& source, bool local, Vector& offsets) { - if (local) return source.getRotation() + offsets[0]; - float value = MathUtil::atan2(source._c, source._a) * MathUtil::Rad_Deg - + (source._a * source._d - source._b * source._c > 0 ? offsets[0] : -offsets[0]); - if (value < 0) value += 360; - return value; -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/FromScaleX.cpp b/spine-cpp/spine-cpp/src/spine/FromScaleX.cpp deleted file mode 100644 index fff88f931..000000000 --- a/spine-cpp/spine-cpp/src/spine/FromScaleX.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(FromScaleX, FromProperty) - -FromScaleX::FromScaleX() : FromProperty() { -} - -float FromScaleX::value(BonePose& source, bool local, Vector& offsets) { - return (local ? source.getScaleX() : MathUtil::sqrt(source._a * source._a + source._c * source._c)) + offsets[3]; -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/FromScaleY.cpp b/spine-cpp/spine-cpp/src/spine/FromScaleY.cpp deleted file mode 100644 index 1794e5788..000000000 --- a/spine-cpp/spine-cpp/src/spine/FromScaleY.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(FromScaleY, FromProperty) - -FromScaleY::FromScaleY() : FromProperty() { -} - -float FromScaleY::value(BonePose& source, bool local, Vector& offsets) { - return (local ? source.getScaleY() : MathUtil::sqrt(source._b * source._b + source._d * source._d)) + offsets[4]; -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/FromShearY.cpp b/spine-cpp/spine-cpp/src/spine/FromShearY.cpp deleted file mode 100644 index cd19b2dc2..000000000 --- a/spine-cpp/spine-cpp/src/spine/FromShearY.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(FromShearY, FromProperty) - -FromShearY::FromShearY() : FromProperty() { -} - -float FromShearY::value(BonePose& source, bool local, Vector& offsets) { - return (local ? source.getShearY() : (MathUtil::atan2(source._d, source._b) - MathUtil::atan2(source._c, source._a)) * MathUtil::Rad_Deg - 90) + offsets[5]; -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/FromX.cpp b/spine-cpp/spine-cpp/src/spine/FromX.cpp deleted file mode 100644 index 46f44caa6..000000000 --- a/spine-cpp/spine-cpp/src/spine/FromX.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include - -using namespace spine; - -RTTI_IMPL(FromX, FromProperty) - -FromX::FromX() : FromProperty() { -} - -float FromX::value(BonePose& source, bool local, Vector& offsets) { - return local ? source.getX() + offsets[1] : offsets[1] * source._a + offsets[2] * source._b + source._worldX; -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/FromY.cpp b/spine-cpp/spine-cpp/src/spine/FromY.cpp deleted file mode 100644 index 895add8b0..000000000 --- a/spine-cpp/spine-cpp/src/spine/FromY.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE - * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include - -using namespace spine; - -RTTI_IMPL(FromY, FromProperty) - -FromY::FromY() : FromProperty() { -} - -float FromY::value(BonePose& source, bool local, Vector& offsets) { - return local ? source.getY() + offsets[2] : offsets[1] * source._c + offsets[2] * source._d + source._worldY; -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/ToProperty.cpp b/spine-cpp/spine-cpp/src/spine/ToProperty.cpp deleted file mode 100644 index 7d5b40406..000000000 --- a/spine-cpp/spine-cpp/src/spine/ToProperty.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated July 28, 2023. Replaces all prior versions. - * - * Copyright (c) 2013-2023, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include - -using namespace spine; - -RTTI_IMPL_NOPARENT(ToProperty) - -ToProperty::ToProperty() : offset(0), max(0), scale(1) { -} - -ToProperty::~ToProperty() { -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/ToRotate.cpp b/spine-cpp/spine-cpp/src/spine/ToRotate.cpp deleted file mode 100644 index 122cafd16..000000000 --- a/spine-cpp/spine-cpp/src/spine/ToRotate.cpp +++ /dev/null @@ -1,68 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(ToRotate, ToProperty) - -ToRotate::ToRotate() { -} - -ToRotate::~ToRotate() { -} - -float ToRotate::mix(TransformConstraintPose& pose) { - return pose.getMixRotate(); -} - -void ToRotate::apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) { - if (local) { - if (!additive) value -= bone.getRotation(); - bone.setRotation(bone.getRotation() + value * pose.getMixRotate()); - } else { - float a = bone._a, b = bone._b, c = bone._c, d = bone._d; - value *= MathUtil::Deg_Rad; - if (!additive) value -= MathUtil::atan2(c, a); - if (value > MathUtil::Pi) - value -= MathUtil::Pi * 2; - else if (value < -MathUtil::Pi) - value += MathUtil::Pi * 2; - value *= pose.getMixRotate(); - float cosVal = MathUtil::cos(value), sinVal = MathUtil::sin(value); - bone._a = cosVal * a - sinVal * c; - bone._b = cosVal * b - sinVal * d; - bone._c = sinVal * a + cosVal * c; - bone._d = sinVal * b + cosVal * d; - } -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/ToScaleX.cpp b/spine-cpp/spine-cpp/src/spine/ToScaleX.cpp deleted file mode 100644 index 07f6be13a..000000000 --- a/spine-cpp/spine-cpp/src/spine/ToScaleX.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(ToScaleX, ToProperty) - -ToScaleX::ToScaleX() { -} - -ToScaleX::~ToScaleX() { -} - -float ToScaleX::mix(TransformConstraintPose& pose) { - return pose.getMixScaleX(); -} - -void ToScaleX::apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) { - if (local) { - if (additive) - bone.setScaleX(bone.getScaleX() * (1 + ((value - 1) * pose.getMixScaleX()))); - else if (bone.getScaleX() != 0) - bone.setScaleX(1 + (value / bone.getScaleX() - 1) * pose.getMixScaleX()); - } else { - float s; - if (additive) - s = 1 + (value - 1) * pose.getMixScaleX(); - else { - s = MathUtil::sqrt(bone._a * bone._a + bone._c * bone._c); - if (s != 0) s = 1 + (value / s - 1) * pose.getMixScaleX(); - } - bone._a *= s; - bone._c *= s; - } -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/ToScaleY.cpp b/spine-cpp/spine-cpp/src/spine/ToScaleY.cpp deleted file mode 100644 index ecfe4fa4c..000000000 --- a/spine-cpp/spine-cpp/src/spine/ToScaleY.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(ToScaleY, ToProperty) - -ToScaleY::ToScaleY() { -} - -ToScaleY::~ToScaleY() { -} - -float ToScaleY::mix(TransformConstraintPose& pose) { - return pose.getMixScaleY(); -} - -void ToScaleY::apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) { - if (local) { - if (additive) - bone.setScaleY(bone.getScaleY() * (1 + ((value - 1) * pose.getMixScaleY()))); - else if (bone.getScaleY() != 0) - bone.setScaleY(1 + (value / bone.getScaleY() - 1) * pose.getMixScaleY()); - } else { - float s; - if (additive) - s = 1 + (value - 1) * pose.getMixScaleY(); - else { - s = MathUtil::sqrt(bone._b * bone._b + bone._d * bone._d); - if (s != 0) s = 1 + (value / s - 1) * pose.getMixScaleY(); - } - bone._b *= s; - bone._d *= s; - } -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/ToShearY.cpp b/spine-cpp/spine-cpp/src/spine/ToShearY.cpp deleted file mode 100644 index 0611f81df..000000000 --- a/spine-cpp/spine-cpp/src/spine/ToShearY.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(ToShearY, ToProperty) - -ToShearY::ToShearY() { -} - -ToShearY::~ToShearY() { -} - -float ToShearY::mix(TransformConstraintPose& pose) { - return pose.getMixShearY(); -} - -void ToShearY::apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) { - if (local) { - if (!additive) value -= bone.getShearY(); - bone.setShearY(bone.getShearY() + value * pose.getMixShearY()); - } else { - float b = bone._b, d = bone._d, by = MathUtil::atan2(d, b); - value = (value + 90) * MathUtil::Deg_Rad; - if (additive) - value -= MathUtil::Pi / 2; - else { - value -= by - MathUtil::atan2(bone._c, bone._a); - if (value > MathUtil::Pi) - value -= MathUtil::Pi * 2; - else if (value < -MathUtil::Pi) - value += MathUtil::Pi * 2; - } - value = by + value * pose.getMixShearY(); - float s = MathUtil::sqrt(b * b + d * d); - bone._b = MathUtil::cos(value) * s; - bone._d = MathUtil::sin(value) * s; - } -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/ToX.cpp b/spine-cpp/spine-cpp/src/spine/ToX.cpp deleted file mode 100644 index 9423727a9..000000000 --- a/spine-cpp/spine-cpp/src/spine/ToX.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(ToX, ToProperty) - -ToX::ToX() { -} - -ToX::~ToX() { -} - -float ToX::mix(TransformConstraintPose& pose) { - return pose.getMixX(); -} - -void ToX::apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) { - if (local) { - if (!additive) value -= bone.getX(); - bone.setX(bone.getX() + value * pose.getMixX()); - } else { - if (!additive) value -= bone.getWorldX(); - bone.setWorldX(bone.getWorldX() + value * pose.getMixX()); - } -} \ No newline at end of file diff --git a/spine-cpp/spine-cpp/src/spine/ToY.cpp b/spine-cpp/spine-cpp/src/spine/ToY.cpp deleted file mode 100644 index 6b767c2da..000000000 --- a/spine-cpp/spine-cpp/src/spine/ToY.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/****************************************************************************** - * Spine Runtimes License Agreement - * Last updated April 5, 2025. Replaces all prior versions. - * - * Copyright (c) 2013-2025, Esoteric Software LLC - * - * Integration of the Spine Runtimes into software or otherwise creating - * derivative works of the Spine Runtimes is permitted under the terms and - * conditions of Section 2 of the Spine Editor License Agreement: - * http://esotericsoftware.com/spine-editor-license - * - * Otherwise, it is permitted to integrate the Spine Runtimes into software - * or otherwise create derivative works of the Spine Runtimes (collectively, - * "Products"), provided that each user of the Products must obtain their own - * Spine Editor license and redistribution of the Products in any form must - * include this license and copyright notice. - * - * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, - * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *****************************************************************************/ - -#include -#include -#include - -using namespace spine; - -RTTI_IMPL(ToY, ToProperty) - -ToY::ToY() { -} - -ToY::~ToY() { -} - -float ToY::mix(TransformConstraintPose& pose) { - return pose.getMixY(); -} - -void ToY::apply(TransformConstraintPose& pose, BonePose& bone, float value, bool local, bool additive) { - if (local) { - if (!additive) value -= bone.getY(); - bone.setY(bone.getY() + value * pose.getMixY()); - } else { - if (!additive) value -= bone.getWorldY(); - bone.setWorldY(bone.getWorldY() + value * pose.getMixY()); - } -} \ No newline at end of file