在Cocos2D、iOS中绘制填充的动态多边形
如何使用从 cocos2D 框架中的 NSMutableArray 对象读取的点绘制多边形?
我可以使用此函数绘制多边形: 填充抗锯齿聚 cocos2d
问题是因为点参数*(CGPoint poli) 必须是静态对象。
有什么想法或建议吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NSMutableArray
对象的类型是什么?您需要提取点的原始数据并将其设置为
poli
参数。如果它是
NSValue
和CGPoint
那么:What is type of
NSMutableArray
objects?You need to extract raw data of points and set it as
poli
argument.If it's
NSValue
withCGPoint
then: