Clipping with Cocos2d-x 2.2.1

Hey,
I am rendering CCTexture2d to screen using drawInRect() function. Which allows me to scale texture according to zoom level. But, i also want to clip some part of the texture before drawInRect(), so i can account to viewing angel from user.
So, I want something like this HTML5 counterpart.
http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_canvas_drawimage3.