CCPointArray * pathPointArray=CCPointArray::create(100);
pathPointArray->addControlPoint(ccp(touchPoint.x,touchPoint.y));
NSLog(@"=============%d",pathPointArray->count());
while (pathPointArray->count()!=0) {
pathPointArray->removeControlPointAtIndex(pathPointArray->count()-1);
}
NSLog(@"--------------%d",pathPointArray->count());
Cocos2d-x CCPointArray 移除所有元素
最新推荐文章于 2020-11-24 11:53:41 发布