Skip to content

Instantly share code, notes, and snippets.

@sdabet
Created January 28, 2013 13:01
Show Gist options
  • Save sdabet/4655348 to your computer and use it in GitHub Desktop.
Save sdabet/4655348 to your computer and use it in GitHub Desktop.
CCSprite *texture = [CCSprite spriteWithFile:@"texture.png"];
texture.blendFunc = (ccBlendFunc) { GL_ZERO, GL_ONE_MINUS_SRC_ALPHA };
[scene addChild: texture];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment