3 #ifndef __GAF_SPRITE_WITH_ALPHA__
4 #define __GAF_SPRITE_WITH_ALPHA__
15 void _setBlendingFunc();
16 GLfloat m_colorTransform[8];
18 GLfloat m_colorMatrixIdentity1[16];
19 GLfloat m_colorMatrixIdentity2[4];
25 cocos2d::Texture2D * m_initialTexture;
26 cocos2d::Rect m_initialTextureRect;
27 cocos2d::RenderTexture* m_filter;
29 cocos2d::RenderTexture* _test();
34 virtual void setUniformsForFragmentShader();
35 virtual bool initWithTexture(cocos2d::Texture2D *pTexture,
const cocos2d::Rect& rect,
bool rotated);
37 cocos2d::GLProgram * programForShader();
39 void setColorTransform(
const GLfloat * mults,
const GLfloat * offsets);
40 const GLfloat * getColorTransform()
const;
42 void setColorTransform(
const GLfloat * colorTransform);
48 cocos2d::Texture2D* getInitialTexture()
const;
49 const cocos2d::Rect& getInitialTextureRect()
const;
51 bool isCTXIdentity()
const;
53 virtual void draw(cocos2d::Renderer *renderer,
const cocos2d::Mat4 &transform,
bool transformUpdated)
override;
55 void updateTextureWithEffects();
59 #endif // __GAF_SPRITE_WITH_ALPHA__
Definition: GAFSprite.h:23
Definition: GAFFilterData.h:29
Definition: GAFFilterData.h:38
Definition: GAFFilterData.h:48
Definition: GAFSpriteWithAlpha.h:12