mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[cpp] 4.3 porting WIP
This commit is contained in:
parent
ede7742c46
commit
db7478d38d
@ -36,6 +36,7 @@
|
|||||||
#include <spine/SpineString.h>
|
#include <spine/SpineString.h>
|
||||||
#include <spine/Color.h>
|
#include <spine/Color.h>
|
||||||
#include <spine/Physics.h>
|
#include <spine/Physics.h>
|
||||||
|
#include <spine/Update.h>
|
||||||
|
|
||||||
namespace spine {
|
namespace spine {
|
||||||
class SkeletonData;
|
class SkeletonData;
|
||||||
@ -251,19 +252,19 @@ namespace spine {
|
|||||||
void update(float delta);
|
void update(float delta);
|
||||||
|
|
||||||
float getWindX();
|
float getWindX();
|
||||||
|
|
||||||
void setWindX(float windX);
|
void setWindX(float windX);
|
||||||
|
|
||||||
float getWindY();
|
float getWindY();
|
||||||
|
|
||||||
void setWindY(float windY);
|
void setWindY(float windY);
|
||||||
|
|
||||||
float getGravityX();
|
float getGravityX();
|
||||||
|
|
||||||
void setGravityX(float gravityX);
|
void setGravityX(float gravityX);
|
||||||
|
|
||||||
float getGravityY();
|
float getGravityY();
|
||||||
|
|
||||||
void setGravityY(float gravityY);
|
void setGravityY(float gravityY);
|
||||||
|
|
||||||
/// Rotates the physics constraint so next {@link #update(Physics)} forces are applied as if the bone rotated around the
|
/// Rotates the physics constraint so next {@link #update(Physics)} forces are applied as if the bone rotated around the
|
||||||
|
|||||||
@ -147,9 +147,9 @@ void Skin::attachAll(Skeleton &skeleton, Skin &oldSkin) {
|
|||||||
int slotIndex = (int) entry._slotIndex;
|
int slotIndex = (int) entry._slotIndex;
|
||||||
Slot *slot = slots[slotIndex];
|
Slot *slot = slots[slotIndex];
|
||||||
|
|
||||||
if (slot->getAttachment() == entry._attachment) {
|
if (slot->getPose().getAttachment() == entry._attachment) {
|
||||||
Attachment *attachment = getAttachment(slotIndex, entry._name);
|
Attachment *attachment = getAttachment(slotIndex, entry._name);
|
||||||
if (attachment) slot->setAttachment(attachment);
|
if (attachment) slot->getPose().setAttachment(attachment);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user