cocos2d-x  3.3rc0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BlendProtocol Class Referenceabstract

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>

Inheritance diagram for BlendProtocol:
LabelBMFont LabelTTF LayerColor Sprite3D TextureProtocol Armature SkeletonRenderer LayerGradient AtlasNode MotionStreak ParticleBatchNode ParticleSystem Sprite SpriteBatchNode SkeletonAnimation

Public Member Functions

virtual ~BlendProtocol ()
virtual void setBlendFunc (const BlendFunc &blendFunc)=0
 Sets the source blending function. More...
 
virtual const BlendFuncgetBlendFunc () const =0
 Returns the blending function that is currently being used. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual ~BlendProtocol ( )
inlinevirtual

Member Function Documentation

virtual const BlendFunc&
getBlendFunc
( ) const
pure virtual

Returns the blending function that is currently being used.

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

Implemented in Sprite, ParticleSystem, LayerColor, Armature, LabelTTF, SpriteBatchNode, LabelBMFont, ParticleBatchNode, MotionStreak, AtlasNode, Sprite3D, and SkeletonRenderer.

virtual void setBlendFunc ( const BlendFunc 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 Sprite, ParticleSystem, LayerColor, Label, Armature, LabelTTF, SpriteBatchNode, LabelBMFont, ParticleBatchNode, MotionStreak, AtlasNode, Sprite3D, and SkeletonRenderer.


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