How can i draw polygon with points read from NSMutableArray object in cocos2D framework?
I am able to draw polygon using this function: filled antialiased poly cocos2d
The problem is becouse points argument *(CGPoint poli) must be static object.
Any ideas or suggestions?
What is type of
NSMutableArrayobjects?You need to extract raw data of points and set it as
poliargument.If it’s
NSValuewithCGPointthen: