mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Fixed default scale.
This commit is contained in:
parent
337b55005d
commit
34c98688ed
@ -47,8 +47,8 @@ typedef std::function<void(int trackIndex, spEvent* event)> EventListener;
|
|||||||
class SkeletonAnimation: public SkeletonRenderer {
|
class SkeletonAnimation: public SkeletonRenderer {
|
||||||
public:
|
public:
|
||||||
static SkeletonAnimation* createWithData (spSkeletonData* skeletonData);
|
static SkeletonAnimation* createWithData (spSkeletonData* skeletonData);
|
||||||
static SkeletonAnimation* createWithFile (const std::string& skeletonDataFile, spAtlas* atlas, float scale = 0);
|
static SkeletonAnimation* createWithFile (const std::string& skeletonDataFile, spAtlas* atlas, float scale = 1);
|
||||||
static SkeletonAnimation* createWithFile (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 0);
|
static SkeletonAnimation* createWithFile (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 1);
|
||||||
|
|
||||||
virtual void update (float deltaTime);
|
virtual void update (float deltaTime);
|
||||||
|
|
||||||
@ -79,8 +79,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
SkeletonAnimation ();
|
SkeletonAnimation ();
|
||||||
SkeletonAnimation (spSkeletonData* skeletonData);
|
SkeletonAnimation (spSkeletonData* skeletonData);
|
||||||
SkeletonAnimation (const std::string&skeletonDataFile, spAtlas* atlas, float scale = 0);
|
SkeletonAnimation (const std::string&skeletonDataFile, spAtlas* atlas, float scale = 1);
|
||||||
SkeletonAnimation (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 0);
|
SkeletonAnimation (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 1);
|
||||||
virtual ~SkeletonAnimation ();
|
virtual ~SkeletonAnimation ();
|
||||||
void initialize ();
|
void initialize ();
|
||||||
|
|
||||||
|
|||||||
@ -42,8 +42,8 @@ class PolygonBatch;
|
|||||||
class SkeletonRenderer: public cocos2d::Node, public cocos2d::BlendProtocol {
|
class SkeletonRenderer: public cocos2d::Node, public cocos2d::BlendProtocol {
|
||||||
public:
|
public:
|
||||||
static SkeletonRenderer* createWithData (spSkeletonData* skeletonData, bool ownsSkeletonData = false);
|
static SkeletonRenderer* createWithData (spSkeletonData* skeletonData, bool ownsSkeletonData = false);
|
||||||
static SkeletonRenderer* createWithFile (const std::string& skeletonDataFile, spAtlas* atlas, float scale = 0);
|
static SkeletonRenderer* createWithFile (const std::string& skeletonDataFile, spAtlas* atlas, float scale = 1);
|
||||||
static SkeletonRenderer* createWithFile (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 0);
|
static SkeletonRenderer* createWithFile (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 1);
|
||||||
|
|
||||||
virtual void update (float deltaTime) override;
|
virtual void update (float deltaTime) override;
|
||||||
virtual void draw (cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t transformFlags) override;
|
virtual void draw (cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t transformFlags) override;
|
||||||
@ -91,8 +91,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
SkeletonRenderer ();
|
SkeletonRenderer ();
|
||||||
SkeletonRenderer (spSkeletonData* skeletonData, bool ownsSkeletonData = false);
|
SkeletonRenderer (spSkeletonData* skeletonData, bool ownsSkeletonData = false);
|
||||||
SkeletonRenderer (const std::string& skeletonDataFile, spAtlas* atlas, float scale = 0);
|
SkeletonRenderer (const std::string& skeletonDataFile, spAtlas* atlas, float scale = 1);
|
||||||
SkeletonRenderer (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 0);
|
SkeletonRenderer (const std::string& skeletonDataFile, const std::string& atlasFile, float scale = 1);
|
||||||
virtual ~SkeletonRenderer ();
|
virtual ~SkeletonRenderer ();
|
||||||
void initialize ();
|
void initialize ();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user