Setting Blend Function to Sprite in cocos2d-x
Using: http://www.andersriggelsen.dk/glblendfunc.php
Follows how to set a blend function to a sprite in cocos2d-x.
auto sprite= Sprite::createWIthSpriteFrameName("glow"); cocos2d::BlendFunc bf= {GL_SRC_COLOR, GL_ONE}; sprite->setBlendFunc(bf);
Various results of combinations of source and destination blend functions can be tested in above site.