In v3.0 I used setBlendFunc. Now in 3.3 this method is warned as deprecated. What should be used instead ? Thanks.
Asked
Active
Viewed 396 times
1 Answers
5
here is one example, when i refactored my code :
// [_firstSprite setBlendFunc:(ccBlendFunc) {GL_SRC_ALPHA, GL_ONE}]; // deprecated
_firstSprite.blendMode = [CCBlendMode blendModeWithOptions:@{
CCBlendFuncSrcColor : @(GL_SRC_ALPHA),
CCBlendFuncDstColor : @(GL_ONE),}
];
you will have to research for your specifics, but that is the general direction to look into.

YvesLeBorg
- 9,070
- 8
- 35
- 48
-
1That's my answer. Thank you. – lsmpascal Jan 14 '15 at 14:31