Skip to content

Instantly share code, notes, and snippets.

@sdabet
Created January 28, 2013 12:22
Show Gist options
  • Save sdabet/4655083 to your computer and use it in GitHub Desktop.
Save sdabet/4655083 to your computer and use it in GitHub Desktop.
CCSprite *sprite = [CCSprite spriteWithSpriteFrameName:@"mysprite.png"];
sprite.blendFunc = (ccBlendFunc){GL_ONE, GL_ONE_MINUS_SRC_ALPHA};
// or
[sprite setBlendFunc:(ccBlendFunc){GL_ONE, GL_ONE_MINUS_SRC_ALPHA}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment