Here is a port of a Cocos2d clipping node for Cocos2d-x 2.0.2
Enjoy!
Usage:
//create ClipNode and add to main node
node=new ClipNode();
node~~>autorelease;
node~~>setPosition();
node~~>setClipsToBounds;
node~~>setScale(…);
addChild( node);
//add sprite to it
//define clipping region
node->setClippingRegion(CCRect(x,y,w,h)); //in Points
However, when I push a CCTransition* scene on the container scene, I noticed that all the children get animated (transitioned), but the Clip Rect is not transitioned. Any idea how to transition the clip rect as well?