30 bool setSkin(
const std::string &
name);
32 int getSkin()
const {
return skinIndex_; }
35 void setToSetupPose();
37 void updateWorldTransform();
40 int getBoneCount()
const;
42 float getBoneLocalX(
int index)
const;
44 float getBoneLocalY(
int index)
const;
46 float getBoneLocalRotation(
int index)
const;
48 float getBoneLocalScaleX(
int index)
const;
50 float getBoneLocalScaleY(
int index)
const;
53 void setBoneLocalX(
int index,
float x);
55 void setBoneLocalY(
int index,
float y);
59 void setBoneLocalScaleX(
int index,
float sx);
61 void setBoneLocalScaleY(
int index,
float sy);
64 float getBoneWorldX(
int index)
const;
66 float getBoneWorldY(
int index)
const;
68 float getBoneWorldRotation(
int index)
const;
70 float getBoneWorldScaleX(
int index)
const;
72 float getBoneWorldScaleY(
int index)
const;
74 void getBoneWorldMatrix(
int index,
float &
a,
float &
b,
float &
c,
float &
d)
const;
77 int getSlotCount()
const;
79 std::string getSlotAttachmentName(
int slotIndex)
const;
81 void setSlotAttachmentName(
int slotIndex,
const std::string &
name);
90 float x = 0.f,
y = 0.f;
92 float scaleX = 1.f, scaleY = 1.f;
93 float worldX = 0.f, worldY = 0.f;
95 float worldSX = 1.f, worldSY = 1.f;
96 float a = 1.f,
b = 0.f,
c = 0.f,
d = 1.f;
99 void checkBone(
int index)
const;
100 void checkSlot(
int index)
const;
104 std::vector<BonePose> bones_;
105 std::vector<std::string> slotAttachments_;