cocos2d-x  2.2.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCBlendProtocol Class Referenceabstract

//////// More...

#include <CCProtocols.h>

Inheritance diagram for CCBlendProtocol:
CCLayerColor CCTextureProtocol CCArmature CCSkeleton CCLayerGradient CCAtlasNode CCMotionStreak CCParticleBatchNode CCParticleSystem CCSprite CCSpriteBatchNode CCSkeletonAnimation

Public Member Functions

virtual void setBlendFunc (ccBlendFunc blendFunc)=0
 Sets the source blending function. More...
 
virtual ccBlendFunc getBlendFunc (void)=0
 Returns the blending function that is currently being used. More...
 

Detailed Description

////////

Member Function Documentation

virtual ccBlendFunc getBlendFunc ( void  )
pure virtual

Returns the blending function that is currently being used.

Returns
A ccBlendFunc structure with source and destination factor which specified pixel arithmetic.

Implemented in CCParticleSystem, CCLayerColor, CCSprite, CCSpriteBatchNode, CCArmature, CCParticleBatchNode, CCMotionStreak, CCSkeleton, and CCAtlasNode.

virtual void setBlendFunc ( ccBlendFunc  blendFunc)
pure virtual

Sets the source blending function.

Parameters
blendFuncA 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 CCParticleSystem, CCLayerColor, CCSprite, CCSpriteBatchNode, CCArmature, CCParticleBatchNode, CCMotionStreak, and CCAtlasNode.


The documentation for this class was generated from the following file: