| 669 | } |
| 670 | |
| 671 | void SpriteBatchNode::updateBlendFunc() |
| 672 | { |
| 673 | if (!_textureAtlas->getTexture()->hasPremultipliedAlpha()) |
| 674 | { |
| 675 | _blendFunc = BlendFunc::ALPHA_NON_PREMULTIPLIED; |
| 676 | setOpacityModifyRGB(false); |
| 677 | } |
| 678 | else |
| 679 | { |
| 680 | _blendFunc = BlendFunc::ALPHA_PREMULTIPLIED; |
| 681 | setOpacityModifyRGB(true); |
| 682 | } |
| 683 | } |
| 684 | |
| 685 | // CocosNodeTexture protocol |
| 686 | void SpriteBatchNode::setBlendFunc(const BlendFunc& blendFunc) |
nothing calls this directly
no test coverage detected