2

In v3.0 I used setBlendFunc. Now in 3.3 this method is warned as deprecated. What should be used instead ? Thanks.

lsmpascal
  • 762
  • 8
  • 24

1 Answers1

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