auto pinfo = AutoPolygon::generatePolygon("dog.png",Rect::ZERO,1); //第三个参数用于控制弯角幅度的大小 auto ret = Sprite::create(pinfo); ret->setPosition(pos); addChild(ret); ret->debugDraw(true);原文链接:https://www.f2er.com/cocos2dx/341241.html
auto pinfo = AutoPolygon::generatePolygon("dog.png",Rect::ZERO,1); //第三个参数用于控制弯角幅度的大小 auto ret = Sprite::create(pinfo); ret->setPosition(pos); addChild(ret); ret->debugDraw(true);原文链接:https://www.f2er.com/cocos2dx/341241.html