Load textures with colorkey transparency

Hi everyone!

I want to ask if is it possible in cocos2dx to create sprites using textures with colorkey as transparent color?
For example I want to use RGB (0,0,0) as transparent, this way I don’t have to use the alpha channel, which could reduce the size of the image file.

Sorry if this is a newbie question…

Thanks!

Cocos2d doesn’t support color-masking directly. You can refer to glColorMask, glBlendFunc, glBlendColor function and find some inspiration from them.