There is a CGPath in cocos2d which helps to draw path of irregular sprite shape.I just want to know that i want to draw some path of my irregualar shape sprite and I am not using box2d. So is there a way to do it. I found a cocos2d tutorial on how to draw path.But unable to find solution in cocos2d-x (c++)The link of tutorial ishttp://bobueland.com/cocos2d/2011/the-magic-of-cgpaths/
It’s a function of iOS. You can use OpenGL ES to draw anything you want. Or you can use DrawNode or DrawPrimitive to draw some shapes.