3 #ifndef __GAF_SPRITE_WITH_ALPHA__
4 #define __GAF_SPRITE_WITH_ALPHA__
8 using namespace cocos2d;
10 #define kGAFSpriteWithAlphaShaderProgramCacheKey "kGAFSpriteWithAlphaShaderProgramCache"
17 virtual void setUniformsForFragmentShader();
18 virtual bool initWithTexture(CCTexture2D *pTexture,
const CCRect& rect,
bool rotated);
19 static CCGLProgram * programForShader();
20 void setColorTransform(
const GLfloat * mults,
const GLfloat * offsets);
21 const GLfloat * getColorTransform()
const
23 return _colorTransform;
25 void setColorTransform(
const GLfloat * colorTransform);
26 void setBlurRadius(
const CCSize& blurRadius);
28 void updateTextureWithEffects();
30 void _setBlendingFunc();
31 GLfloat _colorTransform[8];
33 CCTexture2D * _initialTexture;
34 CCRect _initialTextureRect;
37 #endif // __GAF_SPRITE_WITH_ALPHA__
Definition: GAFSprite.h:29
Definition: GAFSpriteWithAlpha.h:12