mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Remove Socialpoint custom code related to cocos2dx (#1407)
This commit is contained in:
parent
e5b88aa4c0
commit
b648d3af99
@ -253,7 +253,6 @@ namespace spine {
|
||||
}
|
||||
|
||||
void SkeletonRenderer::draw (Renderer* renderer, const Mat4& transform, uint32_t transformFlags) {
|
||||
_isAutoCulled = false;
|
||||
// Early exit if the skeleton is invisible
|
||||
if (getDisplayedOpacity() == 0 || _skeleton->getColor().a == 0){
|
||||
return;
|
||||
@ -274,11 +273,9 @@ namespace spine {
|
||||
const cocos2d::Rect brect = computeBoundingRect(worldCoords, coordCount / 2);
|
||||
_boundingRect = brect;
|
||||
|
||||
const bool autoCullingEnable = true;
|
||||
if (autoCullingEnable && camera && cullRectangle(transform, brect, *camera))
|
||||
if (camera && cullRectangle(transform, brect, *camera))
|
||||
{
|
||||
VLA_FREE(worldCoords);
|
||||
_isAutoCulled = true;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
@ -621,10 +618,6 @@ namespace spine {
|
||||
}
|
||||
|
||||
|
||||
bool SkeletonRenderer::isAutoCulled () const {
|
||||
return _isAutoCulled;
|
||||
}
|
||||
|
||||
void SkeletonRenderer::drawDebug (Renderer* renderer, const Mat4 &transform, uint32_t transformFlags) {
|
||||
|
||||
#if !defined(USE_MATRIX_STACK_PROJECTION_ONLY)
|
||||
|
||||
@ -48,7 +48,6 @@ namespace spine {
|
||||
|
||||
void update (float deltaTime) override;
|
||||
void draw (cocos2d::Renderer* renderer, const cocos2d::Mat4& transform, uint32_t transformFlags) override;
|
||||
bool isAutoCulled () const;
|
||||
cocos2d::Rect getBoundingBox () const override;
|
||||
void onEnter () override;
|
||||
void onExit () override;
|
||||
@ -158,7 +157,6 @@ namespace spine {
|
||||
|
||||
int _startSlotIndex;
|
||||
int _endSlotIndex;
|
||||
bool _isAutoCulled = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user