I am googling around to find a list of all blending modes allowed by sprites on Cocos2D, but could not find one. Quartz can do these blending modes, and I am sure Cocos2D can do it too.
The only one I could find on google was "additive", that I think is screen. That is set like this:
[proxy setBlendFunc: (ccBlendFunc) { GL_SRC_ALPHA, GL_ONE }]; // example of additive blending
I am not even sure if this is screen.
So, where do I find such a list and instructions on how to set each one?
thanks.
You will find a detailed description of OpenGL blend modes here. And if you want to try things out, there's a wonderful visual glBlendFunc online tool.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With