question: [CCTexture2D PVRImagesHavePremultipliedAlpha:YES] vs setPVRImagesHavePremultipliedAlpha (static vs not static)

i know [CCTexture2D PVRImagesHavePremultipliedAlpha:YES];

it’s appearance in cocos2d,

in cocos2d-x,
i see the

void setPVRImagesHavePremultipliedAlpha(bool haveAlphaPremultiplied);

it’s not static class function,

so when i want to use this way like cocos2d, like CCTexture2D::setPVRImagesHavePremultipliedAlpha(true),
cause i am using TexturePacker’s file, *.pvr.ccz, must set [CCTexture2D PVRImagesHavePremultipliedAlpha:YES];

but function setPVRImagesHavePremultipliedAlpha is not static function,

so can anyone give me suggestion.

anyway, i do not set this function setPVRImagesHavePremultipliedAlpha(true),

still work, but TexturePacker say: when you use .pvr.ccz file, you must setPVRImagesHavePremultipliedAlpha(true)

so i want setPVRImagesHavePremultipliedAlpha should be static function… ,just like Texture2D in cocos2d

:slight_smile:

Yes, you are right.
#922 is created for it, thank you.