Forum > C# > ccBlendFunc not working?

ccBlendFunc not working?

By camelot Posted 2012-03-11 22:17 Comments 1
camelot
  • Posts: 37

i tryed to use some additive blending with sprites and didnt see anything changed.
what’s im doing wrong ?

example 1

CCSprite someSprite = CCSprite.spriteWithFile("someImage");
someSprite.BlendFunc.src = OGLES.GL_ONE; //also tryed GL_SRC_ALPHA
someSprite.BlendFunc.dst = OGLES.GL_ONE;
addChild(someSprite);

example 2

CCSprite someSprite = CCSprite.spriteWithFile("someImage");
ccBlendFunc someBlend = new ccBlendFunc();
someBlend.src = OGLES.GL_ONE; //also tryed GL_SRC_ALPHA
someBlend.dst = OGLES.GL_ONE;
someSprite.BlendFunc = someBlend;
addChild(someSprite);
huangrh
  • Posts: 171

#1 RE: 2012-03-12 09:45

hello, this is a bug, issue 1048(http://www.cocos2d-x.org/issues/1048) has been created for it

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps