[cpp] Remove dll.h and SP_API

This commit is contained in:
Mario Zechner 2025-09-10 13:53:34 +02:00
parent 18a244386e
commit 8bde2aeb54
99 changed files with 157 additions and 208 deletions

View File

@ -49,7 +49,7 @@ namespace spine {
class AnimationState; class AnimationState;
/// Stores a list of timelines to animate a skeleton's pose over time. /// Stores a list of timelines to animate a skeleton's pose over time.
class SP_API Animation : public SpineObject { class Animation : public SpineObject {
friend class AnimationState; friend class AnimationState;
friend class TrackEntry; friend class TrackEntry;

View File

@ -78,7 +78,7 @@ namespace spine {
#endif #endif
/// Abstract class to inherit from to create a callback object /// Abstract class to inherit from to create a callback object
class SP_API AnimationStateListenerObject { class AnimationStateListenerObject {
public: public:
AnimationStateListenerObject() {}; AnimationStateListenerObject() {};
@ -90,7 +90,7 @@ namespace spine {
}; };
/// State for the playback of an animation /// State for the playback of an animation
class SP_API TrackEntry : public SpineObject, public HasRendererObject { class TrackEntry : public SpineObject, public HasRendererObject {
friend class EventQueue; friend class EventQueue;
friend class AnimationState; friend class AnimationState;
@ -360,7 +360,7 @@ namespace spine {
void reset(); void reset();
}; };
class SP_API EventQueueEntry : public SpineObject { class EventQueueEntry : public SpineObject {
friend class EventQueue; friend class EventQueue;
public: public:
@ -371,7 +371,7 @@ namespace spine {
EventQueueEntry(EventType eventType, TrackEntry *trackEntry, Event *event = NULL); EventQueueEntry(EventType eventType, TrackEntry *trackEntry, Event *event = NULL);
}; };
class SP_API EventQueue : public SpineObject { class EventQueue : public SpineObject {
friend class AnimationState; friend class AnimationState;
private: private:
@ -403,7 +403,7 @@ namespace spine {
void drain(); void drain();
}; };
class SP_API AnimationState : public SpineObject, public HasRendererObject { class AnimationState : public SpineObject, public HasRendererObject {
friend class TrackEntry; friend class TrackEntry;
friend class EventQueue; friend class EventQueue;

View File

@ -42,7 +42,7 @@ namespace spine {
class Animation; class Animation;
/// Stores mix (crossfade) durations to be applied when AnimationState animations are changed. /// Stores mix (crossfade) durations to be applied when AnimationState animations are changed.
class SP_API AnimationStateData : public SpineObject { class AnimationStateData : public SpineObject {
friend class AnimationState; friend class AnimationState;
public: public:

View File

@ -37,7 +37,7 @@
namespace spine { namespace spine {
template<typename T> template<typename T>
class SP_API Array : public SpineObject { class Array : public SpineObject {
public: public:
using size_type = size_t; using size_type = size_t;
using value_type = T; using value_type = T;

View File

@ -39,7 +39,7 @@
#include <assert.h> #include <assert.h>
namespace spine { namespace spine {
class SP_API ArrayUtils : public SpineObject { class ArrayUtils : public SpineObject {
public: public:
/// Finds an item by comparing each item's name. /// Finds an item by comparing each item's name.
/// It is more efficient to cache the results of this method than to call it multiple times. /// It is more efficient to cache the results of this method than to call it multiple times.

View File

@ -82,7 +82,7 @@ namespace spine {
TextureWrap_Repeat TextureWrap_Repeat
}; };
class SP_API AtlasPage : public SpineObject { class AtlasPage : public SpineObject {
public: public:
String name; String name;
String texturePath; String texturePath;
@ -107,7 +107,7 @@ namespace spine {
} }
}; };
class SP_API AtlasRegion : public TextureRegion { class AtlasRegion : public TextureRegion {
friend class Atlas; friend class Atlas;
friend class RegionAttachment; friend class RegionAttachment;
friend class MeshAttachment; friend class MeshAttachment;
@ -242,7 +242,7 @@ namespace spine {
class TextureLoader; class TextureLoader;
class SP_API Atlas : public SpineObject { class Atlas : public SpineObject {
public: public:
Atlas(const String &path, TextureLoader *textureLoader, bool createTexture = true); Atlas(const String &path, TextureLoader *textureLoader, bool createTexture = true);

View File

@ -44,7 +44,7 @@ namespace spine {
/// ///
/// See https://esotericsoftware.com/spine-loading-skeleton-data#JSON-and-binary-data Loading skeleton data in the /// See https://esotericsoftware.com/spine-loading-skeleton-data#JSON-and-binary-data Loading skeleton data in the
/// Spine Runtimes Guide. /// Spine Runtimes Guide.
class SP_API AtlasAttachmentLoader : public AttachmentLoader { class AtlasAttachmentLoader : public AttachmentLoader {
public: public:
explicit AtlasAttachmentLoader(Atlas &atlas); explicit AtlasAttachmentLoader(Atlas &atlas);

View File

@ -35,7 +35,7 @@
#include <spine/SpineString.h> #include <spine/SpineString.h>
namespace spine { namespace spine {
class SP_API Attachment : public SpineObject { class Attachment : public SpineObject {
RTTI_DECL_NOPARENT RTTI_DECL_NOPARENT
public: public:

View File

@ -53,7 +53,7 @@ namespace spine {
class Sequence; class Sequence;
class SP_API AttachmentLoader : public SpineObject { class AttachmentLoader : public SpineObject {
public: public:
AttachmentLoader(); AttachmentLoader();

View File

@ -48,7 +48,7 @@ namespace spine {
class Event; class Event;
class SP_API AttachmentTimeline : public Timeline, public SlotTimeline { class AttachmentTimeline : public Timeline, public SlotTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -43,7 +43,7 @@ namespace spine {
/// A bone has a local transform which is used to compute its world transform. A bone also has an applied transform, which is a /// A bone has a local transform which is used to compute its world transform. A bone also has an applied transform, which is a
/// local transform that can be applied to compute the world transform. The local transform and applied transform may differ if a /// local transform that can be applied to compute the world transform. The local transform and applied transform may differ if a
/// constraint or application code modifies the world transform after it was computed from the local transform. /// constraint or application code modifies the world transform after it was computed from the local transform.
class SP_API Bone : public PosedGeneric<BoneData, BoneLocal, BonePose>, public PosedActive, public Update { class Bone : public PosedGeneric<BoneData, BoneLocal, BonePose>, public PosedActive, public Update {
friend class AnimationState; friend class AnimationState;
friend class RotateTimeline; friend class RotateTimeline;
friend class IkConstraint; friend class IkConstraint;

View File

@ -37,7 +37,7 @@
#include <spine/RTTI.h> #include <spine/RTTI.h>
namespace spine { namespace spine {
class SP_API BoneData : public PosedDataGeneric<BoneLocal> { class BoneData : public PosedDataGeneric<BoneLocal> {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -37,7 +37,7 @@
namespace spine { namespace spine {
/// Stores a bone's local pose. /// Stores a bone's local pose.
class SP_API BoneLocal : public Pose<BoneLocal> { class BoneLocal : public Pose<BoneLocal> {
friend class IkConstraint; friend class IkConstraint;
friend class BoneTimeline1; friend class BoneTimeline1;
friend class BoneTimeline2; friend class BoneTimeline2;

View File

@ -40,7 +40,7 @@ namespace spine {
/// The applied pose for a bone. This is the Bone pose with constraints applied and the world transform computed by /// The applied pose for a bone. This is the Bone pose with constraints applied and the world transform computed by
/// Skeleton::updateWorldTransform(Physics). /// Skeleton::updateWorldTransform(Physics).
class SP_API BonePose : public BoneLocal, public Update { class BonePose : public BoneLocal, public Update {
friend class IkConstraint; friend class IkConstraint;
friend class PathConstraint; friend class PathConstraint;
friend class PhysicsConstraint; friend class PhysicsConstraint;

View File

@ -31,7 +31,7 @@
#define Spine_BoneTimeline_h #define Spine_BoneTimeline_h
#include <cstddef> #include <cstddef>
#include <spine/dll.h>
#include <spine/CurveTimeline.h> #include <spine/CurveTimeline.h>
namespace spine { namespace spine {
@ -40,7 +40,7 @@ namespace spine {
class BoneLocal; class BoneLocal;
/// An interface for timelines which change the property of a bone. /// An interface for timelines which change the property of a bone.
class SP_API BoneTimeline { class BoneTimeline {
RTTI_DECL_NOPARENT RTTI_DECL_NOPARENT
public: public:
@ -56,7 +56,7 @@ namespace spine {
}; };
/// Base class for timelines that animate a single bone property. /// Base class for timelines that animate a single bone property.
class SP_API BoneTimeline1 : public CurveTimeline1, public BoneTimeline { class BoneTimeline1 : public CurveTimeline1, public BoneTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
friend class AnimationState; friend class AnimationState;
@ -85,7 +85,7 @@ namespace spine {
}; };
/// Base class for timelines that animate two bone properties. /// Base class for timelines that animate two bone properties.
class SP_API BoneTimeline2 : public CurveTimeline, public BoneTimeline { class BoneTimeline2 : public CurveTimeline, public BoneTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
friend class AnimationState; friend class AnimationState;

View File

@ -36,7 +36,7 @@
namespace spine { namespace spine {
/// Attachment that has a polygon for bounds checking. /// Attachment that has a polygon for bounds checking.
class SP_API BoundingBoxAttachment : public VertexAttachment { class BoundingBoxAttachment : public VertexAttachment {
RTTI_DECL RTTI_DECL
public: public:

View File

@ -36,7 +36,7 @@
namespace spine { namespace spine {
class SlotData; class SlotData;
class SP_API ClippingAttachment : public VertexAttachment { class ClippingAttachment : public VertexAttachment {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -35,7 +35,7 @@
#include <stdlib.h> #include <stdlib.h>
namespace spine { namespace spine {
class SP_API Color : public SpineObject { class Color : public SpineObject {
public: public:
Color() : r(0), g(0), b(0), a(0) { Color() : r(0), g(0), b(0), a(0) {
} }

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Changes a slot's SlotPose::getColor(). /// Changes a slot's SlotPose::getColor().
class SP_API RGBATimeline : public SlotCurveTimeline { class RGBATimeline : public SlotCurveTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -63,7 +63,7 @@ namespace spine {
}; };
/// Changes the RGB for a slot's SlotPose::getColor(). /// Changes the RGB for a slot's SlotPose::getColor().
class SP_API RGBTimeline : public SlotCurveTimeline { class RGBTimeline : public SlotCurveTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -89,7 +89,7 @@ namespace spine {
static const int B = 3; static const int B = 3;
}; };
class SP_API AlphaTimeline : public CurveTimeline1, public SlotTimeline { class AlphaTimeline : public CurveTimeline1, public SlotTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -113,7 +113,7 @@ namespace spine {
}; };
/// Changes a slot's SlotPose::getColor() and SlotPose::getDarkColor() for two color tinting. /// Changes a slot's SlotPose::getColor() and SlotPose::getDarkColor() for two color tinting.
class SP_API RGBA2Timeline : public SlotCurveTimeline { class RGBA2Timeline : public SlotCurveTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -144,7 +144,7 @@ namespace spine {
}; };
/// Changes the RGB for a slot's SlotPose::getColor() and SlotPose::getDarkColor() for two color tinting. /// Changes the RGB for a slot's SlotPose::getColor() and SlotPose::getDarkColor() for two color tinting.
class SP_API RGB2Timeline : public SlotCurveTimeline { class RGB2Timeline : public SlotCurveTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -39,7 +39,7 @@
namespace spine { namespace spine {
class Skeleton; class Skeleton;
class SP_API Constraint : public Update { class Constraint : public Update {
friend class Skeleton; friend class Skeleton;
public: public:

View File

@ -39,7 +39,7 @@ namespace spine {
class Skeleton; class Skeleton;
class Constraint; class Constraint;
class SP_API ConstraintData : public SpineObject { class ConstraintData : public SpineObject {
RTTI_DECL_NOPARENT RTTI_DECL_NOPARENT
friend class Skeleton; friend class Skeleton;
friend class Constraint; friend class Constraint;

View File

@ -30,12 +30,12 @@
#ifndef Spine_ConstraintTimeline_h #ifndef Spine_ConstraintTimeline_h
#define Spine_ConstraintTimeline_h #define Spine_ConstraintTimeline_h
#include <spine/dll.h>
#include <spine/RTTI.h> #include <spine/RTTI.h>
namespace spine { namespace spine {
/// An interface for timelines which change the property of a constraint. /// An interface for timelines which change the property of a constraint.
class SP_API ConstraintTimeline { class ConstraintTimeline {
RTTI_DECL_NOPARENT RTTI_DECL_NOPARENT
public: public:

View File

@ -36,7 +36,7 @@
namespace spine { namespace spine {
/// Base class for single-value constraint timelines. /// Base class for single-value constraint timelines.
class SP_API ConstraintTimeline1 : public CurveTimeline1, public ConstraintTimeline { class ConstraintTimeline1 : public CurveTimeline1, public ConstraintTimeline {
RTTI_DECL RTTI_DECL
public: public:

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Base class for frames that use an interpolation bezier curve. /// Base class for frames that use an interpolation bezier curve.
class SP_API CurveTimeline : public Timeline { class CurveTimeline : public Timeline {
RTTI_DECL RTTI_DECL
public: public:
@ -64,7 +64,7 @@ namespace spine {
}; };
/// The base class for a CurveTimeline that sets one property. /// The base class for a CurveTimeline that sets one property.
class SP_API CurveTimeline1 : public CurveTimeline { class CurveTimeline1 : public CurveTimeline {
RTTI_DECL RTTI_DECL
public: public:

View File

@ -48,7 +48,7 @@ namespace spine {
class DebugEntry; class DebugEntry;
public: public:
class SP_API DebugPair { class DebugPair {
public: public:
explicit DebugPair(K &k, V &v) : key(k), value(v) { explicit DebugPair(K &k, V &v) : key(k), value(v) {
} }
@ -57,7 +57,7 @@ namespace spine {
V &value; V &value;
}; };
class SP_API DebugEntries { class DebugEntries {
public: public:
friend class DebugHashMap; friend class DebugHashMap;
@ -183,7 +183,7 @@ namespace spine {
return NULL; return NULL;
} }
class SP_API DebugEntry { class DebugEntry {
public: public:
K _key; K _key;
V _value; V _value;
@ -199,7 +199,7 @@ namespace spine {
}; };
#endif// SPINE_NO_CPP_RT #endif// SPINE_NO_CPP_RT
class SP_API DebugExtension : public SpineExtension { class DebugExtension : public SpineExtension {
struct Allocation { struct Allocation {
void *address; void *address;
size_t size; size_t size;

View File

@ -36,7 +36,7 @@ namespace spine {
class VertexAttachment; class VertexAttachment;
/// Changes a slot's SlotPose::getDeform() to deform a VertexAttachment. /// Changes a slot's SlotPose::getDeform() to deform a VertexAttachment.
class SP_API DeformTimeline : public SlotCurveTimeline { class DeformTimeline : public SlotCurveTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Changes a skeleton's Skeleton::getDrawOrder(). /// Changes a skeleton's Skeleton::getDrawOrder().
class SP_API DrawOrderTimeline : public Timeline { class DrawOrderTimeline : public Timeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -40,7 +40,7 @@ namespace spine {
/// ///
/// See Timeline::apply(), AnimationStateListener::event(), and /// See Timeline::apply(), AnimationStateListener::event(), and
/// @see https://esotericsoftware.com/spine-events Events in the Spine User Guide. /// @see https://esotericsoftware.com/spine-events Events in the Spine User Guide.
class SP_API Event : public SpineObject { class Event : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Stores the setup pose values for an Event. /// Stores the setup pose values for an Event.
class SP_API EventData : public SpineObject { class EventData : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Fires an Event when specific animation times are reached. /// Fires an Event when specific animation times are reached.
class SP_API EventTimeline : public Timeline { class EventTimeline : public Timeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -33,14 +33,14 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <spine/dll.h>
#define SP_UNUSED(x) (void) (x) #define SP_UNUSED(x) (void) (x)
namespace spine { namespace spine {
class String; class String;
class SP_API SpineExtension { class SpineExtension {
public: public:
template<typename T> template<typename T>
static T *alloc(size_t num, const char *file, int line) { static T *alloc(size_t num, const char *file, int line) {
@ -108,7 +108,7 @@ namespace spine {
static SpineExtension *_instance; static SpineExtension *_instance;
}; };
class SP_API DefaultSpineExtension : public SpineExtension { class DefaultSpineExtension : public SpineExtension {
public: public:
DefaultSpineExtension(); DefaultSpineExtension();

View File

@ -30,13 +30,13 @@
#ifndef Spine_HasRendererObject_h #ifndef Spine_HasRendererObject_h
#define Spine_HasRendererObject_h #define Spine_HasRendererObject_h
#include <spine/dll.h>
namespace spine { namespace spine {
typedef void (*DisposeRendererObject)(void *rendererObject); typedef void (*DisposeRendererObject)(void *rendererObject);
class SP_API HasRendererObject { class HasRendererObject {
public: public:
explicit HasRendererObject() : _rendererObject(0), _dispose(0) {}; explicit HasRendererObject() : _rendererObject(0), _dispose(0) {};

View File

@ -183,7 +183,7 @@ namespace spine {
return NULL; return NULL;
} }
class SP_API Entry : public SpineObject { class Entry : public SpineObject {
public: public:
K _key; K _key;
V _value; V _value;

View File

@ -41,7 +41,7 @@ namespace spine {
class Bone; class Bone;
class BonePose; class BonePose;
class SP_API IkConstraint : public ConstraintGeneric<IkConstraint, IkConstraintData, IkConstraintPose> { class IkConstraint : public ConstraintGeneric<IkConstraint, IkConstraintData, IkConstraintPose> {
friend class Skeleton; friend class Skeleton;
friend class IkConstraintTimeline; friend class IkConstraintTimeline;

View File

@ -41,7 +41,7 @@ namespace spine {
class BoneData; class BoneData;
class IkConstraint; class IkConstraint;
class SP_API IkConstraintData : public ConstraintDataGeneric<IkConstraint, IkConstraintPose> { class IkConstraintData : public ConstraintDataGeneric<IkConstraint, IkConstraintPose> {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -36,7 +36,7 @@
namespace spine { namespace spine {
/// Stores the current pose for an IK constraint. /// Stores the current pose for an IK constraint.
class SP_API IkConstraintPose : public Pose<IkConstraintPose> { class IkConstraintPose : public Pose<IkConstraintPose> {
friend class IkConstraint; friend class IkConstraint;
friend class IkConstraintTimeline; friend class IkConstraintTimeline;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -37,7 +37,7 @@ namespace spine {
/// Changes an IK constraint's IkConstraintPose::getMix(), IkConstraintPose::getSoftness(), /// Changes an IK constraint's IkConstraintPose::getMix(), IkConstraintPose::getSoftness(),
/// IkConstraintPose::getBendDirection(), IkConstraintPose::getStretch(), and IkConstraintPose::getCompress(). /// IkConstraintPose::getBendDirection(), IkConstraintPose::getStretch(), and IkConstraintPose::getCompress().
class SP_API IkConstraintTimeline : public CurveTimeline, public ConstraintTimeline { class IkConstraintTimeline : public CurveTimeline, public ConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -39,7 +39,7 @@
namespace spine { namespace spine {
/// Changes a bone's BoneLocal::getInherit(). /// Changes a bone's BoneLocal::getInherit().
class SP_API InheritTimeline : public Timeline, public BoneTimeline { class InheritTimeline : public Timeline, public BoneTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -39,7 +39,7 @@
#endif #endif
namespace spine { namespace spine {
class SP_API Json : public SpineObject { class Json : public SpineObject {
friend class SkeletonJson; friend class SkeletonJson;
public: public:

View File

@ -36,7 +36,7 @@
namespace spine { namespace spine {
class MeshAttachment; class MeshAttachment;
class SP_API LinkedMesh : public SpineObject { class LinkedMesh : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -39,7 +39,7 @@
namespace spine { namespace spine {
class SP_API MathUtil : public SpineObject { class MathUtil : public SpineObject {
private: private:
MathUtil(); MathUtil();

View File

@ -39,7 +39,7 @@
namespace spine { namespace spine {
/// Attachment that displays a texture region using a mesh. /// Attachment that displays a texture region using a mesh.
class SP_API MeshAttachment : public VertexAttachment { class MeshAttachment : public VertexAttachment {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
#include <spine/Color.h> #include <spine/Color.h>
namespace spine { namespace spine {
class SP_API PathAttachment : public VertexAttachment { class PathAttachment : public VertexAttachment {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -49,7 +49,7 @@ namespace spine {
/// constrained bones so they follow a PathAttachment. /// constrained bones so they follow a PathAttachment.
/// ///
/// See https://esotericsoftware.com/spine-path-constraints Path constraints in the Spine User Guide. /// See https://esotericsoftware.com/spine-path-constraints Path constraints in the Spine User Guide.
class SP_API PathConstraint : public ConstraintGeneric<PathConstraint, PathConstraintData, PathConstraintPose> { class PathConstraint : public ConstraintGeneric<PathConstraint, PathConstraintData, PathConstraintPose> {
friend class Skeleton; friend class Skeleton;
friend class PathConstraintMixTimeline; friend class PathConstraintMixTimeline;
friend class PathConstraintPositionTimeline; friend class PathConstraintPositionTimeline;

View File

@ -34,7 +34,7 @@
#include <spine/PosedData.h> #include <spine/PosedData.h>
#include <spine/Array.h> #include <spine/Array.h>
#include <spine/PathConstraintPose.h> #include <spine/PathConstraintPose.h>
#include <spine/dll.h>
#include <spine/PositionMode.h> #include <spine/PositionMode.h>
#include <spine/SpacingMode.h> #include <spine/SpacingMode.h>
#include <spine/RotateMode.h> #include <spine/RotateMode.h>
@ -48,7 +48,7 @@ namespace spine {
/// Stores the setup pose for a PathConstraint. /// Stores the setup pose for a PathConstraint.
/// ///
/// See https://esotericsoftware.com/spine-path-constraints Path constraints in the Spine User Guide. /// See https://esotericsoftware.com/spine-path-constraints Path constraints in the Spine User Guide.
class SP_API PathConstraintData : public ConstraintDataGeneric<PathConstraint, PathConstraintPose> { class PathConstraintData : public ConstraintDataGeneric<PathConstraint, PathConstraintPose> {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -37,7 +37,7 @@ namespace spine {
/// Changes a path constraint's PathConstraintPose::getMixRotate(), PathConstraintPose::getMixX(), and /// Changes a path constraint's PathConstraintPose::getMixRotate(), PathConstraintPose::getMixX(), and
/// PathConstraintPose::getMixY(). /// PathConstraintPose::getMixY().
class SP_API PathConstraintMixTimeline : public CurveTimeline, public ConstraintTimeline { class PathConstraintMixTimeline : public CurveTimeline, public ConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Stores a pose for a path constraint. /// Stores a pose for a path constraint.
class SP_API PathConstraintPose : public Pose<PathConstraintPose> { class PathConstraintPose : public Pose<PathConstraintPose> {
friend class PathConstraint; friend class PathConstraint;
friend class PathConstraintPositionTimeline; friend class PathConstraintPositionTimeline;
friend class PathConstraintSpacingTimeline; friend class PathConstraintSpacingTimeline;

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Changes a path constraint's PathConstraintPose::getPosition(). /// Changes a path constraint's PathConstraintPose::getPosition().
class SP_API PathConstraintPositionTimeline : public ConstraintTimeline1 { class PathConstraintPositionTimeline : public ConstraintTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Changes a path constraint's PathConstraintPose::getSpacing(). /// Changes a path constraint's PathConstraintPose::getSpacing().
class SP_API PathConstraintSpacingTimeline : public ConstraintTimeline1 { class PathConstraintSpacingTimeline : public ConstraintTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -44,7 +44,7 @@ namespace spine {
/// Stores the current pose for a physics constraint. A physics constraint applies physics to bones. /// Stores the current pose for a physics constraint. A physics constraint applies physics to bones.
/// ///
/// See https://esotericsoftware.com/spine-physics-constraints Physics constraints in the Spine User Guide. /// See https://esotericsoftware.com/spine-physics-constraints Physics constraints in the Spine User Guide.
class SP_API PhysicsConstraint : public ConstraintGeneric<PhysicsConstraint, PhysicsConstraintData, PhysicsConstraintPose> { class PhysicsConstraint : public ConstraintGeneric<PhysicsConstraint, PhysicsConstraintData, PhysicsConstraintPose> {
friend class Skeleton; friend class Skeleton;
friend class PhysicsConstraintTimeline; friend class PhysicsConstraintTimeline;
friend class PhysicsConstraintInertiaTimeline; friend class PhysicsConstraintInertiaTimeline;

View File

@ -41,7 +41,7 @@ namespace spine {
/// Stores the setup pose for a PhysicsConstraint. /// Stores the setup pose for a PhysicsConstraint.
/// ///
/// See https://esotericsoftware.com/spine-physics-constraints Physics constraints in the Spine User Guide. /// See https://esotericsoftware.com/spine-physics-constraints Physics constraints in the Spine User Guide.
class SP_API PhysicsConstraintData : public ConstraintDataGeneric<PhysicsConstraint, PhysicsConstraintPose> { class PhysicsConstraintData : public ConstraintDataGeneric<PhysicsConstraint, PhysicsConstraintPose> {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
friend class PhysicsConstraint; friend class PhysicsConstraint;

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Stores a pose for a physics constraint. /// Stores a pose for a physics constraint.
class SP_API PhysicsConstraintPose : public Pose<PhysicsConstraintPose> { class PhysicsConstraintPose : public Pose<PhysicsConstraintPose> {
friend class PhysicsConstraint; friend class PhysicsConstraint;
friend class PhysicsConstraintTimeline; friend class PhysicsConstraintTimeline;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -39,7 +39,7 @@
namespace spine { namespace spine {
/// The base class for most PhysicsConstraint timelines. /// The base class for most PhysicsConstraint timelines.
class SP_API PhysicsConstraintTimeline : public CurveTimeline1, public ConstraintTimeline { class PhysicsConstraintTimeline : public CurveTimeline1, public ConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -70,7 +70,7 @@ namespace spine {
}; };
/// Changes a physics constraint's PhysicsConstraintPose::getInertia(). /// Changes a physics constraint's PhysicsConstraintPose::getInertia().
class SP_API PhysicsConstraintInertiaTimeline : public PhysicsConstraintTimeline { class PhysicsConstraintInertiaTimeline : public PhysicsConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -96,7 +96,7 @@ namespace spine {
}; };
/// Changes a physics constraint's PhysicsConstraintPose::getStrength(). /// Changes a physics constraint's PhysicsConstraintPose::getStrength().
class SP_API PhysicsConstraintStrengthTimeline : public PhysicsConstraintTimeline { class PhysicsConstraintStrengthTimeline : public PhysicsConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -122,7 +122,7 @@ namespace spine {
}; };
/// Changes a physics constraint's PhysicsConstraintPose::getDamping(). /// Changes a physics constraint's PhysicsConstraintPose::getDamping().
class SP_API PhysicsConstraintDampingTimeline : public PhysicsConstraintTimeline { class PhysicsConstraintDampingTimeline : public PhysicsConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -149,7 +149,7 @@ namespace spine {
/// Changes a physics constraint's PhysicsConstraintPose::getMassInverse(). The /// Changes a physics constraint's PhysicsConstraintPose::getMassInverse(). The
/// timeline values are not inverted. /// timeline values are not inverted.
class SP_API PhysicsConstraintMassTimeline : public PhysicsConstraintTimeline { class PhysicsConstraintMassTimeline : public PhysicsConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -175,7 +175,7 @@ namespace spine {
}; };
/// Changes a physics constraint's PhysicsConstraintPose::getWind(). /// Changes a physics constraint's PhysicsConstraintPose::getWind().
class SP_API PhysicsConstraintWindTimeline : public PhysicsConstraintTimeline { class PhysicsConstraintWindTimeline : public PhysicsConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -201,7 +201,7 @@ namespace spine {
}; };
/// Changes a physics constraint's PhysicsConstraintPose::getGravity(). /// Changes a physics constraint's PhysicsConstraintPose::getGravity().
class SP_API PhysicsConstraintGravityTimeline : public PhysicsConstraintTimeline { class PhysicsConstraintGravityTimeline : public PhysicsConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -227,7 +227,7 @@ namespace spine {
}; };
/// Changes a physics constraint's PhysicsConstraintPose::getMix(). /// Changes a physics constraint's PhysicsConstraintPose::getMix().
class SP_API PhysicsConstraintMixTimeline : public PhysicsConstraintTimeline { class PhysicsConstraintMixTimeline : public PhysicsConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -253,7 +253,7 @@ namespace spine {
}; };
/// Resets a physics constraint when specific animation times are reached. /// Resets a physics constraint when specific animation times are reached.
class SP_API PhysicsConstraintResetTimeline : public Timeline, public ConstraintTimeline { class PhysicsConstraintResetTimeline : public Timeline, public ConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -43,7 +43,7 @@ namespace spine {
/// ///
/// See https://esotericsoftware.com/spine-points for Point Attachments in the Spine User Guide. /// See https://esotericsoftware.com/spine-points for Point Attachments in the Spine User Guide.
/// ///
class SP_API PointAttachment : public Attachment { class PointAttachment : public Attachment {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -37,7 +37,7 @@
namespace spine { namespace spine {
template<typename T> template<typename T>
class SP_API Pool : public SpineObject { class Pool : public SpineObject {
public: public:
Pool() { Pool() {
} }

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
template<class P> template<class P>
class SP_API Pose : public SpineObject { class Pose : public SpineObject {
public: public:
Pose() {}; Pose() {};
virtual ~Pose() {}; virtual ~Pose() {};

View File

@ -33,7 +33,7 @@
#include <spine/SpineObject.h> #include <spine/SpineObject.h>
namespace spine { namespace spine {
class SP_API Posed { class Posed {
public: public:
Posed() { Posed() {
} }

View File

@ -30,11 +30,11 @@
#ifndef Spine_PosedActive_h #ifndef Spine_PosedActive_h
#define Spine_PosedActive_h #define Spine_PosedActive_h
#include <spine/dll.h>
namespace spine { namespace spine {
/// Simple mixin class that adds active state tracking /// Simple mixin class that adds active state tracking
class SP_API PosedActive { class PosedActive {
protected: protected:
bool _active; bool _active;

View File

@ -37,7 +37,7 @@ namespace spine {
template<class P> template<class P>
class Pose; class Pose;
class SP_API PosedData : public SpineObject { class PosedData : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
friend class BoneTimeline1; friend class BoneTimeline1;

View File

@ -30,10 +30,10 @@
#ifndef Spine_RTTI_h #ifndef Spine_RTTI_h
#define Spine_RTTI_h #define Spine_RTTI_h
#include <spine/dll.h>
namespace spine { namespace spine {
class SP_API RTTI { class RTTI {
public: public:
explicit RTTI(const char *className); explicit RTTI(const char *className);

View File

@ -43,7 +43,7 @@ namespace spine {
class Slot; class Slot;
/// Attachment that displays a texture region. /// Attachment that displays a texture region.
class SP_API RegionAttachment : public Attachment { class RegionAttachment : public Attachment {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Changes a bone's local rotation. /// Changes a bone's local rotation.
class SP_API RotateTimeline : public BoneTimeline1 { class RotateTimeline : public BoneTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Changes a bone's local BoneLocal::getScaleX() and BoneLocal::getScaleY(). /// Changes a bone's local BoneLocal::getScaleX() and BoneLocal::getScaleY().
class SP_API ScaleTimeline : public BoneTimeline2 { class ScaleTimeline : public BoneTimeline2 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -49,7 +49,7 @@ namespace spine {
}; };
/// Changes a bone's local BoneLocal::getScaleX(). /// Changes a bone's local BoneLocal::getScaleX().
class SP_API ScaleXTimeline : public BoneTimeline1 { class ScaleXTimeline : public BoneTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -64,7 +64,7 @@ namespace spine {
}; };
/// Changes a bone's local BoneLocal::getScaleY(). /// Changes a bone's local BoneLocal::getScaleY().
class SP_API ScaleYTimeline : public BoneTimeline1 { class ScaleYTimeline : public BoneTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -42,7 +42,7 @@ namespace spine {
class SkeletonBinary; class SkeletonBinary;
class SkeletonJson; class SkeletonJson;
class SP_API Sequence : public SpineObject { class Sequence : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -39,7 +39,7 @@ namespace spine {
class HasTextureRegion; class HasTextureRegion;
/// Changes a slot's SlotPose::getSequenceIndex() for an attachment's Sequence. /// Changes a slot's SlotPose::getSequenceIndex() for an attachment's Sequence.
class SP_API SequenceTimeline : public Timeline, public SlotTimeline { class SequenceTimeline : public Timeline, public SlotTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Changes a bone's local BoneLocal::getShearX() and BoneLocal::getShearY(). /// Changes a bone's local BoneLocal::getShearX() and BoneLocal::getShearY().
class SP_API ShearTimeline : public BoneTimeline2 { class ShearTimeline : public BoneTimeline2 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -49,7 +49,7 @@ namespace spine {
}; };
/// Changes a bone's local BoneLocal::getShearX(). /// Changes a bone's local BoneLocal::getShearX().
class SP_API ShearXTimeline : public BoneTimeline1 { class ShearXTimeline : public BoneTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -64,7 +64,7 @@ namespace spine {
}; };
/// Changes a bone's local BoneLocal::getShearY(). /// Changes a bone's local BoneLocal::getShearY().
class SP_API ShearYTimeline : public BoneTimeline1 { class ShearYTimeline : public BoneTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -65,7 +65,7 @@ namespace spine {
class SkeletonClipping; class SkeletonClipping;
class SP_API Skeleton : public SpineObject { class Skeleton : public SpineObject {
friend class AnimationState; friend class AnimationState;
friend class SkeletonBounds; friend class SkeletonBounds;

View File

@ -65,7 +65,7 @@ namespace spine {
class Sequence; class Sequence;
class SP_API SkeletonBinary : public SpineObject { class SkeletonBinary : public SpineObject {
public: public:
static const int BONE_ROTATE = 0; static const int BONE_ROTATE = 0;
static const int BONE_TRANSLATE = 1; static const int BONE_TRANSLATE = 1;

View File

@ -43,7 +43,7 @@ namespace spine {
/// Collects each BoundingBoxAttachment that is visible and computes the world vertices for its polygon. /// Collects each BoundingBoxAttachment that is visible and computes the world vertices for its polygon.
/// The polygon vertices are provided along with convenience methods for doing hit detection. /// The polygon vertices are provided along with convenience methods for doing hit detection.
class SP_API SkeletonBounds : public SpineObject { class SkeletonBounds : public SpineObject {
public: public:
SkeletonBounds(); SkeletonBounds();

View File

@ -38,7 +38,7 @@ namespace spine {
class Skeleton; class Skeleton;
class ClippingAttachment; class ClippingAttachment;
class SP_API SkeletonClipping : public SpineObject { class SkeletonClipping : public SpineObject {
public: public:
SkeletonClipping(); SkeletonClipping();

View File

@ -59,7 +59,7 @@ namespace spine {
/// ///
/// See <a href="https://esotericsoftware.com/spine-runtime-architecture#Data-objects">Data objects</a> in the Spine Runtimes /// See <a href="https://esotericsoftware.com/spine-runtime-architecture#Data-objects">Data objects</a> in the Spine Runtimes
/// Guide. /// Guide.
class SP_API SkeletonData : public SpineObject { class SkeletonData : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -65,7 +65,7 @@ namespace spine {
class Attachment; class Attachment;
class SP_API SkeletonJson : public SpineObject { class SkeletonJson : public SpineObject {
public: public:
explicit SkeletonJson(Atlas &atlas); explicit SkeletonJson(Atlas &atlas);

View File

@ -37,7 +37,7 @@
namespace spine { namespace spine {
class Skeleton; class Skeleton;
struct SP_API RenderCommand { struct RenderCommand {
float *positions; float *positions;
float *uvs; float *uvs;
uint32_t *colors; uint32_t *colors;
@ -50,7 +50,7 @@ namespace spine {
RenderCommand *next; RenderCommand *next;
}; };
class SP_API SkeletonRenderer : public SpineObject { class SkeletonRenderer : public SpineObject {
public: public:
explicit SkeletonRenderer(); explicit SkeletonRenderer();

View File

@ -46,15 +46,15 @@ namespace spine {
/// Stores attachments by slot index and attachment name. /// Stores attachments by slot index and attachment name.
/// See SkeletonData::getDefaultSkin, Skeleton::getSkin, and /// See SkeletonData::getDefaultSkin, Skeleton::getSkin, and
/// http://esotericsoftware.com/spine-runtime-skins in the Spine Runtimes Guide. /// http://esotericsoftware.com/spine-runtime-skins in the Spine Runtimes Guide.
class SP_API Skin : public SpineObject { class Skin : public SpineObject {
friend class Skeleton; friend class Skeleton;
public: public:
class SP_API AttachmentMap : public SpineObject { class AttachmentMap : public SpineObject {
friend class Skin; friend class Skin;
public: public:
struct SP_API Entry { struct Entry {
size_t _slotIndex; size_t _slotIndex;
String _name; String _name;
Attachment *_attachment; Attachment *_attachment;
@ -63,7 +63,7 @@ namespace spine {
} }
}; };
class SP_API Entries { class Entries {
friend class AttachmentMap; friend class AttachmentMap;
public: public:

View File

@ -42,7 +42,7 @@ namespace spine {
/// Stores the setup pose for a PhysicsConstraint. /// Stores the setup pose for a PhysicsConstraint.
/// ///
/// See https://esotericsoftware.com/spine-physics-constraints Physics constraints in the Spine User Guide. /// See https://esotericsoftware.com/spine-physics-constraints Physics constraints in the Spine User Guide.
class SP_API Slider : public ConstraintGeneric<Slider, SliderData, SliderPose> { class Slider : public ConstraintGeneric<Slider, SliderData, SliderPose> {
friend class Skeleton; friend class Skeleton;
friend class SliderTimeline; friend class SliderTimeline;
friend class SliderMixTimeline; friend class SliderMixTimeline;

View File

@ -43,7 +43,7 @@ namespace spine {
class Skeleton; class Skeleton;
/// Stores the setup pose for a Slider /// Stores the setup pose for a Slider
class SP_API SliderData : public ConstraintDataGeneric<Slider, SliderPose> { class SliderData : public ConstraintDataGeneric<Slider, SliderPose> {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
friend class Slider; friend class Slider;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Changes a slider's SliderPose::getMix(). /// Changes a slider's SliderPose::getMix().
class SP_API SliderMixTimeline : public ConstraintTimeline1 { class SliderMixTimeline : public ConstraintTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -37,7 +37,7 @@ namespace spine {
class Slider; class Slider;
/// Stores a pose for a slider. /// Stores a pose for a slider.
class SP_API SliderPose : public Pose<SliderPose> { class SliderPose : public Pose<SliderPose> {
friend class Slider; friend class Slider;
friend class SliderMixTimeline; friend class SliderMixTimeline;
friend class SliderTimeline; friend class SliderTimeline;

View File

@ -34,7 +34,7 @@
namespace spine { namespace spine {
/// Changes a slider's SliderPose::getTime(). /// Changes a slider's SliderPose::getTime().
class SP_API SliderTimeline : public ConstraintTimeline1 { class SliderTimeline : public ConstraintTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -45,7 +45,7 @@ namespace spine {
/// Stores a slot's current pose. Slots organize attachments for Skeleton drawOrder purposes and provide a place to store /// Stores a slot's current pose. Slots organize attachments for Skeleton drawOrder purposes and provide a place to store
/// state for an attachment. State cannot be stored in an attachment itself because attachments are stateless and may be shared /// state for an attachment. State cannot be stored in an attachment itself because attachments are stateless and may be shared
/// across multiple skeletons. /// across multiple skeletons.
class SP_API Slot : public PosedGeneric<SlotData, SlotPose, SlotPose> { class Slot : public PosedGeneric<SlotData, SlotPose, SlotPose> {
friend class VertexAttachment; friend class VertexAttachment;
friend class Skeleton; friend class Skeleton;

View File

@ -38,7 +38,7 @@ namespace spine {
class SlotPose; class SlotPose;
/// Base class for slot timelines that use curves. /// Base class for slot timelines that use curves.
class SP_API SlotCurveTimeline : public CurveTimeline, public SlotTimeline { class SlotCurveTimeline : public CurveTimeline, public SlotTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -40,7 +40,7 @@ namespace spine {
class BoneData; class BoneData;
/// Stores the setup pose for a Slot. /// Stores the setup pose for a Slot.
class SP_API SlotData : public PosedDataGeneric<SlotPose> { class SlotData : public PosedDataGeneric<SlotPose> {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
friend class PathConstraint; friend class PathConstraint;

View File

@ -40,7 +40,7 @@ namespace spine {
class Attachment; class Attachment;
class VertexAttachment; class VertexAttachment;
class SP_API SlotPose : public Pose<SlotPose> { class SlotPose : public Pose<SlotPose> {
friend class Slot; friend class Slot;
friend class SlotCurveTimeline; friend class SlotCurveTimeline;
friend class DeformTimeline; friend class DeformTimeline;

View File

@ -30,13 +30,13 @@
#ifndef Spine_SlotTimeline_h #ifndef Spine_SlotTimeline_h
#define Spine_SlotTimeline_h #define Spine_SlotTimeline_h
#include <spine/dll.h>
#include <spine/RTTI.h> #include <spine/RTTI.h>
namespace spine { namespace spine {
/// An interface for timelines which change the property of a slot. /// An interface for timelines which change the property of a slot.
class SP_API SlotTimeline { class SlotTimeline {
RTTI_DECL_NOPARENT RTTI_DECL_NOPARENT
friend class AlphaTimeline; friend class AlphaTimeline;

View File

@ -33,12 +33,12 @@
#include <new> #include <new>
#include <stddef.h> #include <stddef.h>
#include <spine/dll.h>
namespace spine { namespace spine {
class String; class String;
class SP_API SpineObject { class SpineObject {
public: public:
void *operator new(size_t sz); void *operator new(size_t sz);

View File

@ -37,7 +37,7 @@
#include <stdio.h> #include <stdio.h>
namespace spine { namespace spine {
class SP_API String : public SpineObject { class String : public SpineObject {
public: public:
String() : _length(0), _buffer(NULL), _tempowner(true) { String() : _length(0), _buffer(NULL), _tempowner(true) {
} }

View File

@ -36,7 +36,7 @@
namespace spine { namespace spine {
class AtlasPage; class AtlasPage;
class SP_API TextureLoader : public SpineObject { class TextureLoader : public SpineObject {
public: public:
TextureLoader(); TextureLoader();

View File

@ -34,7 +34,7 @@
#include <spine/RTTI.h> #include <spine/RTTI.h>
namespace spine { namespace spine {
class SP_API TextureRegion : public SpineObject { class TextureRegion : public SpineObject {
friend class MeshAttachment; friend class MeshAttachment;
friend class RegionAttachment; friend class RegionAttachment;
friend class Atlas; friend class Atlas;

View File

@ -42,7 +42,7 @@ namespace spine {
class Event; class Event;
class SP_API Timeline : public SpineObject { class Timeline : public SpineObject {
RTTI_DECL_NOPARENT RTTI_DECL_NOPARENT
public: public:

View File

@ -40,7 +40,7 @@ namespace spine {
class Bone; class Bone;
class BonePose; class BonePose;
class SP_API TransformConstraint : public ConstraintGeneric<TransformConstraint, TransformConstraintData, TransformConstraintPose> { class TransformConstraint : public ConstraintGeneric<TransformConstraint, TransformConstraintData, TransformConstraintPose> {
friend class Skeleton; friend class Skeleton;
friend class TransformConstraintTimeline; friend class TransformConstraintTimeline;

View File

@ -45,7 +45,7 @@ namespace spine {
class ToProperty; class ToProperty;
/// Source property for a TransformConstraint. /// Source property for a TransformConstraint.
class SP_API FromProperty : public SpineObject { class FromProperty : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
public: public:
@ -65,7 +65,7 @@ namespace spine {
}; };
/// Constrained property for a TransformConstraint. /// Constrained property for a TransformConstraint.
class SP_API ToProperty : public SpineObject { class ToProperty : public SpineObject {
friend class SkeletonBinary; friend class SkeletonBinary;
public: public:
@ -90,7 +90,7 @@ namespace spine {
virtual void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) = 0; virtual void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) = 0;
}; };
class SP_API FromRotate : public FromProperty { class FromRotate : public FromProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -102,7 +102,7 @@ namespace spine {
float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override; float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override;
}; };
class SP_API ToRotate : public ToProperty { class ToRotate : public ToProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -115,7 +115,7 @@ namespace spine {
void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override; void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override;
}; };
class SP_API FromX : public FromProperty { class FromX : public FromProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -127,7 +127,7 @@ namespace spine {
float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override; float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override;
}; };
class SP_API ToX : public ToProperty { class ToX : public ToProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -140,7 +140,7 @@ namespace spine {
void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override; void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override;
}; };
class SP_API FromY : public FromProperty { class FromY : public FromProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -152,7 +152,7 @@ namespace spine {
float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override; float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override;
}; };
class SP_API ToY : public ToProperty { class ToY : public ToProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -165,7 +165,7 @@ namespace spine {
void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override; void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override;
}; };
class SP_API FromScaleX : public FromProperty { class FromScaleX : public FromProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -177,7 +177,7 @@ namespace spine {
float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override; float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override;
}; };
class SP_API ToScaleX : public ToProperty { class ToScaleX : public ToProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -190,7 +190,7 @@ namespace spine {
void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override; void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override;
}; };
class SP_API FromScaleY : public FromProperty { class FromScaleY : public FromProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -202,7 +202,7 @@ namespace spine {
float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override; float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override;
}; };
class SP_API ToScaleY : public ToProperty { class ToScaleY : public ToProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -215,7 +215,7 @@ namespace spine {
void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override; void apply(Skeleton &skeleton, TransformConstraintPose &pose, BonePose &bone, float value, bool local, bool additive) override;
}; };
class SP_API FromShearY : public FromProperty { class FromShearY : public FromProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -227,7 +227,7 @@ namespace spine {
float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override; float value(Skeleton &skeleton, BonePose &source, bool local, float *offsets) override;
}; };
class SP_API ToShearY : public ToProperty { class ToShearY : public ToProperty {
public: public:
RTTI_DECL RTTI_DECL
@ -243,7 +243,7 @@ namespace spine {
/// Stores the setup pose for a TransformConstraint. /// Stores the setup pose for a TransformConstraint.
/// ///
/// See https://esotericsoftware.com/spine-transform-constraints Transform constraints in the Spine User Guide. /// See https://esotericsoftware.com/spine-transform-constraints Transform constraints in the Spine User Guide.
class SP_API TransformConstraintData : public ConstraintDataGeneric<TransformConstraint, TransformConstraintPose> { class TransformConstraintData : public ConstraintDataGeneric<TransformConstraint, TransformConstraintPose> {
public: public:
RTTI_DECL RTTI_DECL
static const int ROTATION; static const int ROTATION;

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Stores a pose for a transform constraint. /// Stores a pose for a transform constraint.
class SP_API TransformConstraintPose : public Pose<TransformConstraintPose> { class TransformConstraintPose : public Pose<TransformConstraintPose> {
friend class FromProperty; friend class FromProperty;
friend class ToProperty; friend class ToProperty;
friend class FromRotate; friend class FromRotate;

View File

@ -38,7 +38,7 @@ namespace spine {
/// Changes a transform constraint's TransformConstraintPose::getMixRotate(), TransformConstraintPose::getMixX(), /// Changes a transform constraint's TransformConstraintPose::getMixRotate(), TransformConstraintPose::getMixX(),
/// TransformConstraintPose::getMixY(), TransformConstraintPose::getMixScaleX(), /// TransformConstraintPose::getMixY(), TransformConstraintPose::getMixScaleX(),
/// TransformConstraintPose::getMixScaleY(), and TransformConstraintPose::getMixShearY(). /// TransformConstraintPose::getMixScaleY(), and TransformConstraintPose::getMixShearY().
class SP_API TransformConstraintTimeline : public CurveTimeline, public ConstraintTimeline { class TransformConstraintTimeline : public CurveTimeline, public ConstraintTimeline {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -35,7 +35,7 @@
namespace spine { namespace spine {
/// Changes a bone's local X and Y translation. /// Changes a bone's local X and Y translation.
class SP_API TranslateTimeline : public BoneTimeline2 { class TranslateTimeline : public BoneTimeline2 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -50,7 +50,7 @@ namespace spine {
}; };
/// Changes a bone's local X translation. /// Changes a bone's local X translation.
class SP_API TranslateXTimeline : public BoneTimeline1 { class TranslateXTimeline : public BoneTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;
@ -65,7 +65,7 @@ namespace spine {
}; };
/// Changes a bone's local Y translation. /// Changes a bone's local Y translation.
class SP_API TranslateYTimeline : public BoneTimeline1 { class TranslateYTimeline : public BoneTimeline1 {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -34,7 +34,7 @@
#include <spine/Pool.h> #include <spine/Pool.h>
namespace spine { namespace spine {
class SP_API Triangulator : public SpineObject { class Triangulator : public SpineObject {
public: public:
~Triangulator(); ~Triangulator();

View File

@ -30,7 +30,7 @@
#ifndef Spine_Update_h #ifndef Spine_Update_h
#define Spine_Update_h #define Spine_Update_h
#include <spine/dll.h>
#include <spine/Physics.h> #include <spine/Physics.h>
#include <spine/RTTI.h> #include <spine/RTTI.h>
#include <spine/SpineObject.h> #include <spine/SpineObject.h>
@ -39,7 +39,7 @@ namespace spine {
class Skeleton; class Skeleton;
/// The interface for items updated by Skeleton::updateWorldTransform(). /// The interface for items updated by Skeleton::updateWorldTransform().
class SP_API Update : public SpineObject { class Update : public SpineObject {
RTTI_DECL_NOPARENT RTTI_DECL_NOPARENT
public: public:
Update(); Update();

View File

@ -40,7 +40,7 @@ namespace spine {
/// An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's /// An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's
/// SlotPose::getDeform(). /// SlotPose::getDeform().
class SP_API VertexAttachment : public Attachment { class VertexAttachment : public Attachment {
friend class SkeletonBinary; friend class SkeletonBinary;
friend class SkeletonJson; friend class SkeletonJson;

View File

@ -1,51 +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_SHAREDLIB_H
#define SPINE_SHAREDLIB_H
#ifdef _WIN32
#define DLLIMPORT __declspec(dllimport)
#define DLLEXPORT __declspec(dllexport)
#else
#ifndef DLLIMPORT
#define DLLIMPORT
#endif
#ifndef DLLEXPORT
#define DLLEXPORT
#endif
#endif
#ifdef SPINEPLUGIN_API
#define SP_API SPINEPLUGIN_API
#else
#define SP_API
#endif
#endif /* SPINE_SHAREDLIB_H */

View File

@ -84,7 +84,7 @@
using namespace spine; using namespace spine;
class SP_API Vertices : public SpineObject { class Vertices : public SpineObject {
public: public:
Array<int> _bones; Array<int> _bones;
Array<float> _weights; Array<float> _weights;