GAF Library
Generic Animation Format
 All Classes Functions Pages
GAFTextureEffectsConverter.h
1 #pragma once
2 
3 #ifndef __GAF_BLURRED_SPRITE___
4 #define __GAF_BLURRED_SPRITE___
5 
8 
9 class GAFTextureEffectsConverter : public cocos2d::Ref
10 {
11 public:
14  static GAFTextureEffectsConverter * sharedConverter();
15 
16  cocos2d::RenderTexture * gaussianBlurredTextureFromTexture(cocos2d::Texture2D * aTexture, const cocos2d::Rect& rect, float aBlurRadiusX, float aBlurRadiusY);
17  static cocos2d::GLProgram * programForBlurShaderWithName(const char * aShaderName, const char * aVertexShaderFile, const char * aFragmentShaderFile);
18 
19  static cocos2d::GLProgram * programForGlowShaderWithName(const char * aShaderName, const char * aVertexShaderFile, const char * aFragmentShaderFile);
20  cocos2d::RenderTexture * glowTextureFromTexture(cocos2d::Texture2D * aTexture, const cocos2d::Rect& rect, GAFGlowFilterData* data);
21 
22  cocos2d::RenderTexture* dropShadowTextureFromTexture(cocos2d::Texture2D * aTexture, const cocos2d::Rect& rect, GAFDropShadowFilterData* data);
23 };
24 
25 
26 #endif // __GAF_BLURRED_SPRITE___
Definition: GAFTextureEffectsConverter.h:9
Definition: GAFFilterData.h:61
Definition: GAFFilterData.h:48