Cocos2d: help understand what setblendfunc combines sprites

New to OpenGL and cocos2d and trying to understand setBlendFunc on sprites. Where can I get an explanation of the constants used.

I am trying to allow the user to wipe the sprite and see what is below. This will only be for a specific sprite on the page.

Any advice is greatly appreciated.

+3
source share
1 answer

Try reading the OpenGL ES 1_0 documentation glBlendFunc

, (ccBlendFunc){GL_ZERO, GL_ZERO}, , , (ccBlendFunc){GL_ZERO, GL_ONE_MINUS_SRC_ALPHA}, (, - - == 1, , , == 0 ( ) ) () 0, 1 , - , .

+3

Source: https://habr.com/ru/post/1788915/


All Articles