mirror of https://github.com/axmolengine/axmol.git
removes 'private' section from SpriteBatchNode
This commit is contained in:
parent
088a11ad0d
commit
ee638b9c8b
|
@ -374,7 +374,7 @@ void SpriteBatchNode::swap(int oldIndex, int newIndex)
|
||||||
auto newIt = std::next( _descendants.begin(), newIndex );
|
auto newIt = std::next( _descendants.begin(), newIndex );
|
||||||
|
|
||||||
(*newIt)->setAtlasIndex(oldIndex);
|
(*newIt)->setAtlasIndex(oldIndex);
|
||||||
(*oldIt)->setAtlasIndex(newIndex);
|
// (*oldIt)->setAtlasIndex(newIndex);
|
||||||
|
|
||||||
std::swap( *oldIt, *newIt );
|
std::swap( *oldIt, *newIt );
|
||||||
}
|
}
|
||||||
|
|
|
@ -160,12 +160,10 @@ protected:
|
||||||
*/
|
*/
|
||||||
SpriteBatchNode * addSpriteWithoutQuad(Sprite *child, int z, int aTag);
|
SpriteBatchNode * addSpriteWithoutQuad(Sprite *child, int z, int aTag);
|
||||||
|
|
||||||
private:
|
|
||||||
void updateAtlasIndex(Sprite* sprite, int* curIndex);
|
void updateAtlasIndex(Sprite* sprite, int* curIndex);
|
||||||
void swap(int oldIndex, int newIndex);
|
void swap(int oldIndex, int newIndex);
|
||||||
void updateBlendFunc();
|
void updateBlendFunc();
|
||||||
|
|
||||||
protected:
|
|
||||||
TextureAtlas *_textureAtlas;
|
TextureAtlas *_textureAtlas;
|
||||||
BlendFunc _blendFunc;
|
BlendFunc _blendFunc;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue