Glow effect on image

Hi,
If some one have any idea about how to add glow effect on image using cocos2d-x with marmalade. Here i attached two button image one is normal state and other one is selected. and i want to show glow effect on selected image by programmatically.
Because in my game i have so many situation were we need this like of glow effect. thanks in advance.

Thanks
Vinod


Selected_Button.png (7.7 KB)


Normal_Button.png (5.9 KB)

Hi
I also want to add GlowFilter on CCLabelTTF text by programmatically.

Thanks
Vinod

Hi,

Have u ever heard of Tests project inside cocos2d. If so please follow the tests project and look for “MenuTest.cpp”. U will be seeing the line like this.

CCMenuItemSprite* item1 = CCMenuItemSprite::itemFromNormalSprite(spriteNormal, spriteSelected, spriteDisabled, this, menu_selector(MenuLayer1::menuCallback) );

Please follow the Tests Project where you have lots of examples in there on how to use each one of them.

Thanks.

Hi Avinash,
I think you took it wrong. see the attached image. Here i want to show glow effect on the border of image programmatically in selected state of menus. i don’t want to use another image for glow on selected state of CCMenuItemSprite.

Thanks