Skip to content

Instantly share code, notes, and snippets.

@seongyooncho
Last active December 21, 2015 18:37
Show Gist options
  • Save seongyooncho/3ad36f7610f3dfb6edd7 to your computer and use it in GitHub Desktop.
Save seongyooncho/3ad36f7610f3dfb6edd7 to your computer and use it in GitHub Desktop.
auto node = ClippingRectangleNode::create(Rect(-100, -100, 200, 200));
auto sprite = Sprite::create("HelloWorld.png");
node->addChild(sprite);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment