|
@@ -50,12 +50,7 @@ public:
|
|
virtual void drawSkeleton (const cocos2d::Mat4& transform, uint32_t transformFlags);
|
|
virtual void drawSkeleton (const cocos2d::Mat4& transform, uint32_t transformFlags);
|
|
virtual cocos2d::Rect getBoundingBox () const override;
|
|
virtual cocos2d::Rect getBoundingBox () const override;
|
|
|
|
|
|
- // --- Convenience methods for common Skeleton_* functions.
|
|
|
|
- void updateWorldTransform ();
|
|
|
|
-
|
|
|
|
- void setToSetupPose ();
|
|
|
|
- void setBonesToSetupPose ();
|
|
|
|
- void setSlotsToSetupPose ();
|
|
|
|
|
|
+ spSkeleton* getSkeleton();
|
|
|
|
|
|
void setTimeScale(float scale);
|
|
void setTimeScale(float scale);
|
|
float getTimeScale() const;
|
|
float getTimeScale() const;
|
|
@@ -66,6 +61,12 @@ public:
|
|
void setDebugBonesEnabled(bool enabled);
|
|
void setDebugBonesEnabled(bool enabled);
|
|
bool getDebugBonesEnabled() const;
|
|
bool getDebugBonesEnabled() const;
|
|
|
|
|
|
|
|
+ // --- Convenience methods for common Skeleton_* functions.
|
|
|
|
+ void updateWorldTransform ();
|
|
|
|
+
|
|
|
|
+ void setToSetupPose ();
|
|
|
|
+ void setBonesToSetupPose ();
|
|
|
|
+ void setSlotsToSetupPose ();
|
|
|
|
|
|
/* Returns 0 if the bone was not found. */
|
|
/* Returns 0 if the bone was not found. */
|
|
spBone* findBone (const std::string& boneName) const;
|
|
spBone* findBone (const std::string& boneName) const;
|
|
@@ -109,7 +110,6 @@ protected:
|
|
float* _worldVertices;
|
|
float* _worldVertices;
|
|
bool _premultipliedAlpha;
|
|
bool _premultipliedAlpha;
|
|
spSkeleton* _skeleton;
|
|
spSkeleton* _skeleton;
|
|
- spBone* _rootBone;
|
|
|
|
float _timeScale;
|
|
float _timeScale;
|
|
bool _debugSlots;
|
|
bool _debugSlots;
|
|
bool _debugBones;
|
|
bool _debugBones;
|