Specify the blending function according glBlendFunc Please refer to glBlendFunc in OpenGL ES Manual http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml for more details. More...
#include <CCProtocols.h>
Public Member Functions | |
virtual void | setBlendFunc (const BlendFunc &blendFunc)=0 |
Sets the source blending function. More... | |
virtual const BlendFunc & | getBlendFunc () const =0 |
Returns the blending function that is currently being used. More... | |
Specify the blending function according glBlendFunc Please refer to glBlendFunc in OpenGL ES Manual http://www.khronos.org/opengles/sdk/docs/man/xhtml/glBlendFunc.xml for more details.
|
pure virtual |
Returns the blending function that is currently being used.
Implemented in Sprite, ParticleSystem, LayerColor, Armature, SpriteBatchNode, ParticleBatchNode, MotionStreak, AtlasNode, and CCSkeleton.
|
pure virtual |
Sets the source blending function.
blendFunc | A structure with source and destination factor to specify pixel arithmetic, e.g. {GL_ONE, GL_ONE}, {GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA}. |
Implemented in Sprite, ParticleSystem, LayerColor, Armature, SpriteBatchNode, ParticleBatchNode, MotionStreak, AtlasNode, and CCSkeleton.