From 1d85ad6bd6e45d66096c276faef89ff98fb5b74b Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sat, 17 May 2014 14:42:10 +0200 Subject: [PATCH] Docs. --- spine-cocos2dx/2/src/spine/SkeletonRenderer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spine-cocos2dx/2/src/spine/SkeletonRenderer.h b/spine-cocos2dx/2/src/spine/SkeletonRenderer.h index 34cbb7f8c..f387a4599 100644 --- a/spine-cocos2dx/2/src/spine/SkeletonRenderer.h +++ b/spine-cocos2dx/2/src/spine/SkeletonRenderer.h @@ -75,10 +75,11 @@ public: 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 - * 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.*/ bool setSkin (const char* skinName); - + /* Returns 0 if the slot or attachment was not found. */ spAttachment* getAttachment (const char* slotName, const char* attachmentName) const; /* Returns false if the slot or attachment was not found. */ @@ -92,6 +93,7 @@ public: protected: SkeletonRenderer (); void setSkeletonData (spSkeletonData* skeletonData, bool ownsSkeletonData); + virtual cocos2d::CCTexture2D* getTexture (spRegionAttachment* attachment) const; virtual cocos2d::CCTexture2D* getTexture (spMeshAttachment* attachment) const; virtual cocos2d::CCTexture2D* getTexture (spSkinnedMeshAttachment* attachment) const;