CGMutablePath && CGPathContainsPoint

Hi.

currently porting my source project “Touch collision detection” Objective-C to C++:

have problem with this part of code, can you suggest any equivalent at Cocos2d-X ?

CGMutablePathRef path = CGPathCreateMutable();
CGPathMoveToPoint(path, NULL, [[[_touchMap objectAtIndex:0] objectForKey:@"x"] intValue] + offsetPoint.x, [[[_touchMap objectAtIndex:0] objectForKey:@"y"] intValue] + offsetPoint.y);

for (int i = 1; i < amountPoints; i++) {
   CGPathAddLineToPoint(path, NULL, [[[_touchMap objectAtIndex:i] objectForKey:@"x"] intValue] + offsetPoint.x, [[[_touchMap objectAtIndex:i] objectForKey:@"y"] intValue] + offsetPoint.y);
   }

CGPathCloseSubpath(path);

CGPathContainsPoint(path, NULL, touchPoint, YES);

thanks you.

need help.

No Body ?