Remove Socialpoint custom code related to cocos2dx (#1407)

This commit is contained in:
Stefano Lanza 2019-07-12 13:01:15 +02:00 committed by Mario Zechner
parent e5b88aa4c0
commit b648d3af99
2 changed files with 1 additions and 10 deletions

View File

@ -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)

View File

@ -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;
};
}