mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
boundingBox -> getBoundingBox.
This commit is contained in:
parent
99df3bf619
commit
d043d8204c
@ -276,7 +276,7 @@ Texture2D* SkeletonRenderer::getTexture (spSkinnedMeshAttachment* attachment) co
|
||||
return (Texture2D*)((spAtlasRegion*)attachment->rendererObject)->page->rendererObject;
|
||||
}
|
||||
|
||||
Rect SkeletonRenderer::boundingBox () {
|
||||
Rect SkeletonRenderer::getBoundingBox () const {
|
||||
float minX = FLT_MAX, minY = FLT_MAX, maxX = FLT_MIN, maxY = FLT_MIN;
|
||||
float scaleX = getScaleX(), scaleY = getScaleY();
|
||||
for (int i = 0; i < skeleton->slotCount; ++i) {
|
||||
|
||||
@ -58,10 +58,10 @@ public:
|
||||
|
||||
virtual ~SkeletonRenderer ();
|
||||
|
||||
virtual void update (float deltaTime);
|
||||
virtual void update (float deltaTime) override;
|
||||
virtual void draw(cocos2d::Renderer* renderer, const kmMat4& transform, bool transformUpdated) override;
|
||||
virtual void drawSkeleton (const kmMat4& transform, bool transformUpdated);
|
||||
virtual cocos2d::Rect boundingBox ();
|
||||
virtual cocos2d::Rect getBoundingBox () const override;
|
||||
|
||||
// --- Convenience methods for common Skeleton_* functions.
|
||||
void updateWorldTransform ();
|
||||
|
||||
@ -278,7 +278,7 @@ Texture2D* SkeletonRenderer::getTexture (spSkinnedMeshAttachment* attachment) co
|
||||
return (Texture2D*)((spAtlasRegion*)attachment->rendererObject)->page->rendererObject;
|
||||
}
|
||||
|
||||
Rect SkeletonRenderer::boundingBox () {
|
||||
Rect SkeletonRenderer::getBoundingBox () const {
|
||||
float minX = FLT_MAX, minY = FLT_MAX, maxX = FLT_MIN, maxY = FLT_MIN;
|
||||
float scaleX = getScaleX(), scaleY = getScaleY();
|
||||
for (int i = 0; i < skeleton->slotCount; ++i) {
|
||||
|
||||
@ -58,10 +58,10 @@ public:
|
||||
|
||||
virtual ~SkeletonRenderer ();
|
||||
|
||||
virtual void update (float deltaTime);
|
||||
virtual void update (float deltaTime) override;
|
||||
virtual void draw (cocos2d::Renderer* renderer, const cocos2d::Matrix& transform, bool transformUpdated) override;
|
||||
virtual void drawSkeleton (const cocos2d::Matrix& transform, bool transformUpdated);
|
||||
virtual cocos2d::Rect boundingBox ();
|
||||
virtual cocos2d::Rect getBoundingBox () const override;
|
||||
|
||||
// --- Convenience methods for common Skeleton_* functions.
|
||||
void updateWorldTransform ();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user