This commit is contained in:
NathanSweet 2014-05-17 14:42:10 +02:00
parent 3a2c986fd1
commit 1d85ad6bd6

View File

@ -75,7 +75,8 @@ public:
spSlot* findSlot (const char* slotName) const; spSlot* findSlot (const char* slotName) const;
/* Sets the skin used to look up attachments not found in the SkeletonData defaultSkin. Attachments from the new skin are /* Sets the skin used to look up attachments not found in the SkeletonData defaultSkin. Attachments from the new skin are
* attached if the corresponding attachment from the old skin was attached. Returns false if the skin was not found. * attached if the corresponding attachment from the old skin was attached. If there was no old skin, each slot's setup mode
* attachment is attached from the new skin. Returns false if the skin was not found.
* @param skin May be 0.*/ * @param skin May be 0.*/
bool setSkin (const char* skinName); bool setSkin (const char* skinName);
@ -92,6 +93,7 @@ public:
protected: protected:
SkeletonRenderer (); SkeletonRenderer ();
void setSkeletonData (spSkeletonData* skeletonData, bool ownsSkeletonData); void setSkeletonData (spSkeletonData* skeletonData, bool ownsSkeletonData);
virtual cocos2d::CCTexture2D* getTexture (spRegionAttachment* attachment) const; virtual cocos2d::CCTexture2D* getTexture (spRegionAttachment* attachment) const;
virtual cocos2d::CCTexture2D* getTexture (spMeshAttachment* attachment) const; virtual cocos2d::CCTexture2D* getTexture (spMeshAttachment* attachment) const;
virtual cocos2d::CCTexture2D* getTexture (spSkinnedMeshAttachment* attachment) const; virtual cocos2d::CCTexture2D* getTexture (spSkinnedMeshAttachment* attachment) const;