3 #ifndef __GAF_STENCIL_MASK_SPRITE__
4 #define __GAF_STENCIL_MASK_SPRITE__
15 #define kGAFStencilMaskAlphaFilterProgramCacheKey "kGAFScrollLayerAlphaFilterProgramCacheKey"
17 using namespace cocos2d;
24 virtual bool initWithTexture(CCTexture2D *pTexture,
const CCRect& rect,
bool rotated);
25 static CCGLProgram * programShaderForMask();
29 void invalidateMaskedObjectsOrder();
31 static void updateMaskContainerOf(CCNode * node);
33 void addMaskedObject(CCNode * anObject);
34 void removeMaskedObject(CCNode * anObject);
36 void sortAllMaskedObjects();
38 CCArray * _maskedObjects;
39 bool _isReorderMaskedObjectsDirty;
42 #endif // __GAF_STENCIL_MASK_SPRITE__
Definition: GAFStencilMaskSprite.h:19
Definition: GAFSprite.h:29